gamemode/player_class/class_seeker: Log killed players in the debug log

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2018-08-07 00:17:00 +02:00
parent 4169000b22
commit 87be085030
@@ -146,8 +146,13 @@ function CLASS:DamageEntity(ent, att, dmg)
end
-- Death
function CLASS:Death(inflictor, attacker)
BaseClass.Death(self, inflictor, attacker)
function CLASS:DoDeath(attacker, dmginfo)
BaseClass.DoDeath(self, attacker, dmginfo)
if GAMEMODE.Config:DebugLog() then
if (IsValid(attacker) && attacker:IsPlayer() && attacker != self.Player) then
print("Prop Hunt: Seeker '"..self.Player:GetName().."' (SteamID: "..self.Player:SteamID()..") killed by '"..attacker:GetName().."' (SteamID: "..attacker:SteamID()..").")
end
end
if SERVER then
self.Player:SetShouldServerRagdoll(true)