]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove the teleporttime stuff, that was useless
authorSamual Lenks <samual@xonotic.org>
Wed, 19 Feb 2014 02:45:17 +0000 (21:45 -0500)
committerSamual Lenks <samual@xonotic.org>
Wed, 19 Feb 2014 02:45:17 +0000 (21:45 -0500)
qcsrc/client/particles.qc

index 92e13a31bf0b02324e94be93afb6d8a295f49024..07a88b9926e426c37c7ca97d5127495e696675c8 100644 (file)
@@ -381,13 +381,6 @@ void Net_ReadShockwaveParticle()
 .vector beam_dir;
 void Draw_ArcBeam()
 {
-       if(self.teleport_time)
-       if(time > self.teleport_time)
-       {
-               sound(self, CH_SHOTS_SINGLE, "misc/null.wav", VOL_BASE, ATTEN_NORM); // safeguard
-               self.teleport_time = 0;
-       }
-
        InterpolateOrigin_Do();
 
        // origin = beam starting origin
@@ -763,7 +756,7 @@ void Ent_ReadArcBeam(float isnew)
 
        InterpolateOrigin_Note();
 
-       if(isnew || !self.teleport_time)
+       if(isnew)
        {
                // calculate shot origin offset from gun alignment
                float gunalign = autocvar_cl_gunalign;
@@ -779,8 +772,6 @@ void Ent_ReadArcBeam(float isnew)
                sound(self, CH_SHOTS_SINGLE, "weapons/lgbeam_fly.wav", VOL_BASE, ATTEN_NORM);
        }
 
-       self.teleport_time = time + 10;
-
        #if 0
        printf(
                "Ent_ReadArcBeam(%d): sf = %d, start = %s, want = %s, dir = %s, type = %d\n",