mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
add source-sdk-2013
This commit is contained in:
@@ -23,7 +23,6 @@ extern CMoveData *g_pMoveData; // This is a global because it is subclassed by e
|
||||
extern ConVar sv_noclipduringpause;
|
||||
|
||||
ConVar sv_maxusrcmdprocessticks_warning( "sv_maxusrcmdprocessticks_warning", "-1", FCVAR_NONE, "Print a warning when user commands get dropped due to insufficient usrcmd ticks allocated, number of seconds to throttle, negative disabled" );
|
||||
static ConVar sv_maxusrcmdprocessticks_holdaim( "sv_maxusrcmdprocessticks_holdaim", "1", FCVAR_CHEAT, "Hold client aim for multiple server sim ticks when client-issued usrcmd contains multiple actions (0: off; 1: hold this server tick; 2+: hold multiple ticks)" );
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
@@ -178,7 +177,6 @@ void CPlayerMove::SetupMove( CBasePlayer *player, CUserCmd *ucmd, IMoveHelper *p
|
||||
// Prepare remaining fields
|
||||
move->m_flClientMaxSpeed = player->m_flMaxspeed;
|
||||
move->m_nOldButtons = player->m_Local.m_nOldButtons;
|
||||
move->m_flOldForwardMove = player->m_Local.m_flOldForwardMove;
|
||||
move->m_vecAngles = player->pl.v_angle;
|
||||
|
||||
move->m_vecVelocity = player->GetAbsVelocity();
|
||||
@@ -444,12 +442,6 @@ void CPlayerMove::RunCommand ( CBasePlayer *player, CUserCmd *ucmd, IMoveHelper
|
||||
// Copy output
|
||||
FinishMove( player, ucmd, g_pMoveData );
|
||||
|
||||
// If we have to restore the view angle then do so right now
|
||||
if ( !player->IsBot() && ( gpGlobals->tickcount - player->GetLockViewanglesTickNumber() < sv_maxusrcmdprocessticks_holdaim.GetInt() ) )
|
||||
{
|
||||
player->pl.v_angle = player->GetLockViewanglesData();
|
||||
}
|
||||
|
||||
// Let server invoke any needed impact functions
|
||||
VPROF_SCOPE_BEGIN( "moveHelper->ProcessImpacts" );
|
||||
moveHelper->ProcessImpacts();
|
||||
|
||||
Reference in New Issue
Block a user