twhl-community / halflife-updated

Half-Life SDK updated to compile under VS2019 and 2022. Check README.md for more information.
Other
382 stars 146 forks source link

Fix autoswitch from tripmine to RPG causing wrong animation to play when weapon prediction is off #160

Closed SamVanheer closed 2 years ago

SamVanheer commented 2 years ago

When you run out of tripmines and the game autoswitches to the RPG the wrong animation is played when weapon prediction is off. This happens because the tripmine event plays after the server side deploy animation has been set, so the tripmine animation value overrides it.