X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_minstanex.qc;h=dae7003be5add2ccbd1ae6b3d43ea37f1a918c00;hb=54f4843b201d2b22942457df5b50ddc0c48ed8d2;hp=1f1137e4b845b151321d1501c5dbdca9e325b2fd;hpb=55d3273e61152efe4244561d71c313512c20c20d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/w_minstanex.qc b/qcsrc/server/w_minstanex.qc index 1f1137e4b..dae7003be 100644 --- a/qcsrc/server/w_minstanex.qc +++ b/qcsrc/server/w_minstanex.qc @@ -14,10 +14,7 @@ void W_MinstaNex_Attack (void) yoda = 0; damage_goodhits = 0; - headshot = 0; - damage_headshotbonus = -1; // no extra damage, just count FireRailgunBullet (w_shotorg, w_shotorg + w_shotdir * MAX_SHOT_DISTANCE, 10000, 800, 0, 0, 0, 0, WEP_MINSTANEX); - damage_headshotbonus = 0; if(g_minstagib) { @@ -28,14 +25,10 @@ void W_MinstaNex_Attack (void) { if(yoda && flying) AnnounceTo(self, "yoda"); - if(headshot) - { - AnnounceTo(self, "headshot"); - } if(damage_goodhits && self.minstanex_lasthit) { - if(AnnounceTo(self, "impressive")) - damage_goodhits = 0; // only every second time + AnnounceTo(self, "impressive"); + damage_goodhits = 0; // only every second time } } @@ -50,25 +43,25 @@ void W_MinstaNex_Attack (void) { switch(self.team) { - case COLOR_TEAM1: // Red + case FL_TEAM_1: // Red if(damage_goodhits) WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3RED_HIT"), w_shotorg, v); else WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3RED"), w_shotorg, v); break; - case COLOR_TEAM2: // Blue + case FL_TEAM_2: // Blue if(damage_goodhits) WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3BLUE_HIT"), w_shotorg, v); else WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3BLUE"), w_shotorg, v); break; - case COLOR_TEAM3: // Yellow + case FL_TEAM_3: // Yellow if(damage_goodhits) WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3YELLOW_HIT"), w_shotorg, v); else WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3YELLOW"), w_shotorg, v); break; - case COLOR_TEAM4: // Pink + case FL_TEAM_4: // Pink if(damage_goodhits) WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3PINK_HIT"), w_shotorg, v); else @@ -278,6 +271,14 @@ float w_minstanex(float req) W_Reload(used_ammo, autocvar_g_balance_minstanex_reload_ammo, autocvar_g_balance_minstanex_reload_time, "weapons/reload.wav"); } + else if (req == WR_SUICIDEMESSAGE) + { + return WEAPON_THINKING_WITH_PORTALS; + } + else if (req == WR_KILLMESSAGE) + { + return WEAPON_MINSTANEX_MURDER; + } return TRUE; } #endif