]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_hlac.qc
wow, why was there two GiveFrags() calls? No wonder you got -2 points when suiciding...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_hlac.qc
index 4de9937977c5f1d6098302428491eb33b2ddbf96..88990de62821685de13d1ce24ca0decad035ac23 100644 (file)
@@ -207,13 +207,29 @@ float w_hlac(float req)
                return self.ammo_cells >= cvar("g_balance_hlac_primary_ammo");
        else if (req == WR_CHECKAMMO2)
                return self.ammo_cells >= cvar("g_balance_hlac_secondary_ammo");
+       return TRUE;
+};
+#endif
+#ifdef CSQC
+float w_hlac(float req)
+{
+       if(req == WR_IMPACTEFFECT)
+       {
+               vector org2;
+               org2 = w_org + w_backoff * 6;
+               pointparticles(particleeffectnum("laser_impact"), org2, w_backoff * 1000, 1);
+               if(!w_issilent)
+                       sound(self, CHAN_PROJECTILE, "weapons/laserimpact.wav", VOL_BASE, ATTN_NORM);
+       }
+       else if(req == WR_PRECACHE)
+       {
+               precache_sound("weapons/laserimpact.wav");
+       }
        else if (req == WR_SUICIDEMESSAGE)
                w_deathtypestring = "should have used a smaller gun";
        else if (req == WR_KILLMESSAGE)
                w_deathtypestring = "was cut down by";
        return TRUE;
-};
-#endif
-#ifdef CSQC
+}
 #endif
 #endif