From 2878a533f5382b9db44f94926f502d43a2bec04f Mon Sep 17 00:00:00 2001 From: gidi30 Date: Fri, 12 Dec 2025 15:12:13 +0100 Subject: [PATCH] Add passtime ball anim slot --- src/game/client/tf/vgui/tf_playermodelpanel.cpp | 1 + src/game/shared/tf/tf_item_constants.h | 1 + src/game/shared/tf/tf_item_schema.cpp | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/client/tf/vgui/tf_playermodelpanel.cpp b/src/game/client/tf/vgui/tf_playermodelpanel.cpp index 29e2d018fed..d1ac599fa1e 100644 --- a/src/game/client/tf/vgui/tf_playermodelpanel.cpp +++ b/src/game/client/tf/vgui/tf_playermodelpanel.cpp @@ -954,6 +954,7 @@ static const char *s_pszDefaultAnimForWpnSlot[] = "ACT_MP_STAND_PRIMARY", // TF_WPN_TYPE_PRIMARY2 "ACT_MP_STAND_ITEM3", // TF_WPN_TYPE_ITEM3 "ACT_MP_STAND_ITEM4", // TF_WPN_TYPE_ITEM4 + "ACT_MP_STAND_PASSTIME", // TF_WPN_TYPE_PASSTIME_BALL }; COMPILE_TIME_ASSERT( ARRAYSIZE( s_pszDefaultAnimForWpnSlot ) == TF_WPN_TYPE_COUNT ); diff --git a/src/game/shared/tf/tf_item_constants.h b/src/game/shared/tf/tf_item_constants.h index 7f028bf8415..98ad30a9e1e 100644 --- a/src/game/shared/tf/tf_item_constants.h +++ b/src/game/shared/tf/tf_item_constants.h @@ -31,6 +31,7 @@ enum TF_WPN_TYPE_PRIMARY2, TF_WPN_TYPE_ITEM3, TF_WPN_TYPE_ITEM4, + TF_WPM_TYPE_PASSTIME_BALL, // diff --git a/src/game/shared/tf/tf_item_schema.cpp b/src/game/shared/tf/tf_item_schema.cpp index 433f017fcaf..282ce03d286 100644 --- a/src/game/shared/tf/tf_item_schema.cpp +++ b/src/game/shared/tf/tf_item_schema.cpp @@ -1605,7 +1605,8 @@ const char *g_szWeaponTypeSubstrings[] = "SECONDARY2", "PRIMARY2", "ITEM3", - "ITEM4" + "ITEM4", + "PASSTIME_BALL" }; COMPILE_TIME_ASSERT( ARRAYSIZE( g_szWeaponTypeSubstrings ) == TF_WPN_TYPE_COUNT );