Viewmodel Prediction Fix: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| mNo edit summary | No edit summary | ||
| Line 21: | Line 21: | ||
| [[Category:Snippets]] | [[Category:Snippets]] | ||
| [[Category:Programming]] | |||
Revision as of 00:34, 8 June 2023
Apply this patch to game/shared/baseviewmodel_shared.cpp
@@ -392,12 +392,12 @@
 	}
 	// Add model-specific bob even if no weapon associated (for head bob for off hand models)
 	AddViewModelBob( owner, vmorigin, vmangles );
-	// Add lag
-	CalcViewModelLag( vmorigin, vmangles, vmangoriginal );
 
 #if defined( CLIENT_DLL )
 	if ( !prediction->InPrediction() )
 	{
+		// Add lag
+		CalcViewModelLag( vmorigin, vmangles, vmangoriginal );
 		// Let the viewmodel shake at about 10% of the amplitude of the player's view
 		vieweffects->ApplyShake( vmorigin, vmangles, 0.1 );	
 	}

























