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

Workaround Arma bug with moveInAny #2697

Merged

Conversation

jaj22
Copy link

@jaj22 jaj22 commented Apr 3, 2023

What type of PR is this.

  1. Bug
  2. Change
  3. Enhancement

What have you changed and why?

spawnHCGroup used moveInAny to board every unit except the driver for rebel infantry trucks. Unfortunately this is bugged, and moveInAny somehow breaks driving AI when used to move an AI into a gunner seat, such that they'll refuse to drive anywhere, or occasionally act like they have a brick wall in front. setEffectiveCommander to the driver will allow them to drive again, but setting it back to gunner (which is default) will block them again. You can do moveInDriver + moveInGunner and it's fine, while moveInDriver + moveInAny will break. Tested with Hunter HMG, Marshall and a couple of GM armed trucks.

Currently this is only an identified problem with GM rebel trucks, so that's what I've fixed. Other usage of moveInAny should be checked, however.

Please specify which Issue this PR Resolves.

closes #2647

Please verify the following and ensure all checks are completed.

  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.)

Need to check other uses of moveInAny.

@jaj22 jaj22 added the Bug-fix label Apr 3, 2023
@jaj22 jaj22 added this to the 3.2 milestone Apr 3, 2023
@jaj22
Copy link
Author

jaj22 commented Apr 3, 2023

Looks like the only other active use of moveInAny is the salvage patrol boat, so nothing else needs fixing urgently.

Copy link

@MeltedPixel MeltedPixel left a comment

Choose a reason for hiding this comment

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

Yup, work around approved. We had this discussion on Discord.

@Bob-Murphy Bob-Murphy merged commit b0799da into official-antistasi-community:unstable Apr 5, 2023
@Bob-Murphy Bob-Murphy added the Added to changelog Added to changelog label May 8, 2023
igorkis-scrts pushed a commit to igorkis-scrts/A3-Antistasi-Plus that referenced this pull request Aug 8, 2023
…M-reb-trucks

Workaround Arma bug with moveInAny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants