Fix ranged kill detection (#667)
This commit is contained in:
parent
ab709bb0a4
commit
e76dcf0563
2 changed files with 2 additions and 3 deletions
|
@ -121,14 +121,13 @@ function ctf_events.update_all()
|
|||
end
|
||||
|
||||
ctf.register_on_killedplayer(function(victim, killer, stack, tool_caps)
|
||||
local sname = stack:get_name()
|
||||
local type = "sword"
|
||||
|
||||
if tool_caps.damage_groups.grenade then
|
||||
type = "grenade"
|
||||
elseif tool_caps.damage_groups.rocket then
|
||||
type = "rocket"
|
||||
elseif sname:sub(1, 8) == "shooter:" then
|
||||
elseif tool_caps.damage_groups.ranged then
|
||||
type = "bullet"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue