Change sniper kill texture

This commit is contained in:
LoneWolfHT 2020-09-20 09:52:29 -07:00
parent d9771108e5
commit fe37a08a83
3 changed files with 4 additions and 2 deletions

View file

@ -129,6 +129,8 @@ ctf.register_on_killedplayer(function(victim, killer, stack, tool_caps)
type = "rocket" type = "rocket"
elseif tool_caps.damage_groups.ranged then elseif tool_caps.damage_groups.ranged then
type = "bullet" type = "bullet"
elseif tool_caps.damage_groups.sniper then
type = "sniper"
end end
if tool_caps.damage_groups.combat_log then if tool_caps.damage_groups.combat_log then

Binary file not shown.

After

Width:  |  Height:  |  Size: 683 B

View file

@ -7,7 +7,7 @@ sniper_rifles.register_rifle("sniper_rifles:rifle_762", {
rounds = 30, rounds = 30,
range = 300, range = 300,
step = 30, step = 30,
tool_caps = { full_punch_interval = 1.5, damage_groups = { fleshy = 12 } }, tool_caps = { full_punch_interval = 1.5, damage_groups = { fleshy = 12, sniper = 1 } },
sounds = { shot = "sniper_rifles_shot" }, sounds = { shot = "sniper_rifles_shot" },
particle = "shooter_bullet.png", particle = "shooter_bullet.png",
groups = { groups = {
@ -25,7 +25,7 @@ sniper_rifles.register_rifle("sniper_rifles:rifle_magnum", {
rounds = 20, rounds = 20,
range = 400, range = 400,
step = 30, step = 30,
tool_caps = { full_punch_interval = 2, damage_groups = { fleshy = 16 } }, tool_caps = { full_punch_interval = 2, damage_groups = { fleshy = 16, sniper = 1 } },
sounds = { shot = "sniper_rifles_shot" }, sounds = { shot = "sniper_rifles_shot" },
particle = "shooter_bullet.png", particle = "shooter_bullet.png",
groups = { groups = {