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 <lbrennan002@my.wilmu.edu>
This commit is contained in:
copperpixel 2025-11-05 15:52:41 +01:00 committed by EricS-Valve
parent f75d714138
commit 202ed8217d
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}