X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_fireball.qc;h=0827d2402fc41df56d8ab42cdf575c2777a195d8;hp=d5c0b13f950fcc72542db32c4cd6a11c917ba122;hb=6ac6997bf385c44ef9294db2f375342c87b81982;hpb=122e8d0e383558cb4aa730b1d441b141c3d962ae diff --git a/qcsrc/server/w_fireball.qc b/qcsrc/server/w_fireball.qc index d5c0b13f9..0827d2402 100644 --- a/qcsrc/server/w_fireball.qc +++ b/qcsrc/server/w_fireball.qc @@ -351,41 +351,6 @@ float w_fireball(float req) return self.ammo_fuel >= cvar("g_balance_fireball_primary_ammo"); else if (req == WR_CHECKAMMO2) return self.ammo_fuel >= cvar("g_balance_fireball_secondary_ammo"); - else if (req == WR_SUICIDEMESSAGE) - { - if(w_deathtype & HITTYPE_SECONDARY) - w_deathtypestring = "forgot about some firemine"; - else - w_deathtypestring = "should have used a smaller gun"; - } - else if (req == WR_KILLMESSAGE) - { - if(w_deathtype & HITTYPE_SECONDARY) - { - if(w_deathtype & HITTYPE_HEADSHOT) - w_deathtypestring = "tried to catch #'s firemine"; - else - w_deathtypestring = "fatefully ignored #'s firemine"; - } - else - { - if(w_deathtype & HITTYPE_BOUNCE) - { - if(w_deathtype & HITTYPE_SPLASH) // BFG effect - { - w_deathtypestring = "could not hide from #'s fireball"; - } - else // laser - { - w_deathtypestring = "saw the pretty lights of #'s fireball"; - } - } - else if(w_deathtype & HITTYPE_SPLASH) - w_deathtypestring = "got too close to #'s fireball"; - else - w_deathtypestring = "tasted #'s fireball"; - } - } else if (req == WR_RESETPLAYER) { self.fireball_primarytime = time; @@ -413,9 +378,39 @@ float w_fireball(float req) } else if(req == WR_PRECACHE) { - precache_sound("weapons/fireball_impact.wav"); precache_sound("weapons/fireball_impact2.wav"); } + else if (req == WR_SUICIDEMESSAGE) + { + if(w_deathtype & HITTYPE_SECONDARY) + w_deathtypestring = "%s forgot about some firemine"; + else + w_deathtypestring = "%s should have used a smaller gun"; + } + else if (req == WR_KILLMESSAGE) + { + if(w_deathtype & HITTYPE_SECONDARY) + { + if(w_deathtype & HITTYPE_HEADSHOT) + w_deathtypestring = "%s tried to catch %s's firemine"; + else + w_deathtypestring = "%s fatefully ignored %s's firemine"; + } + else + { + if(w_deathtype & HITTYPE_BOUNCE) + { + if(w_deathtype & HITTYPE_SPLASH) // BFG effect + w_deathtypestring = "%s could not hide from %s's fireball"; + else // laser + w_deathtypestring = "%s saw the pretty lights of %s's fireball"; + } + else if(w_deathtype & HITTYPE_SPLASH) + w_deathtypestring = "%s got too close to %s's fireball"; + else + w_deathtypestring = "%s tasted %s's fireball"; + } + } return TRUE; } #endif