]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Do not leave a heal beam if pilot exits the bumblebee
authorErik Schilling <ablu.erikschilling@googlemail.com>
Fri, 14 Jun 2013 18:11:44 +0000 (20:11 +0200)
committerErik Schilling <ablu.erikschilling@googlemail.com>
Fri, 14 Jun 2013 18:11:44 +0000 (20:11 +0200)
qcsrc/server/vehicles/bumblebee.qc

index a530680632592cb5158e8d430b938e57fe30beb8..e0e35db9ee2fb258f7d944e64cf8c953ca56b1a7 100644 (file)
@@ -685,6 +685,10 @@ void bumb_exit(float eject)
        
        spot = vehicles_findgoodexit(spot);
        
+       // Hide beam
+       if(self.gun3.enemy || !wasfreed(self.gun3.enemy)) {
+               self.gun3.enemy.effects |= EF_NODRAW;
+    }
 
        self.owner.velocity = 0.75 * self.vehicle.velocity + normalize(spot - self.vehicle.origin) * 200;
        self.owner.velocity_z += 10;