From 723b847d30b5c491dd2a5ffa14b42818ba925234 Mon Sep 17 00:00:00 2001 From: Skull Merlin <86374920+skkuull@users.noreply.github.com> Date: Sat, 4 Jun 2022 22:11:11 +0300 Subject: [PATCH] elevators --- src/client/component/gameplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/component/gameplay.cpp b/src/client/component/gameplay.cpp index db08da0e..4916434b 100644 --- a/src/client/component/gameplay.cpp +++ b/src/client/component/gameplay.cpp @@ -248,11 +248,11 @@ namespace gameplay utils::hook::jump(0x3FF812_b, client_end_frame_stub(), true); utils::hook::nop(0x3FF808_b, 1); - /*// Influence PM_JitterPoint code flow so the trace->startsolid checks are 'ignored' + // Influence PM_JitterPoint code flow so the trace->startsolid checks are 'ignored' pm_player_trace_hook.create(0x2D14C0_b, &pm_player_trace_stub); // If g_enableElevators is 1 the 'ducked' flag will always be removed from the player state utils::hook::jump(0x2C9F90_b, utils::hook::assemble(pm_trace_stub), true); - dvars::g_enableElevators = dvars::register_bool("g_enableElevators", false, game::DvarFlags::DVAR_FLAG_NONE, "Enables Elevators");*/ + dvars::g_enableElevators = dvars::register_bool("g_enableElevators", false, game::DvarFlags::DVAR_FLAG_NONE, "Enables Elevators"); auto* timescale = dvars::register_float("timescale", 1.0f, 0.1f, 50.0f, game::DVAR_FLAG_REPLICATED, "Changes Timescale of the game"); utils::hook::inject(0x15B204_b, ×cale->current.value); // Com_GetTimeScale