Ejemplo n.º 1
0
        public void AITurretShapeData_OnDeploy(coAITurretShapeData thisobj, coAITurretShape turret)
            {
            for (int i = 0; i < thisobj["numWeaponMountPoints"].AsInt(); i++)
                turret.setImageLoaded(i, true);

            turret.playAudio(0, "TurretActivatedSound");
            }
Ejemplo n.º 2
0
 public void AiTurretShapeDataOnThrown(coAITurretShapeData thisobj, coAITurretShape turret)
     {
     turret.playAudio(0, "TurretThrown");
     }
Ejemplo n.º 3
0
 public void AITurretShapeData_OnNoTarget(coAITurretShapeData thisobj, coAITurretShape turret)
     {
     turret.setAllGunsFiring(false);
     turret.recenterTurret();
     turret.playAudio(0, "TargetLostSound");
     }
Ejemplo n.º 4
0
 public void AITurretShapeData_OnTarget(coAITurretShapeData thisobj, coAITurretShape turret)
     {
     turret.call("startTrackingTarget");
     turret.playAudio(0, "TargetAquiredSound");
     }
Ejemplo n.º 5
0
 public void AiTurretShapeDataOnScanning(coAITurretShapeData thisobj, coAITurretShape turret)
     {
     turret.call("startScanForTargets");
     turret.playAudio(0, "TurretScanningSound");
     }
Ejemplo n.º 6
0
        public void AiTurretShapeData(coAITurretShapeData thisobj, coAITurretShape turret, string lastState, string nameSpaceDepth)
            {
            turret.playAudio(0, "TurretDestroyed");
            turret.setAllGunsFiring(false);
            turret.resetTarget();
            turret.setTurretState("Destroyed", false);


            for (int i = 0; i < thisobj["numWeaponMountPoints"].AsInt(); i++)
                turret.setImageGenericTrigger(i, 0, true);

            int nsd = (nameSpaceDepth.AsInt());
            console.ParentExecute(thisobj, "onDestroyed", nsd, new string[] { thisobj, turret, lastState });
            }