X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_shotgun.qc;h=7d175e55ba55249b94f1df02afaabd951082342b;hb=8db035f374df1c19ea24531f8a96f04625f5f559;hp=fcf9a27c27482a25432747d58cc37ee974fae513;hpb=6f6a9d3ce8a4fd3c10f7421ba27e4bfc944c8f9b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/w_shotgun.qc b/qcsrc/server/w_shotgun.qc index fcf9a27c2..7d175e55b 100644 --- a/qcsrc/server/w_shotgun.qc +++ b/qcsrc/server/w_shotgun.qc @@ -238,6 +238,17 @@ float w_shotgun(float req) { W_Reload(autocvar_g_balance_shotgun_primary_ammo, autocvar_g_balance_shotgun_reload_ammo, autocvar_g_balance_shotgun_reload_time, "weapons/reload.wav"); } + else if (req == WR_SUICIDEMESSAGE) + { + return WEAPON_THINKING_WITH_PORTALS; + } + else if (req == WR_KILLMESSAGE) + { + if(w_deathtype & HITTYPE_SECONDARY) + return WEAPON_SHOTGUN_MURDER_SLAP; + else + return WEAPON_SHOTGUN_MURDER; + } return TRUE; } #endif @@ -267,15 +278,6 @@ float w_shotgun(float req) precache_sound("weapons/ric2.wav"); precache_sound("weapons/ric3.wav"); } - else if (req == WR_SUICIDEMESSAGE) - w_deathtypestring = _("%s is now thinking with portals"); - else if (req == WR_KILLMESSAGE) - { - if(w_deathtype & HITTYPE_SECONDARY) - w_deathtypestring = _("%2$s slapped %1$s around a bit with a large shotgun"); - else - w_deathtypestring = _("%s was gunned down with a shotgun by %s"); - } return TRUE; } #endif