diff --git a/src/client/feature/module/impl/game/ToggleSprintSneak.cpp b/src/client/feature/module/impl/game/ToggleSprintSneak.cpp index cfbd249e..e2f66a98 100644 --- a/src/client/feature/module/impl/game/ToggleSprintSneak.cpp +++ b/src/client/feature/module/impl/game/ToggleSprintSneak.cpp @@ -43,11 +43,7 @@ void ToggleSprintSneak::onTick(Event& evGeneric) { } else if ((std::get(sprint) && toggleSprinting) || input->sprintKey) { left = L"Sprinting"; - if (input->front && !plr->getItemUseDuration() && !input->sneak && plr->getHunger() > 6.f) { // TODO: check CollidedHorizontally/vertically + hunger - if (!input->sprintKey) { - plr->setSprinting(true); - } - } + input->sprinting = true; if (toggleSprinting) { right = L"Toggled"; if (std::get(alwaysSprint)) right = L"Always"; diff --git a/src/sdk/common/entity/component/MoveInputComponent.h b/src/sdk/common/entity/component/MoveInputComponent.h index afb265f4..5a70a9ef 100644 --- a/src/sdk/common/entity/component/MoveInputComponent.h +++ b/src/sdk/common/entity/component/MoveInputComponent.h @@ -12,5 +12,6 @@ namespace SDK { MVCLASS_FIELD(bool, back, 0x0B, 0x60, 0x60); MVCLASS_FIELD(bool, left, 0x0C, 0x61, 0x61); MVCLASS_FIELD(bool, right, 0x0D, 0x62, 0x62); + MVCLASS_FIELD(bool, sprinting, 0x27, 0x6C, 0x6C); }; }