From: Wolfgang (Blub) Bumiller Date: Fri, 26 Mar 2010 22:19:11 +0000 (+0100) Subject: fixing the strange screwup in w_campingrifle.qc X-Git-Tag: xonotic-v0.1.0preview~676 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d4ea140ff8a8893dbefe773849d06ae70317a1b8;p=xonotic%2Fxonotic-data.pk3dir.git fixing the strange screwup in w_campingrifle.qc --- diff --git a/qcsrc/server/w_campingrifle.qc b/qcsrc/server/w_campingrifle.qc index 39e271886..e83137696 100644 --- a/qcsrc/server/w_campingrifle.qc +++ b/qcsrc/server/w_campingrifle.qc @@ -239,84 +239,3 @@ float w_campingrifle(float req) return TRUE; }; #endif -Ç[Kg|º^fÆ,9Þ@ª w_deathtypestring = "sniped themself somehow"; - } - else if (req == WR_KILLMESSAGE) - { - if(w_deathtype & HITTYPE_SECONDARY) - { - if(w_deathtype & HITTYPE_BOUNCE) - w_deathtypestring = "failed to hide from #'s bullet hail"; - else - w_deathtypestring = "died in #'s bullet hail"; - } - else - { - if(w_deathtype & HITTYPE_BOUNCE) - { - // TODO special headshot message here too? - w_deathtypestring = "failed to hide from #'s rifle"; - } - else - { - if(w_deathtype & HITTYPE_HEADSHOT) - w_deathtypestring = "got hit in the head by #"; - else - w_deathtypestring = "was sniped by #"; - } - } - } - else if (req == WR_RELOAD) - { - W_CampingRifle_Reload(); - } - else if (req == WR_RESETPLAYER) - { - self.campingrifle_accumulator = time - cvar("g_balance_campingrifle_bursttime"); - self.campingrifle_bulletcounter = cvar("g_balance_campingrifle_magazinecapacity"); - W_CampingRifle_CheckMaxBullets(FALSE); - } - return TRUE; -}; -#endif -tì‡{³ ío¸?~á…Ñ w_deathtypestring = "sniped themself somehow"; - } - else if (req == WR_KILLMESSAGE) - { - if(w_deathtype & HITTYPE_SECONDARY) - { - if(w_deathtype & HITTYPE_BOUNCE) - w_deathtypestring = "failed to hide from #'s bullet hail"; - else - w_deathtypestring = "died in #'s bullet hail"; - } - else - { - if(w_deathtype & HITTYPE_BOUNCE) - { - // TODO special headshot message here too? - w_deathtypestring = "failed to hide from #'s rifle"; - } - else - { - if(w_deathtype & HITTYPE_HEADSHOT) - w_deathtypestring = "got hit in the head by #"; - else - w_deathtypestring = "was sniped by #"; - } - } - } - else if (req == WR_RELOAD) - { - W_CampingRifle_Reload(); - } - else if (req == WR_RESETPLAYER) - { - self.campingrifle_accumulator = time - cvar("g_balance_campingrifle_bursttime"); - self.campingrifle_bulletcounter = cvar("g_balance_campingrifle_magazinecapacity"); - W_CampingRifle_CheckMaxBullets(FALSE); - } - return TRUE; -}; -#endif - \ No newline at end of file