diff --git a/mods/ctf/ctf_events/init.lua b/mods/ctf/ctf_events/init.lua index c1182a4..c99acc9 100644 --- a/mods/ctf/ctf_events/init.lua +++ b/mods/ctf/ctf_events/init.lua @@ -129,6 +129,8 @@ ctf.register_on_killedplayer(function(victim, killer, stack, tool_caps) type = "rocket" elseif tool_caps.damage_groups.ranged then type = "bullet" + elseif tool_caps.damage_groups.sniper then + type = "sniper" end if tool_caps.damage_groups.combat_log then diff --git a/mods/ctf/ctf_events/textures/ctf_events_kill_sniper.png b/mods/ctf/ctf_events/textures/ctf_events_kill_sniper.png new file mode 100644 index 0000000..c9ba3f0 Binary files /dev/null and b/mods/ctf/ctf_events/textures/ctf_events_kill_sniper.png differ diff --git a/mods/pvp/sniper_rifles/rifles.lua b/mods/pvp/sniper_rifles/rifles.lua index 46e0765..3aa6ca8 100644 --- a/mods/pvp/sniper_rifles/rifles.lua +++ b/mods/pvp/sniper_rifles/rifles.lua @@ -7,7 +7,7 @@ sniper_rifles.register_rifle("sniper_rifles:rifle_762", { rounds = 30, range = 300, 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" }, particle = "shooter_bullet.png", groups = { @@ -25,7 +25,7 @@ sniper_rifles.register_rifle("sniper_rifles:rifle_magnum", { rounds = 20, range = 400, 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" }, particle = "shooter_bullet.png", groups = {