From fe37a08a835347e6a46dc5f1fecd9595d9838ec1 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Sun, 20 Sep 2020 09:52:29 -0700 Subject: [PATCH] Change sniper kill texture --- mods/ctf/ctf_events/init.lua | 2 ++ .../textures/ctf_events_kill_sniper.png | Bin 0 -> 683 bytes mods/pvp/sniper_rifles/rifles.lua | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 mods/ctf/ctf_events/textures/ctf_events_kill_sniper.png 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 0000000000000000000000000000000000000000..c9ba3f013d908718621078fe16586bbae556aff7 GIT binary patch literal 683 zcmV;c0#yBpP)EX>4Tx04R}tkv&MmKpe$iQ>9ue3T6;-$WX<>f~bh2R-p(LLaorMgZbzeG-*gu zTpR`0f`cE6RRb_Q zA;$tL&>*>fus`_St(Bjg@RA~Np!3CXK8AtNF3_ks&iAq7G){ovGjOH1{FOQ|^GSNG zrA3c`-fiIGx~0i`z~v4w@MK7)4wfFY#nPz`KSC(>|B6^t-00006VoOIv07n2v07s7fa8LjM010qNS#tmY zE+YT{E+YYWr9XB6000McNlirueSad^gZEa<4bO1wgWnpw> zWFU8GbZ8()Nlj2!fese{004tYL_t(I%dM2l5x^h_1%-;}zY01c7tJ8yXGTtrz`|2> zjKYXWsu(y;WM)VqI(Y>Xk?6GtLk9p}HI?`QqV0^CQ~lGw6+um{00#8tVRm2z2qHPZ z3_5ervJBMmU6F$);~jN~W;(lo?S`xzsX)^&t{ipm5=oo;V&~+_D;_uglLt+6O>;V@ RAbtP<002ovPDHLkV1h2eA-n(p literal 0 HcmV?d00001 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 = {