mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 05:13:02 +05:00
use landgun anim if player has a gun
This commit is contained in:
parent
77f6f2ad08
commit
4ba59ed732
1 changed files with 11 additions and 2 deletions
|
@ -60,7 +60,11 @@ net.Receive("RollAnimSP", function()
|
||||||
local ply = LocalPlayer()
|
local ply = LocalPlayer()
|
||||||
|
|
||||||
if net.ReadBool() then
|
if net.ReadBool() then
|
||||||
|
if ply:UsingRH() then
|
||||||
roll.AnimString = "land"
|
roll.AnimString = "land"
|
||||||
|
else
|
||||||
|
roll.AnimString = "landgun"
|
||||||
|
end
|
||||||
roll.animmodelstring = "climbanim"
|
roll.animmodelstring = "climbanim"
|
||||||
roll.BodyAnimSpeed = 1
|
roll.BodyAnimSpeed = 1
|
||||||
elseif net.ReadBool() then
|
elseif net.ReadBool() then
|
||||||
|
@ -163,7 +167,12 @@ hook.Add("OnPlayerHitGround", "SafetyRoll", function(ply, water, floater, speed)
|
||||||
ply:SetSafetyRollAng(landang)
|
ply:SetSafetyRollAng(landang)
|
||||||
ply:SetSafetyRollTime(CurTime() + 0.6)
|
ply:SetSafetyRollTime(CurTime() + 0.6)
|
||||||
|
|
||||||
|
if ply:UsingRH() then
|
||||||
roll.AnimString = "land"
|
roll.AnimString = "land"
|
||||||
|
else
|
||||||
|
roll.AnimString = "landgun"
|
||||||
|
end
|
||||||
|
|
||||||
roll.animmodelstring = "climbanim"
|
roll.animmodelstring = "climbanim"
|
||||||
roll.usefullbody = true
|
roll.usefullbody = true
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue