]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_minstanex.qc
Fix 2 autocvars not correctly declared as "var", rename autocvar_g_onslaught_controlp...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_minstanex.qc
index aa85079052a933081b0b11e20b737c1919196628..a2d3b988734a6d75e9ff2c3fd3db737573821e30 100644 (file)
@@ -15,7 +15,9 @@ 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)
        {
@@ -32,8 +34,8 @@ void W_MinstaNex_Attack (void)
                }
                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
                }
        }