From 202ed8217d4054863255b5095f674214a1b9b053 Mon Sep 17 00:00:00 2001 From: copperpixel <48454166+copperpixel@users.noreply.github.com> Date: Wed, 5 Nov 2025 15:52:41 +0100 Subject: [PATCH] tf: update tracer rounds fix for spectators viewmodels Updates https://github.com/ValveSoftware/source-sdk-2013/pull/1244 to work with https://github.com/ValveSoftware/source-sdk-2013/pull/1439 Co-authored-by: birchish --- src/game/shared/tf/tf_player_shared.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/shared/tf/tf_player_shared.cpp b/src/game/shared/tf/tf_player_shared.cpp index 51f7552b1..b2fa5953b 100644 --- a/src/game/shared/tf/tf_player_shared.cpp +++ b/src/game/shared/tf/tf_player_shared.cpp @@ -37,6 +37,7 @@ // Client specific. #ifdef CLIENT_DLL #include "c_tf_player.h" +#include "c_baseviewmodel.h" #include "c_te_effect_dispatch.h" #include "c_tf_fx.h" #include "soundenvelope.h" @@ -197,8 +198,6 @@ ConVar tf_afterburn_debug( "tf_afterburn_debug", "0", FCVAR_REPLICATED | FCVAR_C #ifdef CLIENT_DLL ConVar tf_colorblindassist( "tf_colorblindassist", "0", FCVAR_CLIENTDLL | FCVAR_ARCHIVE, "Setting this to 1 turns on colorblind mode." ); -extern ConVar cl_flipviewmodels; - extern ConVar cam_idealdist; extern ConVar cam_idealdistright; @@ -10058,7 +10057,7 @@ void CTFPlayer::GetHorriblyHackedRailgunPosition( const Vector& vStart, Vector * #ifdef CLIENT_DLL // Flips the horizontal position. - if ( cl_flipviewmodels.GetBool() ) + if ( TeamFortress_ShouldFlipClientViewModel() ) { vRight *= -1; }