Don't crash on faulty player (missing GetAimVector, fixes the bug mentioned on the front page).
parent
fba811e125
commit
f65cc5fb03
|
@ -96,7 +96,7 @@ end)
|
||||||
hook.Add("HUDPaint", "Disguiser.ThirdPersonHUDPaint", function()
|
hook.Add("HUDPaint", "Disguiser.ThirdPersonHUDPaint", function()
|
||||||
local ply = LocalPlayer()
|
local ply = LocalPlayer()
|
||||||
|
|
||||||
if IsValid(ply) && ply:Alive() && ply:GetNetworkedBool("thirdperson") then
|
if IsValid(ply) && !!ply["GetAimVector"] && ply:Alive() && ply:GetNetworkedBool("thirdperson") then
|
||||||
// trace from muzzle to hit pos
|
// trace from muzzle to hit pos
|
||||||
local t = {}
|
local t = {}
|
||||||
t.start = ply:GetShootPos()
|
t.start = ply:GetShootPos()
|
||||||
|
|
Loading…
Reference in New Issue