[TF2] Fix players going into the reference pose when stomping #1611
+5
−1
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.
Description
Currently if a Soldier Pyro or Medic meet the criteria for the stomping animation they may go into a reference pose if they use certain weapons due to missing entries in the acttables and missing activities in the player models.
For Soldier if your active weapon uses Primary2 or MeleeAllClass animations it will try to use the untranslated ACT_MP_FALLING_STOMP activity which doesnt exist for Soldier.
For Pyro if your active weapon translates the activity to ACT_MP_FALLING_STOMP_PRIMARY or ACT_MP_FALLING_STOMP_MELEE, which most of them do, it will cause the player to go into a reference pose due to Pyro not having those activities.
For Medic it will always cause a reference pose if the game decides to do the stomping activity due to him not having any stomping activities.
This PR tries to fix it by adding the missing entries to the Primary2 and MeleeAllClass acttables and adding a check to see if the model can actually use the activity before applying it.