source-sdk-2013
source-sdk-2013 copied to clipboard
[TF2] Fix the 3d model in the hud using the incorrect animations while holding the passtime ball
Description
Currently while holding the passtime ball the 3d model in the hud will use the allclass melee animations instead of the proper passtime ball animations. This PR attempts to fix this by introducing a new weapon type for the passtime ball used for the animations.
Implementing this will also require a change to the definition of TF_WEAPON_PASSTIME_GUN in items_game.txt
"item_name" "#Weapon_Passtime_Gun"
"item_slot" "utility"
- "anim_slot" "MELEE_ALLCLASS"
"attach_to_hands""1"
"hidden" "1"
to
"item_name" "#Weapon_Passtime_Gun"
"item_slot" "utility"
+ "anim_slot" "PASSTIME_BALL"
"attach_to_hands" "1"
"hidden" "1"