Tweak rocket damage

This commit is contained in:
rubenwardy 2020-03-15 18:32:33 +00:00
parent ac24f09417
commit c18a9e67cf
4 changed files with 57 additions and 11 deletions

View file

@ -123,10 +123,11 @@ end
ctf.register_on_killedplayer(function(victim, killer, stack, tool_caps)
local sname = stack:get_name()
local type = "sword"
if sname == "" then
if tool_caps.damage_groups.grenade then
type = "grenade"
end
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
type = "bullet"
end