Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Commit 87be085

Browse files
committed
gamemode/player_class/class_seeker: Log killed players in the debug log
1 parent 4169000 commit 87be085

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

source/gamemodes/prophuntextended/gamemode/player_class/class_seeker.lua

+7-2
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,13 @@ function CLASS:DamageEntity(ent, att, dmg)
146146
end
147147

148148
-- Death
149-
function CLASS:Death(inflictor, attacker)
150-
BaseClass.Death(self, inflictor, attacker)
149+
function CLASS:DoDeath(attacker, dmginfo)
150+
BaseClass.DoDeath(self, attacker, dmginfo)
151+
if GAMEMODE.Config:DebugLog() then
152+
if (IsValid(attacker) && attacker:IsPlayer() && attacker != self.Player) then
153+
print("Prop Hunt: Seeker '"..self.Player:GetName().."' (SteamID: "..self.Player:SteamID()..") killed by '"..attacker:GetName().."' (SteamID: "..attacker:SteamID()..").")
154+
end
155+
end
151156

152157
if SERVER then
153158
self.Player:SetShouldServerRagdoll(true)

0 commit comments

Comments
 (0)