Attribute thrower as killer

This commit is contained in:
rubenwardy 2016-04-06 00:12:20 +01:00
parent 2321195c7a
commit efbd21eed1
4 changed files with 6 additions and 9 deletions

View file

@ -23,11 +23,7 @@ function ctf_events.post(action, one, two)
end
ctf.register_on_killedplayer(function(victim, killer, type)
if killer == victim then
ctf_events.post("kill_grenade", nil, victim)
else
ctf_events.post("kill_" .. type, killer, victim)
end
ctf_events.post("kill_" .. type, killer, victim)
ctf_events.update_all()
end)