mirror of
https://github.com/JonnyBro/beatrun.git
synced 2025-02-22 14:38:29 +05:00
fix error on death
This commit is contained in:
parent
43410109dd
commit
2c8d2671bc
2 changed files with 3 additions and 3 deletions
|
@ -136,7 +136,7 @@ function RemoveBodyAnim(noang)
|
|||
local currentwep = ply:GetActiveWeapon()
|
||||
local vm = ply:GetViewModel()
|
||||
|
||||
if not ply:UsingRH() then
|
||||
if ply:Alive() and not ply:UsingRH() then
|
||||
if currentwep.PlayViewModelAnimation then
|
||||
currentwep:PlayViewModelAnimation("Draw")
|
||||
else
|
||||
|
|
|
@ -72,9 +72,9 @@ function playermeta:SetWallrunData(wr, wrtime, dir)
|
|||
end
|
||||
|
||||
function playermeta:UsingRH(wep)
|
||||
local activewep = wep or self:GetActiveWeapon()
|
||||
wep = wep or self:GetActiveWeapon()
|
||||
|
||||
if IsValid(activewep) and activewep:GetClass() == "runnerhands" then
|
||||
if IsValid(wep) and wep:GetClass() == "runnerhands" then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue