mirror of
https://github.com/0TheSpy/Seaside.git
synced 2025-09-19 04:06:03 +08:00
Update Hooks.hpp
This commit is contained in:
@ -445,7 +445,9 @@ bool __stdcall hkCreateMove(float frame_time, CUserCmd* pCmd)
|
|||||||
const auto pre_flags = localplayer->GetFlags();
|
const auto pre_flags = localplayer->GetFlags();
|
||||||
|
|
||||||
bool interval = !((pCmd->tick_count + 1) % 10);
|
bool interval = !((pCmd->tick_count + 1) % 10);
|
||||||
|
|
||||||
|
if (g_Options.faststop)
|
||||||
|
fastStop(localplayer, pre_flags, pCmd);
|
||||||
if (g_Options.slidewalk)
|
if (g_Options.slidewalk)
|
||||||
pCmd->buttons ^= IN_FORWARD | IN_BACK | IN_MOVELEFT | IN_MOVERIGHT;
|
pCmd->buttons ^= IN_FORWARD | IN_BACK | IN_MOVELEFT | IN_MOVERIGHT;
|
||||||
if (g_Options.fastduck)
|
if (g_Options.fastduck)
|
||||||
@ -539,27 +541,22 @@ bool __stdcall hkCreateMove(float frame_time, CUserCmd* pCmd)
|
|||||||
if (isSomeoneSpectatingYou) ShowMenu(spectatorList);
|
if (isSomeoneSpectatingYou) ShowMenu(spectatorList);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_Options.faststop)
|
|
||||||
fastStop(localplayer, pre_flags, pCmd);
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (localplayer)
|
if (localplayer)
|
||||||
{
|
{
|
||||||
prediction::start(pCmd, localplayer);
|
prediction::start(pCmd, localplayer);
|
||||||
|
|
||||||
/*
|
|
||||||
if (iff.g_pInputSystem->IsButtonDown(KEY_SPACE) && !(pre_flags & FL_ONGROUND) && (localplayer->GetFlags() & FL_ONGROUND))//predicting that we're gonna hit the ground
|
if (iff.g_pInputSystem->IsButtonDown(KEY_SPACE) && !(pre_flags & FL_ONGROUND) && (localplayer->GetFlags() & FL_ONGROUND))//predicting that we're gonna hit the ground
|
||||||
{
|
{
|
||||||
pCmd->buttons |= IN_DUCK;
|
pCmd->buttons |= IN_DUCK;
|
||||||
pCmd->buttons &= IN_JUMP;
|
pCmd->buttons &= IN_JUMP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
prediction::end(localplayer);
|
prediction::end(localplayer);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
//*/
|
|
||||||
|
|
||||||
|
|
||||||
pCmd->viewangles.Clamp();
|
pCmd->viewangles.Clamp();
|
||||||
@ -661,4 +658,4 @@ int __fastcall hkGetPlayerMoney(void* this_, void* edx, int ent_index)
|
|||||||
// printfdbg("NotDormant %d Money %d\n", ent_index, ((C_BasePlayer*)player)->GetAccount());
|
// printfdbg("NotDormant %d Money %d\n", ent_index, ((C_BasePlayer*)player)->GetAccount());
|
||||||
return ((C_BasePlayer*)player)->GetAccount();
|
return ((C_BasePlayer*)player)->GetAccount();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user