Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vehicle Damage - Add API to prevent AI from dismounting from immobile vehicles #9990

Merged
merged 2 commits into from
Jun 1, 2024

Conversation

johnb432
Copy link
Contributor

When merged this pull request will:

  • Title.

IMPORTANT

  • If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

@johnb432 johnb432 added the kind/feature Release Notes: **ADDED:** label Apr 28, 2024
@jonpas jonpas added this to the 3.18.0 milestone Apr 29, 2024
Copy link
Member

@veteran29 veteran29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johnb432
Copy link
Contributor Author

johnb432 commented May 3, 2024

Why not simply use engine command?

https://community.bistudio.com/wiki/isAllowedCrewInImmobile

I'm trying to find a good reason why not to use isAllowedCrewInImmobile, but I honestly can't. It would make it compatible with mods using the vanilla command, which would be my exact use case.

For context:

ACE sets it when a vehicle is spawned, see

_vehicle allowCrewInImmobile true;

ACE unsets it here

_vehicle allowCrewInImmobile false;

Since you have already reviewed - @jonpas and @BrettMayson, do you have any objection to vet's proposal?

@BrettMayson
Copy link
Member

No objections from me

@johnb432
Copy link
Contributor Author

johnb432 commented May 4, 2024

but I honestly can't

@veteran29 I was too tired to see that using isAllowedCrewInImmobile won't work, unless we change more stuff (which I don't think it possible).

As said previously,

_vehicle allowCrewInImmobile true;

sets it to true. How are we supposed to distinguish us vs. other sources setting that? Using status effects would imo not solve the problem.

I was going to add a if (isAllowedCrewInImmobile _vehicle) exitWith {}; check inside FUNC(abandon), but that won't work since that is always going to be true - and if it isn't, they would bail. I'm fairly certain that allowCrewInImmobile is set to true so that we can handle bailout ourselves.

@johnb432 johnb432 requested a review from veteran29 May 26, 2024 07:55
@johnb432 johnb432 dismissed veteran29’s stale review June 1, 2024 16:55

isAllowedCrewInImmobile can't work, status effect is overkill for this, can revisit before release if problematic

@johnb432 johnb432 merged commit 60eabda into master Jun 1, 2024
5 checks passed
@johnb432 johnb432 deleted the vehicle-damage-prevent-bail-API branch June 1, 2024 16:56
blake8090 pushed a commit to blake8090/ACE3 that referenced this pull request Aug 18, 2024
… vehicles (acemod#9990)

* Add API to prevent AI from dismounting from immobile vehicles

* Update vehicledamage-framework.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Release Notes: **ADDED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants