Skip to content

Commit

Permalink
Resolve baseviewmodel_shared.cpp.rej
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmcwatters committed Dec 25, 2024
1 parent 291a21a commit 7bf151d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
7 changes: 6 additions & 1 deletion mp/src/game/shared/baseviewmodel_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ void CBaseViewModel::CalcViewModelView( CBasePlayer *owner, const Vector& eyePos
}
// Add model-specific bob even if no weapon associated (for head bob for off hand models)
AddViewModelBob( owner, vmorigin, vmangles );
#if !defined ( CSTRIKE_DLL )
#if !defined ( CSTRIKE_DLL ) || !defined ( HL2SB )
// This was causing weapon jitter when rotating in updated CS:S; original Source had this in above InPrediction block 07/14/10
// Add lag
CalcViewModelLag( vmorigin, vmangles, vmangoriginal );
Expand All @@ -416,6 +416,11 @@ void CBaseViewModel::CalcViewModelView( CBasePlayer *owner, const Vector& eyePos
#if defined( CLIENT_DLL )
if ( !prediction->InPrediction() )
{
#if defined( HL2SB )
//Andrew; See https://developer.valvesoftware.com/wiki/Viewmodel_Prediction_Fix
// Add lag
CalcViewModelLag( vmorigin, vmangles, vmangoriginal );
#endif
// Let the viewmodel shake at about 10% of the amplitude of the player's view
vieweffects->ApplyShake( vmorigin, vmangles, 0.1 );
}
Expand Down
21 changes: 0 additions & 21 deletions mp/src/game/shared/baseviewmodel_shared.cpp.rej

This file was deleted.

0 comments on commit 7bf151d

Please sign in to comment.