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
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit bc0fc7f43c58853d05c86b9254ed52a0b8a3390c
|
||||
Subproject commit d7f6dc7c06110ca7f1eead0b15b6630d7466c649
|
Loading…
Reference in a new issue