Viewmodel Prediction Fix: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 Note: This issue has been fixed in the latest SDK update.
Note: This issue has been fixed in the latest SDK update.
		
	
| No edit summary |  (Rewrite Template:Lang to Template:LanguageBar. This action was performed by a bot.) | ||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{LanguageBar|Viewmodel Prediction Fix}} | ||
| {{Note| This issue has been '''fixed''' in the latest SDK update.}} | |||
| Apply this patch to '''game/shared/baseviewmodel_shared.cpp''' | Apply this patch to '''game/shared/baseviewmodel_shared.cpp''' | ||
Latest revision as of 17:42, 18 July 2025
 Note: This issue has been fixed in the latest SDK update.
Note: This issue has been fixed in the latest SDK update.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 );	
 	}

























