From 842b3b97046cbcf3737f4416b6f191648266752b Mon Sep 17 00:00:00 2001 From: ball_hurt Date: Fri, 4 Sep 2026 12:50:14 +0200 Subject: [PATCH] Make leg vault animations work on any swep Moved related vault body anims so all mantle anims run consistently regardless of equipped weapon or auto-switch settings --- gamemodes/beatrun/gamemode/cl/JumpAnim.lua | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/gamemodes/beatrun/gamemode/cl/JumpAnim.lua b/gamemodes/beatrun/gamemode/cl/JumpAnim.lua index f2022b2d..9c6e1afc 100644 --- a/gamemodes/beatrun/gamemode/cl/JumpAnim.lua +++ b/gamemodes/beatrun/gamemode/cl/JumpAnim.lua @@ -1808,12 +1808,6 @@ local function JumpThink() BodyAnim:SetSequence("wallrunverticalstart") end - if ply:GetMantle() == 2 then - BodyAnim:SetSequence("vaultover") - elseif ply:GetMantle() == 3 then - BodyAnim:SetSequence("vaultkong") - end - if IsValid(ply:GetZipline()) then BodyAnim:SetSequence("zipline") end end end @@ -2106,6 +2100,18 @@ local function JumpThink() func = func and func(ply) if func == true then return end + + if ply:GetMantle() == 2 then + BodyAnim:SetSequence("vaultover") + + return + end + + if ply:GetMantle() == 3 then + BodyAnim:SetSequence("vaultkong") + + return + end if ply:GetMantle() == 4 then BodyAnim:SetSequence("vaultoverhigh")