Skip to content
This repository was archived by the owner on Mar 11, 2021. It is now read-only.

Commit dd87f9a

Browse files
committed
Readd extinguish code
1 parent 3a8a17d commit dd87f9a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lua/sv_spectator_deathmatch.lua

+8
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@ net.Receive("SpecDM_SendLoadout", function(_, ply)
182182
end
183183
end)
184184

185+
hook.Add("Tick", "Tick_Ghost", function()
186+
for k, v in ipairs(player.GetAll()) do
187+
if v:IsGhost() then
188+
v:Extinguish()
189+
end
190+
end
191+
end)
192+
185193
hook.Add("EntityTakeDamage", "EntityTakeDamage_SpecDMHitmarker", function(ent, dmginfo)
186194
if ent:IsPlayer() and ent:IsGhost() then
187195
local att = dmginfo:GetAttacker()

0 commit comments

Comments
 (0)