コード例 #1
0
 public void DeployableTurretWeaponOnPickup(coAITurretShapeData thisobj, coAITurretShape obj, string shape, string amount)
     {
     console.Call_Classname("Weapon", "onPickup", new string[] { thisobj, obj, shape, amount });
     }
コード例 #2
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");
            }
コード例 #3
0
 public void DeployableTurretWeaponOnUse(coAITurretShapeData thisobj, coAITurretShape obj)
     {
     console.Call_Classname("Weapon", "onUse", new string[] { thisobj, obj });
     }
コード例 #4
0
 public void AITurretShapeData_OnFiring(coAITurretShapeData thisobj, coAITurretShape turret)
     {
     turret.setAllGunsFiring(true);
     }
コード例 #5
0
 public void AiTurretShapeDataOnThrown(coAITurretShapeData thisobj, coAITurretShape turret)
     {
     turret.playAudio(0, "TurretThrown");
     }
コード例 #6
0
 public void AITurretShapeData_OnNoTarget(coAITurretShapeData thisobj, coAITurretShape turret)
     {
     turret.setAllGunsFiring(false);
     turret.recenterTurret();
     turret.playAudio(0, "TargetLostSound");
     }
コード例 #7
0
 public void AITurretShapeData_OnTarget(coAITurretShapeData thisobj, coAITurretShape turret)
     {
     turret.call("startTrackingTarget");
     turret.playAudio(0, "TargetAquiredSound");
     }
コード例 #8
0
 public void AiTurretShapeDataOnScanning(coAITurretShapeData thisobj, coAITurretShape turret)
     {
     turret.call("startScanForTargets");
     turret.playAudio(0, "TurretScanningSound");
     }
コード例 #9
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 });
            }
コード例 #10
0
 public void AiTurretShapeDataOnAdd(coAITurretShapeData thisobj, coAITurretShape obj, string nameSpaceDepth)
     {
     int nsd = (nameSpaceDepth.AsInt() + 1);
     console.ParentExecute(thisobj, "onAdd", nsd, new string[] { thisobj, obj });
     obj["mountable"] = false.AsString();
     }