add source-sdk-2013

This commit is contained in:
nillerusr
2022-03-01 23:00:42 +03:00
parent 88b8830e8b
commit edc8d6c584
3288 changed files with 3734 additions and 1062458 deletions

View File

@@ -518,7 +518,7 @@ void CGameMovement::DiffPrint( char const *fmt, ... )
#endif // !PREDICTION_ERROR_CHECK_LEVEL
#ifndef _XBOX
void COM_Log( const char *pszFile, const char *fmt, ...)
void COM_Log( char *pszFile, const char *fmt, ...)
{
va_list argptr;
char string[1024];
@@ -920,9 +920,10 @@ void CBasePlayer::UpdateWetness()
//-----------------------------------------------------------------------------
void CGameMovement::CategorizeGroundSurface( trace_t &pm )
{
IPhysicsSurfaceProps *physprops = MoveHelper()->GetSurfaceProps();
player->m_surfaceProps = pm.surface.surfaceProps;
player->m_pSurfaceData = MoveHelper()->GetSurfaceProps()->GetSurfaceData( player->m_surfaceProps );
MoveHelper()->GetSurfaceProps()->GetPhysicsProperties( player->m_surfaceProps, NULL, NULL, &player->m_surfaceFriction, NULL );
player->m_pSurfaceData = physprops->GetSurfaceData( player->m_surfaceProps );
physprops->GetPhysicsProperties( player->m_surfaceProps, NULL, NULL, &player->m_surfaceFriction, NULL );
// HACKHACK: Scale this to fudge the relationship between vphysics friction values and player friction values.
// A value of 0.8f feels pretty normal for vphysics, whereas 1.0f is normal for players.
@@ -1199,7 +1200,6 @@ void CGameMovement::FinishTrackPredictionErrors( CBasePlayer *pPlayer )
void CGameMovement::FinishMove( void )
{
mv->m_nOldButtons = mv->m_nButtons;
mv->m_flOldForwardMove = mv->m_flForwardMove;
}
#define PUNCH_DAMPING 9.0f // bigger number makes the response more damped, smaller is less damped
@@ -2147,7 +2147,7 @@ void CGameMovement::FullObserverMove( void )
{
int mode = player->GetObserverMode();
if ( mode == OBS_MODE_IN_EYE || mode == OBS_MODE_CHASE || mode == OBS_MODE_POI )
if ( mode == OBS_MODE_IN_EYE || mode == OBS_MODE_CHASE )
{
CBaseEntity * target = player->GetObserverTarget();