From: Erik Schilling Date: Fri, 14 Jun 2013 18:11:44 +0000 (+0200) Subject: Do not leave a heal beam if pilot exits the bumblebee X-Git-Tag: xonotic-v0.8.0~388^2~1^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d676e3ff9904913f4cff1f2b4ebb8f7723a8ed5a;p=xonotic%2Fxonotic-data.pk3dir.git Do not leave a heal beam if pilot exits the bumblebee --- diff --git a/qcsrc/server/vehicles/bumblebee.qc b/qcsrc/server/vehicles/bumblebee.qc index a53068063..e0e35db9e 100644 --- a/qcsrc/server/vehicles/bumblebee.qc +++ b/qcsrc/server/vehicles/bumblebee.qc @@ -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;