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

AI "Get In" Command's Fixed when unconscious #207

Merged
merged 3 commits into from
Jun 9, 2024

Conversation

sniperclub01
Copy link

@sniperclub01 sniperclub01 commented May 27, 2024

What type of PR is this?

  1. Bug
  2. Change
  3. Enhancement
  4. Miscellaneous

What have you changed and why?

Information:
Added new lines in fn_unconscious in order to account for Squad Leader's with AI going unconscious after dismounting from a vehicle. AI SL's that take over continuously tell other AI to get back in the vehicle they previously got in to as they are still "assigned" to said vehicle.

Please specify which Issue this PR Resolves (If Applicable).

N/A

Please verify the following.

  1. Have you loaded the mission in LAN host?
  2. Have you loaded the mission on a dedicated server?

Is further testing or are further changes required?

  1. No
  2. Yes (Please provide further detail below.)

How can the changes be tested?

Steps: Load into a server/LAN.
Hire AI Squadmates and order them to get in a vehicle.
Once you are in that vehicle with your squad, drive to a destination and get incapacitated.
When Incapacitated, if this fix works, the AI will not request for the other AI squad members to "get in" the vehicle they were previously in.
Otherwise, the SL that takes over will continuously tell other squad members to get back in the previous vehicle they left.


Notes:
When the user gets incapacitated, the medic will behave normally. However, the squad lead that takes over is not giving any orders whatsoever. I imagine a simple fix such as a "move to" command towards the downed players position would be a good fix, as it forces the rest of the squad to attempt to "rescue" the squad leader, rather than idly stand by and await the medics action.

@sniperclub01 sniperclub01 changed the base branch from stable to unstable May 27, 2024 23:22
@SilenceIsFatto
Copy link
Owner

Out of curiosity, what happens if the player is shot out of a vehicle that is going quite fast? Do the AI just jump out to their death?

@SilenceIsFatto SilenceIsFatto added the misc A miscellaneous change label May 28, 2024
@SilenceIsFatto SilenceIsFatto merged commit 88e0812 into SilenceIsFatto:unstable Jun 9, 2024
@SilenceIsFatto SilenceIsFatto mentioned this pull request Jul 31, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
misc A miscellaneous change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants