X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_porto.qc;h=65442b21b957caa3b667202c422d9add5497e82b;hp=1ab117885b02dde03a068e511da43c681403e366;hb=cbf4da25107e5480eedbf4d3d67d103dd448ae83;hpb=99cb391b8d83f0efdb2c9aeb7ccc50683dfd0b55 diff --git a/qcsrc/server/w_porto.qc b/qcsrc/server/w_porto.qc index 1ab117885..65442b21b 100644 --- a/qcsrc/server/w_porto.qc +++ b/qcsrc/server/w_porto.qc @@ -200,6 +200,8 @@ void W_Porto_Attack (void) gren.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP; CSQCProjectile(gren, TRUE, PROJECTILE_PORTO_RED, TRUE); + + other = gren; MUTATOR_CALLHOOK(EditProjectile); } void spawnfunc_weapon_porto (void) @@ -269,10 +271,6 @@ float w_porto(float req) } else if (req == WR_SETUP) weapon_setup(WEP_PORTO); - else if (req == WR_SUICIDEMESSAGE) - w_deathtypestring = "did the impossible"; - else if (req == WR_KILLMESSAGE) - w_deathtypestring = "felt # doing the impossible to him"; else if (req == WR_RESETPLAYER) { self.porto_current = world; @@ -291,6 +289,10 @@ float w_porto(float req) { // nothing to do } + else if (req == WR_SUICIDEMESSAGE) + w_deathtypestring = "%s did the impossible"; + else if (req == WR_KILLMESSAGE) + w_deathtypestring = "%s felt %s doing the impossible to him"; return TRUE; } #endif