This commit is contained in:
Jonny_Bro (Nikita) 2023-09-28 08:07:44 +05:00 committed by GitHub
parent 49d480c7a5
commit 249589984a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1656,7 +1656,7 @@ local function JumpThink()
BodyAnim:SetSequence(transitionanims[BodyAnimString])
end
if ply:WaterLevel() >= 2 and not ply:Crouching() then
if ply:WaterLevel() >= 2 and not ply:Crouching() and not ply:OnGround() then
BodyAnim:SetSequence(BodyAnim:LookupSequence("water_float"))
if ply:KeyDown(IN_MOVELEFT) and vel_l > 5 then
@ -1775,4 +1775,4 @@ local function JumpThink()
end
end
hook.Add("Think", "JumpThink", JumpThink)
hook.Add("Think", "JumpThink", JumpThink)