gamemode: Remove the NoCollide constraint on player death

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2017-11-26 12:46:02 +01:00
parent 20dc523045
commit 73a587085c
@@ -80,6 +80,9 @@ function CLASS:PostDeath(attacker, dmginfo)
BaseClass.PostDeath(self, inflictor, attacker)
-- Delete Hands Model
if IsValid(self.Player.Data.PropConstraint) then
self.Player.Data.PropConstraint:Remove()
end
if IsValid(self.Player:GetHands()) then
self.Player:GetHands():Remove()
end
@@ -112,7 +115,9 @@ function CLASS:DeathThink()
end
-- Visible Stuff
function CLASS:SetModel() self.Player:SetModel("models/Gibs/Antlion_gib_small_3.mdl") end -- does "" even work?
function CLASS:SetModel()
self.Player:SetModel("models/Gibs/Antlion_gib_small_3.mdl")
end
-- Interaction
function CLASS:Use(ent)