gamemode: Fix Suicide and Team Killing increasing Frags
This commit is contained in:
@@ -62,11 +62,12 @@ function CLASS:Death(inflictor, attacker)
|
|||||||
self.Player.Data.Alive = false
|
self.Player.Data.Alive = false
|
||||||
self.Player.Data.AliveTime = CurTime()
|
self.Player.Data.AliveTime = CurTime()
|
||||||
-- Score support
|
-- Score support
|
||||||
if IsValid(attacker) then
|
self.Player:AddDeaths(1)
|
||||||
if attacker:IsPlayer() then
|
if IsValid(attacker) && attacker:IsPlayer() then
|
||||||
attacker:AddFrags(1)
|
if ((attacker == self.Player)
|
||||||
|
|| (attacker:Team() == self.Player:Team())) then
|
||||||
|
self.Player:AddFrags(-1)
|
||||||
end
|
end
|
||||||
self.Player:AddDeaths(1)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function CLASS:SilentDeath()
|
function CLASS:SilentDeath()
|
||||||
|
|||||||
Reference in New Issue
Block a user