From 1bce92840d755a34a276587a16aa0ba6d913e4d7 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sat, 9 Sep 2023 21:39:44 +0500 Subject: [PATCH] well okay --- beatrun/gamemodes/beatrun/gamemode/cl/JumpAnim.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/beatrun/gamemodes/beatrun/gamemode/cl/JumpAnim.lua b/beatrun/gamemodes/beatrun/gamemode/cl/JumpAnim.lua index 3721b05..a41651f 100644 --- a/beatrun/gamemodes/beatrun/gamemode/cl/JumpAnim.lua +++ b/beatrun/gamemodes/beatrun/gamemode/cl/JumpAnim.lua @@ -1726,6 +1726,17 @@ local function JumpThink() ang[1] = 0 ang[3] = 0 + if vel_l > 0 and string.StartsWith(BodyAnimString, "water_") then -- somehow that worked? i did literally nothing + local water_eye_ang = ply:EyeAngles() + water_eye_ang[1] = 0 + water_eye_ang[3] = 0 + local water_ang = LerpAngle(math.min(lerpspeed * FrameTime() * speed, 1), BodyAnim:GetAngles(), water_eye_ang) + + BodyAnim:SetAngles(water_ang) + + return + end + if vel_l > 0 or BodyAnimString == "walktostandleft" or ply:Crouching() or IsValid(ply:GetBalanceEntity()) then if newang:Forward():Dot(ang:Forward()) > -0.25 then ply.OrigEyeAng = newang