]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/vehicles/spiderbot.qc
Send effects to client, allows mismatching effectinfo.txt
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / vehicles / spiderbot.qc
index aa4c927be41c29ed356f4d9b4b5c219ef5e4d934..ce40a2505c3dfc7b6d0540a1c61bc7f7eec8d7cb 100644 (file)
@@ -507,7 +507,7 @@ float spiderbot_frame()
 
             sound (gun, CH_WEAPON_A, "weapons/uzi_fire.wav", VOL_BASE, ATTEN_NORM);
             //trailparticles(self, particleeffectnum("spiderbot_minigun_trail"), v, trace_endpos);
-            pointparticles(particleeffectnum("spiderbot_minigun_muzzleflash"), v, v_forward * 2500, 1);
+            Send_Effect("spiderbot_minigun_muzzleflash", v, v_forward * 2500, 1);
 
             self = spider;
 
@@ -654,7 +654,7 @@ void spiderbot_headfade()
         if(self.alpha > 0.1)
         {
             sound (self, CH_SHOTS, "weapons/rocket_impact.wav", VOL_BASE, ATTEN_NORM);
-            pointparticles(particleeffectnum("explosion_big"), self.origin + '0 0 100', '0 0 0', 1);
+            Send_Effect("explosion_big", self.origin + '0 0 100', '0 0 0', 1);
         }
         remove(self);
     }
@@ -667,7 +667,7 @@ void spiderbot_blowup()
         if(random() < 0.1)
         {
             sound (self, CH_SHOTS, "weapons/rocket_impact.wav", VOL_BASE, ATTEN_NORM);
-            pointparticles(particleeffectnum("explosion_small"), randomvec() * 80 + (self.origin + '0 0 100'), '0 0 0', 1);
+            Send_Effect("explosion_small", randomvec() * 80 + (self.origin + '0 0 100'), '0 0 0', 1);
         }
         self.nextthink = time + 0.1;
         return;