ensure networktpanim is trying to animate a player

This commit is contained in:
TheOnly8Z 2023-09-03 18:28:16 -05:00
parent e4e4a3afd5
commit b103744a8b

View File

@ -289,7 +289,7 @@ if CLIENT then
local ent = net.ReadEntity()
local aseq = net.ReadUInt(16)
local starttime = net.ReadFloat()
if IsValid(ent) && ent ~= LocalPlayer() then
if IsValid(ent) and ent ~= LocalPlayer() and ent:IsPlayer() then
ent:AddVCDSequenceToGestureSlot( GESTURE_SLOT_ATTACK_AND_RELOAD, aseq, starttime, true )
end
end)