Пример #1
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);
        }
Пример #2
0
 public virtual void onFiring(AITurretShape turret)
 {
     turret.setAllGunsFiring(true);
 }
Пример #3
0
 public virtual void onNoTarget(AITurretShape turret)
 {
     turret.setAllGunsFiring(false);
     turret.recenterTurret();
     turret.playAudio(0, "TargetLostSound");
 }
 public virtual void onFiring(AITurretShape turret)
 {
     turret.setAllGunsFiring(true);
 }
 public virtual void onNoTarget(AITurretShape turret)
 {
     turret.setAllGunsFiring(false);
     turret.recenterTurret();
     turret.playAudio(0, "TargetLostSound");
 }