From c935913fe0545cc020151c39ae976f64cc37c822 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Wed, 8 Mar 2023 21:41:02 +0000 Subject: [PATCH] [PlayerMovement]: Update dvar name to avoid confusion --- src/Components/Modules/PlayerMovement.cpp | 6 +++--- src/Components/Modules/PlayerMovement.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Modules/PlayerMovement.cpp b/src/Components/Modules/PlayerMovement.cpp index aef7cff2..e933a255 100644 --- a/src/Components/Modules/PlayerMovement.cpp +++ b/src/Components/Modules/PlayerMovement.cpp @@ -15,7 +15,7 @@ namespace Components const Game::dvar_t* PlayerMovement::PlayerSpectateSpeedScale; const Game::dvar_t* PlayerMovement::BGBounces; const Game::dvar_t* PlayerMovement::BGBouncesAllAngles; - const Game::dvar_t* PlayerMovement::BGBunnyHopSlowdown; + const Game::dvar_t* PlayerMovement::BGDisableLandingSlowdown; const Game::dvar_t* PlayerMovement::BGBunnyHopAuto; const Game::dvar_t* PlayerMovement::PlayerDuckedSpeedScale; const Game::dvar_t* PlayerMovement::PlayerProneSpeedScale; @@ -221,7 +221,7 @@ namespace Components void PlayerMovement::PM_CrashLand_Stub(const float* v, float scale, const float* result) { - if (!BGBunnyHopSlowdown->current.enabled) + if (!BGDisableLandingSlowdown->current.enabled) { Utils::Hook::Call(0x4C12B0)(v, scale, result); } @@ -291,7 +291,7 @@ namespace Components 3.0f, 0.001f, 1000.0f, Game::DVAR_CHEAT | Game::DVAR_CODINFO, "The speed at which noclip camera moves"); - BGBunnyHopSlowdown = Game::Dvar_RegisterBool("bg_bunnyHopSlowdown", + BGDisableLandingSlowdown = Game::Dvar_RegisterBool("bg_disableLandingSlowdown", false, Game::DVAR_CODINFO, "Toggle landing slowdown"); BGBunnyHopAuto = Game::Dvar_RegisterBool("bg_bunnyHopAuto", diff --git a/src/Components/Modules/PlayerMovement.hpp b/src/Components/Modules/PlayerMovement.hpp index 64f2328e..9f87e2cd 100644 --- a/src/Components/Modules/PlayerMovement.hpp +++ b/src/Components/Modules/PlayerMovement.hpp @@ -23,7 +23,7 @@ namespace Components static const Game::dvar_t* PlayerSpectateSpeedScale; static const Game::dvar_t* BGBounces; static const Game::dvar_t* BGBouncesAllAngles; - static const Game::dvar_t* BGBunnyHopSlowdown; + static const Game::dvar_t* BGDisableLandingSlowdown; static const Game::dvar_t* BGBunnyHopAuto; static const Game::dvar_t* PlayerDuckedSpeedScale; static const Game::dvar_t* PlayerProneSpeedScale;