AI "Get In" Command's Fixed when unconscious #207
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
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.
Is further testing or are further changes required?
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.