Source 2007 Template Fixes
Jump to navigation
Jump to search
This is a collection of fixes that only effect the Source 2007 Template.
Fix laggy movement when Sprinting is disabled.
Apply this patch to game/shared/sdk/sdk_gamemovement.cpp
@@ -124,7 +123,7 @@
else
#endif // SDK_USE_SPRINTING
{
- flMaxSpeed = m_pSDKPlayer->m_Shared.m_flRunSpeed; //jogging
+ flMaxSpeed = m_pSDKPlayer->m_Shared.m_flSprintSpeed; //jogging
}
mv->m_flClientMaxSpeed = flMaxSpeed - 100 + stamina;
Missing prediction table entry on the client-side player
A prediction table in game/client/sdk/c_sdk_player.cpp is missing an entry for shared player data, causing some values such as the amount of stamina to appear jittery. Change it to resemble the following:
BEGIN_PREDICTION_DATA( C_SDKPlayer )
DEFINE_PRED_TYPEDESCRIPTION( m_Shared, CSDKPlayerShared ), // This is the missing line
(...)
END_PREDICTION_DATA()