d CCSPlayer::PlayerRunCommand( CUserCmd *ucmd, IMoveHelper *moveHelper )
{
if (ucmd->tick_count > (gpGlobals->tickcount + sv_max_usercmd_future_ticks.GetInt()) )
{
DevMsg( "Client cmd out of sync (delta %i).\n", ucmd->tick_count - gpGlobals->tickcount );
return;
}
CBasePlayer::PlayerRunCommand( ucmd, moveHelper );
}
void CBasePlayer::PlayerRunCommand (CUserCmd *ucmd, IMoveHelper *moveHelper)
{
CPlayerMove::RunCommand(this, ucmd, moveHelper);
}
void CPlayerMove::RunCommand ( CBasePlayer *player, CUserCmd *ucmd, IMoveHelper *moveHelper )
{
int ticksallowed = max(0, player->m_iTicksAllowedForProcessing - 1);
player->m_iTicksAllowedForProcessing = ticksallowed;
if (ticksallowed < 1)
{
Warning("sv_maxusrcmdprocessticks_warning at server tick %u: Ignored client %s usrcmd (more commands than available movement ticks)!\n", globals->tickcount, v10);
return;
}
//Actually run command and then run CCSGOPlayerAnimState::Update
}