This commit is contained in:
Wizzard 2023-12-08 19:12:18 -05:00
parent 6d37075ef8
commit 8c0a95c495
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ void Hooks::CreateMove(IBaseClientDLL* thisptr, int sequence, float frametime, b
cmd->buttons &= ~IN_JUMP;
if (GUI::BunnyHop::StrafeEnabled) {
f (!(localplayer->GetFlags() & FL_ONGROUND)) {
if (!(localplayer->GetFlags() & FL_ONGROUND)) {
if (cmd->mousedx > 1 || cmd->mousedx < -1) {
cmd->sidemove = (cmd->mousedx < 0.f) ? -450.f : 450.f;
} else {
} else {
cmd->forwardmove = (abs(cmd->forwardmove) > 0.f) ? 450.f : 0.f;
cmd->sidemove = (cmd->sidemove != 0.f) ? ((cmd->sidemove > 0.f) ? 450.f : -450.f) : 0.f;
}