gamemode: Fix Suicide and Team Killing increasing Frags

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2017-11-26 13:49:20 +01:00
parent 863f099f31
commit 7f3ba60b40
@@ -62,11 +62,12 @@ function CLASS:Death(inflictor, attacker)
self.Player.Data.Alive = false
self.Player.Data.AliveTime = CurTime()
-- Score support
if IsValid(attacker) then
if attacker:IsPlayer() then
attacker:AddFrags(1)
end
self.Player:AddDeaths(1)
if IsValid(attacker) && attacker:IsPlayer() then
if ((attacker == self.Player)
|| (attacker:Team() == self.Player:Team())) then
self.Player:AddFrags(-1)
end
end
end
function CLASS:SilentDeath()