Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
gamemode/player_class/class_seeker: Log killed players in the debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaymar committed Aug 6, 2018
1 parent 4169000 commit 87be085
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 87be085

Please sign in to comment.