LEADSENSE
-
Автор темы
- #1
Не работает Почему?? тоже самое с лагами и тд
Source :
Source :
Код:
void AntiAim::OnCreateMove ( CUserCmd* cmd, bool& bSendPacket )
{
if ( !g_LocalPlayer || !g_LocalPlayer->IsAlive() )
{
return;
}
int movetype = g_LocalPlayer->m_nMoveType();
if (
movetype == MOVETYPE_FLY
|| movetype == MOVETYPE_NOCLIP
|| cmd->buttons & IN_USE
|| cmd->buttons & IN_GRENADE1
|| cmd->buttons & IN_GRENADE2
)
{
if ( bSendPacket )
{
g_Saver.FakelagData.ang = cmd->viewangles;
}
return;
}
C_BaseCombatWeapon* weapon = g_LocalPlayer->m_hActiveWeapon().Get();
if ( !weapon )
{
return;
}
if ( weapon->m_flNextPrimaryAttack() - g_GlobalVars->curtime < g_GlobalVars->interval_per_tick && ( cmd->buttons & IN_ATTACK || cmd->buttons & IN_ATTACK2 ) )
{
return;
}
if ( movetype == MOVETYPE_LADDER )
{
static bool last = false;
bSendPacket = last;
last = !last;
if ( bSendPacket )
{
g_Saver.FakelagData.ang = cmd->viewangles;
}
return;
}
if ( weapon->IsGrenade() && weapon->m_fThrowTime() > 0.1f )
{
bSendPacket = false;
return;
}
if (g_EngineClient->IsConnected() && g_EngineClient->IsInGame() && g_Config.GetFloat("rbot_slowwalk"))
{
AntiAim::Get().ClampMovement2(cmd, g_Config.GetFloat("rbot_slowwalk_speed"));
}
DoAntiAim ( cmd, bSendPacket );
}