From 7848842d4324d8f7d96e6cc0aea434ca8e9a5cbd Mon Sep 17 00:00:00 2001 From: Lam Hung Date: Fri, 3 Nov 2023 20:46:54 +0700 Subject: [PATCH] Fix NASA speed acceleration with weapons --- beatrun/gamemodes/beatrun/gamemode/sh/FreerunSysAll.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/FreerunSysAll.lua b/beatrun/gamemodes/beatrun/gamemode/sh/FreerunSysAll.lua index 9aecb33..7f03126 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/FreerunSysAll.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/FreerunSysAll.lua @@ -257,8 +257,8 @@ hook.Add("SetupMove", "MESetupMove", function(ply, mv, cmd) local weaponspeed = 150 local activewep = ply:GetActiveWeapon() - if ply:notUsingRH() then - weaponspeed = speed_limit:GetInt() + if ply:notUsingRH() then -- Fix the NASA move stuff + weaponspeed = speed_limit:GetInt() * 0.461538 end if (ismoving or ply:GetMantle() ~= 0) and ply:GetMESprintDelay() < CurTime() and (cmd:KeyDown(IN_SPEED) or ply:GetMantle() ~= 0 or not ply:OnGround() or (not ply:OnGround() or ply:GetMantle() ~= 0) and mv:GetVelocity().z > -450) then