]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
trigger_impulse: update csqc projectiles
authorRudolf Polzer <divverent@alientrap.org>
Sat, 16 Oct 2010 20:03:01 +0000 (22:03 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 16 Oct 2010 20:03:01 +0000 (22:03 +0200)
qcsrc/server/g_triggers.qc

index a1ee74d4300439589790a925384997779f6c7de0..1f50a1b818099fdceccc925e5d33a23976b52eea 100644 (file)
@@ -1262,7 +1262,8 @@ void trigger_impulse_touch1()
     if(!pushdeltatime) return;
 
     other.velocity = other.velocity + normalize(targ.origin - self.origin) * str * pushdeltatime;
-       other.flags &~= FL_ONGROUND;
+    other.flags &~= FL_ONGROUND;
+    UpdateCSQCProjectile(other);
 }
 
 // Directionless (accelerator/decelerator) mode
@@ -1302,6 +1303,7 @@ void trigger_impulse_touch2()
 
     // div0: ticrate independent, 1 = identity (not 20)
     other.velocity = other.velocity * pow(self.strength, pushdeltatime);
+    UpdateCSQCProjectile(other);
 }
 
 // Spherical (gravity/repulsor) mode
@@ -1352,6 +1354,7 @@ void trigger_impulse_touch3()
         str = self.strength;
 
     other.velocity = other.velocity + normalize(other.origin - self.origin) * str * pushdeltatime;
+    UpdateCSQCProjectile(other);
 }
 
 /*QUAKED spawnfunc_trigger_impulse (.5 .5 .5) ?