We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 277de7c commit 36db0e4Copy full SHA for 36db0e4
lua/pac3/core/client/parts/damage_zone.lua
@@ -792,8 +792,10 @@ net.Receive("pac_hit_results", function(len)
792
793
if not recycle_hitmark:GetBool() then
794
local ent = parent_ent
795
+ local cs_ent = false
796
if not self.AttachPartsToTargetEntity then
797
ent = pac.CreateEntity("models/props_junk/popcan01a.mdl")
798
+ cs_ent = true
799
ent:SetNoDraw(true)
800
ent:SetPos(pos)
801
end
@@ -805,9 +807,9 @@ net.Receive("pac_hit_results", function(len)
805
807
ent.pac_hitmark_part:Remove()
806
808
809
- timer.Simple(0.5, function()
- SafeRemoveEntity(ent)
810
- end)
+ if cs_ent then
811
+ SafeRemoveEntityDelayed(ent, 0.5)
812
+ end
813
814
end)
815
return
0 commit comments