Esempio n. 1
0
        public virtual void onDeploy(AITurretShape turret)
        {
            for (int i = 0; i < this["numWeaponMountPoints"].AsInt(); i++)
            {
                turret.setImageLoaded(i, true);
            }

            turret.playAudio(0, "TurretActivatedSound");
        }
Esempio n. 2
0
        public override void onDestroyed(ShapeBase obj, string lastState)
        {
            AITurretShape aits = obj._ID;

            aits.playAudio(0, "TurretDestroyed");
            aits.setAllGunsFiring(false);
            aits.resetTarget();
            aits.setTurretState("Destroyed", false);

            for (int i = 0; i < this["numWeaponMountPoints"].AsInt(); i++)
            {
                aits.setImageGenericTrigger(i, 0, true);
            }

            base.onDestroyed(obj, lastState);
        }
Esempio n. 3
0
 public virtual void onThrown(AITurretShape turret)
 {
     turret.playAudio(0, "TurretThrown");
 }
Esempio n. 4
0
 public virtual void onNoTarget(AITurretShape turret)
 {
     turret.setAllGunsFiring(false);
     turret.recenterTurret();
     turret.playAudio(0, "TargetLostSound");
 }
Esempio n. 5
0
 public virtual void onTarget(AITurretShape turret)
 {
     turret.startTrackingTarget();
     turret.playAudio(0, "TargetAquiredSound");
 }
Esempio n. 6
0
 public virtual void onScanning(AITurretShape turret)
 {
     turret.startScanForTargets();
     turret.playAudio(0, "TurretScanningSound");
 }
        public virtual void onDeploy(AITurretShape turret)
        {
            for (int i = 0; i < this["numWeaponMountPoints"].AsInt(); i++)
                turret.setImageLoaded(i, true);

            turret.playAudio(0, "TurretActivatedSound");
        }
 public virtual void onThrown(AITurretShape turret)
 {
     turret.playAudio(0, "TurretThrown");
 }
 public virtual void onNoTarget(AITurretShape turret)
 {
     turret.setAllGunsFiring(false);
     turret.recenterTurret();
     turret.playAudio(0, "TargetLostSound");
 }
 public virtual void onTarget(AITurretShape turret)
 {
     turret.startTrackingTarget();
     turret.playAudio(0, "TargetAquiredSound");
 }
 public virtual void onScanning(AITurretShape turret)
 {
     turret.startScanForTargets();
     turret.playAudio(0, "TurretScanningSound");
 }