From 654cf29f1e0ceb1e93307a7b45e6ed7bbcf4c8ec Mon Sep 17 00:00:00 2001 From: relaxtakenotes <134127331+jeffthekillerz@users.noreply.github.com> Date: Sat, 3 Jun 2023 14:36:23 +0500 Subject: [PATCH] fix nasa acceleration --- beatrun/gamemodes/beatrun/gamemode/sh/Melee.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/Melee.lua b/beatrun/gamemodes/beatrun/gamemode/sh/Melee.lua index 171ffd1..f753562 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/Melee.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/Melee.lua @@ -171,7 +171,8 @@ local function MeleeThink(ply, mv, cmd) if ply:GetMelee() >= 5 then local vel = mv:GetVelocity() - vel:Add(ply:GetWallrunDir() * 0.5 * vel:Length()) + // why is getwallrundir in the thousands? + vel:Add(ply:GetWallrunDir():GetNormalized() * 0.5 * vel:Length()) mv:SetVelocity(vel) end