Tweak rocket damage
This commit is contained in:
parent
ac24f09417
commit
c18a9e67cf
4 changed files with 57 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue