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

Improvements to taskGarrison and taskCamp #414

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

nk3nny
Copy link
Owner

@nk3nny nk3nny commented Oct 9, 2024

Adds garrisoned units that are placed outside will appear to look out from building
Improves garrison behaviour when there are no indoor locations (fixes issue #413)
Fixes units being teleported to building positions located in air
Fixes taskCamp units sometimes throwing double animation resets
Fixes taskCamp units failing to reset animations

--
Prefers using setVehiclePosition rather than setPos when placing units. While more expensive, taskGarrison and taskCamp are not run frequently. This neatly fixes many issues where units were spawned in the air (and fell to their deaths!)

With the new and improved eventhandlers makes resetting animations in taskCampReset is much more reliable. Therefore no need to run the function multiple times on all units.

Adds garrisoned units that are placed outside will appear to look out from building
Improves garrison behaviour when there are no outdoor locations (fixes issue #413)
Fixes units being teleported to building positions located in air
Fixes taskCamp units sometimes throwing double animation resets
Fixes taskCamp units failing to reset animations

--
Prefers using setVehiclePosition rather than setPos when placing units.  While more expensive, taskGarrison and taskCamp are not run frequently.  This neatly fixes many issues where units were spawned in the air (and fell to their deaths!)

With the new and improved eventhandlers reseting animations in taskCampReset is much more reliable. Therefore no need to run the function multiple times on all units.
@nk3nny nk3nny requested review from jokoho48 and diwako October 9, 2024 19:37
@nk3nny nk3nny self-assigned this Oct 9, 2024
@nk3nny nk3nny added this to the 2.6.1 milestone Oct 14, 2024
@nk3nny nk3nny merged commit 3dc43c4 into master Oct 14, 2024
4 checks passed
@nk3nny nk3nny deleted the Improvements-to-taskGarrison-and-taskCamp branch October 14, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant