VoiceOver cag_48.wav 9800 5 VoiceOver cag_49.wav 9806 2 VoiceOver cag_50.wav 9808 7 VoiceOver cag_51.wav 9810 5 VoiceOver cag_52.wav 9811 5 VoiceOver cag_53.wav 9813 8 VoiceOver cag_54.wav 9816 4 VoiceOver cag_55.wav 9818 7 VoiceOver cag_56.wav 9820 2 VoiceOver cag_57.wav 9821 4 VoiceOver cag_58.wav 9823 14 VoiceOver cag_59.wav 9825 10 VoiceOver cag_60.wav 9828 8 VoiceOver cag_61.wav 9830 9 VoiceOver cag_62.wav 9832 12 VoiceOver cag_140.wav 9834 11 Player.PreloadSpecialWave planes/wildcat/1.ini Player.PreloadSpecialWave planes/sbd/1.ini Player.PreloadSpecialWave planes/devastator/1.ini /* ------------------- Ally fleet ------------------- */ Ship 0 Add ships/enterprise.ini 7.801171 0.217395 301.409943 0.000000 1 Ship 1 Add ships/fletcher.ini 330.557159 0.683243 693.222168 0.000000 1 Ship 2 Add ships/fletcher.ini 359.843445 0.683243 -100.320145 0.000000 1 Ship 3 Add ships/fletcher.ini -423.217926 0.683243 -233.950226 0.000000 1 Ship 4 Add ships/fletcher.ini -321.320587 0.683243 743.944946 0.000000 1 SetHomePoint 902.073242 150.999878 -2698.088379 /* ------------------- Squadron ------------------- */ Plane 0 Load planes/wildcat/1.ini 12.010556 25.623400 235.282913 6.303719 1 Plane 0 ToCarrier 12.010556 25.623400 235.282913 6.303719 Plane 0 SetOnGroundMode Player.ReloadSpecial planes/wildcat/1.ini 593.344604 280.123436 -1478.903809 0.000000 Player.SpecialWaveEnable Player.ResetWave Player.AddToWave 0 Player.SetToNextPlaneInWave Player.ToCarrier 12.010556 25.623400 235.282913 6.303719 Player.PlanesWasChanged Player.AllowSwitch 0 /* ------------------- Dive Bombers ------------------- */ Plane 1 Load planes/sbd/1.ini 12.010556 25.623400 235.282913 6.303719 1 Plane 1 SetOnGroundMode Plane 2 Load planes/sbd/1.ini 11.799421 25.623400 212.970840 6.303719 1 Plane 2 SetOnGroundMode Plane 3 Load planes/sbd/1.ini 11.611489 25.623400 191.782318 6.303719 1 Plane 3 SetOnGroundMode Plane 4 Load planes/sbd/1.ini 11.361967 25.623400 168.854767 6.303719 1 Plane 4 SetOnGroundMode Plane 5 Load planes/sbd/1.ini 10.459661 25.623400 145.536713 6.303719 1 Plane 5 SetOnGroundMode Plane 1 SetActive 0 Plane 2 SetActive 0 Plane 3 SetActive 0 Plane 4 SetActive 0 Plane 5 SetActive 0 Plane 1 MakeEmptyBullets Plane 2 MakeEmptyBullets Plane 3 MakeEmptyBullets Plane 4 MakeEmptyBullets Plane 5 MakeEmptyBullets Plane 1 SetActive 0 Plane 2 SetActive 0 Plane 3 SetActive 0 Plane 4 SetActive 0 Plane 5 SetActive 0 /* ------------------- Torpedo Bombers ------------------- */ Plane 21 Load planes/devastator/1.ini 12.010556 25.623400 235.282913 6.303719 1 Plane 21 SetOnGroundMode Plane 22 Load planes/devastator/1.ini 11.799421 25.623400 212.970840 6.303719 1 Plane 22 SetOnGroundMode Plane 23 Load planes/devastator/1.ini 11.611489 25.623400 191.782318 6.303719 1 Plane 23 SetOnGroundMode Plane 24 Load planes/devastator/1.ini 11.361967 25.623400 168.854767 6.303719 1 Plane 24 SetOnGroundMode Plane 25 Load planes/devastator/1.ini 10.459661 25.623400 145.536713 6.303719 1 Plane 25 SetOnGroundMode Plane 21 SetActive 0 Plane 22 SetActive 0 Plane 23 SetActive 0 Plane 24 SetActive 0 Plane 25 SetActive 0 Plane 21 MakeEmptyBullets Plane 22 MakeEmptyBullets Plane 23 MakeEmptyBullets Plane 24 MakeEmptyBullets Plane 25 MakeEmptyBullets Plane 21 ToCarrier 12.010556 25.623400 235.282913 6.303719 Plane 22 ToCarrier 11.799421 25.623400 212.970840 6.303719 Plane 23 ToCarrier 11.611489 25.623400 191.782318 6.303719 Plane 24 ToCarrier 11.361967 25.623400 168.854767 6.303719 Plane 25 ToCarrier 10.459661 25.623400 145.536713 6.303719 /* ------------------- Level Bombers ------------------- */ Plane 31 Load planes/devastator/1.ini 12.010556 25.623400 235.282913 6.303719 1 Plane 31 SetOnGroundMode Plane 32 Load planes/devastator/1.ini 11.799421 25.623400 212.970840 6.303719 1 Plane 32 SetOnGroundMode Plane 33 Load planes/devastator/1.ini 11.611489 25.623400 191.782318 6.303719 1 Plane 33 SetOnGroundMode Plane 34 Load planes/devastator/1.ini 11.361967 25.623400 168.854767 6.303719 1 Plane 34 SetOnGroundMode Plane 35 Load planes/devastator/1.ini 10.459661 25.623400 145.536713 6.303719 1 Plane 35 SetOnGroundMode Plane 31 SetActive 0 Plane 32 SetActive 0 Plane 33 SetActive 0 Plane 34 SetActive 0 Plane 35 SetActive 0 Plane 31 MakeEmptyBullets Plane 32 MakeEmptyBullets Plane 33 MakeEmptyBullets Plane 34 MakeEmptyBullets Plane 35 MakeEmptyBullets Plane 31 ToCarrier 12.010556 25.623400 235.282913 6.303719 Plane 32 ToCarrier 11.799421 25.623400 212.970840 6.303719 Plane 33 ToCarrier 11.611489 25.623400 191.782318 6.303719 Plane 34 ToCarrier 11.361967 25.623400 168.854767 6.303719 Plane 35 ToCarrier 10.459661 25.623400 145.536713 6.303719 Plane 31 SetActVariation 0 2 Plane 32 SetActVariation 0 2 Plane 33 SetActVariation 0 2 Plane 34 SetActVariation 0 2 Plane 35 SetActVariation 0 2 /* ------------------- Training Target 1 ------------------- */ Plane 10 Load planes/wildcat/1.ini 3702.343994 218.373688 1522.403564 10.995574 1 Plane 10 AddScoutPoint -6702.343994 218.373688 1522.403564 Plane 10 SetDogfightExperience 5 Plane 10 SetPointScoutMode 1 Plane 10 SetIgnorePlayerHit 1 Plane 10 SetDogfightMode Plane 11 Load planes/wildcat/1.ini 3939.542969 218.373688 1525.755615 10.995574 0 Plane 11 AddScoutPoint -6009.542969 218.373688 1525.755615 Plane 11 SetDogfightExperience 5 Plane 11 SetPointScoutMode 1 Plane 11 SetIgnorePlayerHit 1 Plane 11 SetDogfightMode Plane 10 SetPointScoutSpeedFactor 0.65 Plane 11 SetPointScoutSpeedFactor 0.65 Plane 10 SetActive 0 Plane 11 SetActive 0 /* ------------------- Training Target 2 ------------------- */ Plane 50 Load planes/sbd/1.ini 641.271606 440.881104 5128.106934 2.775680 1 Plane 50 SetDogfightExperience 2 Plane 50 SetBombingExperience 3 Plane 50 SetRecordMode aichi_dive_battleshipstatic Plane 50 SetScoutShip 1 5 6 Plane 50 SetActive 0 Plane 50 SetRadarSymbol -1 Ship 5 Add ships/mahan.ini 1535.931763 0.683243 2416.534424 2.790135 0 Ship 5 Life = 35000 ; /* ------------------- Training Target 3 ------------------- */ Ship 6 Add ships/mahan.ini -1289.204346 0.683243 2434.539551 3.885915 0 Ship 6 Life = 35000 ; DebriefingIndex 9841 Var DefineFloat TakedOffTime Var DefineFloat MGFailedTime Var DefineFloat MGCompletedTime Var DefineFloat TrySpawnAllBombs Var DefineFloat DroppedAllBombs Var DefineFloat SwitchedPlane Var DefineFloat ShipLifeReference Var DefineFloat HittedTargetBomb Var DefineFloat FinishedTargetBomb Var DefineFloat TorpedoHit Var DefineFloat TorpedoOnWay Var DefineFloat BombEmpty Var DefineFloat TargetBombFinished BeginScript if Time == 2 endif { MusicPlayActionSlow } /* ------------------- Initial ------------------- */ if Time == 2 endif { Message.Dialog 180 9800 0 6 } if Time == 6 endif { Objective.AddSpecial TakeOff 9801 0 } /* ------------------- Taked Off ------------------- */ if Player.OnGround == FALSE && Var TakedOffTime == 0 && Time > 4 endif { Var TakedOffTime = 1 ; } if Var TakedOffTime > 0 endif { Var TakedOffTime += 1 ; } if Var TakedOffTime == 2 endif { Objective.CompletedHide TakeOff } if Var TakedOffTime == 3 && GameControllModeSimulation == FALSE endif { Message.ControllHint 9802 0 } if Var TakedOffTime == 3 && GameControllModeSimulation == TRUE endif { Message.ControllHint 9803 0 Message.ControllHint 9804 4 } if Var TakedOffTime == 10 endif { Plane 10 SetActive 1 Plane 11 SetActive 1 Message.CutScene 180 9806 1 3 CutSceneRecordingPlaneNoRestorePlanes 6 game/us_campaign1/camera/training_c1.cam 11 0 } if Var TakedOffTime == 16 endif { Objective.AddSpecial Machineguns 9805 0 } /* ------------------- Not Destroyed by machineguns training target ------------------- */ if Plane 10 DistancePoint -6702.343994 218.373688 1522.403564 < 1050 && Var MGFailedTime == 0 && Var MGCompletedTime == 0 && Time > 10 endif { Var MGFailedTime = 1 ; } if Var MGFailedTime > 0 endif { Var MGFailedTime += 1 ; } if Var MGFailedTime == 2 endif { Objective.Failed Machineguns } if Var MGFailedTime == 5 endif { MissionFailed MissionLeave 4.0 } /* ------------------- Training Target Down ------------------- */ if Plane 11 Life <= 0 && Var MGCompletedTime == 0 && Var MGFailedTime == 0 endif { Var MGCompletedTime = 1 ; } if Var MGCompletedTime > 0 endif { Var MGCompletedTime += 1 ; } if Var MGCompletedTime == 2 endif { Objective.CompletedHide Machineguns Plane 50 SetActive 1 Ship 5 SetActive 1 } if Var MGCompletedTime == 10 endif { Plane 10 SetActive 0 Plane 1 SetActive 1 Plane 2 SetActive 1 Plane 3 SetActive 1 Plane 4 SetActive 1 Plane 5 SetActive 1 Player.ReloadSpecial planes/sbd/1.ini 593.344604 280.123436 -1478.903809 0.000000 Player.ResetWave Player.AddToWave 1 Player.AddToWave 2 Player.AddToWave 3 Player.AddToWave 4 Player.AddToWave 5 Plane 2 ToCarrier 11.799421 25.623400 212.970840 6.303719 Plane 3 ToCarrier 11.611489 25.623400 191.782318 6.303719 Plane 4 ToCarrier 11.361967 25.623400 168.854767 6.303719 Plane 5 ToCarrier 10.459661 25.623400 145.536713 6.303719 Player.SetToNextPlaneInWave Player.ToCarrier 12.010556 25.623400 235.282913 6.303719 Player.PlanesWasChanged CutSceneRecordingPositionNoRestorePlanes 30 game/us_campaign1/camera/training_c2.cam 0 } if Var MGCompletedTime == 32 endif { Message.CutScene 180 9808 0 4 Message.CutScene 180 9809 4 3 } if Var MGCompletedTime == 46 endif { Message.Dialog 180 9810 0 6 } if Var MGCompletedTime == 40 endif { Plane 50 SetActive 0 Ship 5 MultiplyLife 3.0 } if Var MGCompletedTime == 43 endif { Ship 5 SetRadarSymbol 1 Objective.AddSpecial DiveBomb 9807 0 } /* ------------------- Ship Hitted ------------------- */ if Ship 5 CausedDamage > 10 && Var MGCompletedTime > 50 && Var TrySpawnAllBombs == 0 endif { Var TrySpawnAllBombs = 1 ; } if Var TrySpawnAllBombs > 0 endif { Var TrySpawnAllBombs += 1 ; } if Var TrySpawnAllBombs == 2 endif { Objective.CompletedHide DiveBomb Message.Dialog 180 9811 0 6 } if Var TrySpawnAllBombs == 10 endif { Objective.AddSpecial SwitchWeapon 9812 0 } /* ------------------- Dropped All Bombs ------------------- */ if Player.EmptyWeapons == TRUE && Var TrySpawnAllBombs > 12 && Var DroppedAllBombs == 0 endif { Var DroppedAllBombs = 1 ; } if Var DroppedAllBombs > 0 endif { Var DroppedAllBombs += 1 ; } if Var DroppedAllBombs == 2 endif { Objective.CompletedHide SwitchWeapon Message.Dialog 180 9813 0 6 Message.Dialog 180 9814 6 3 } if Var DroppedAllBombs == 12 endif { Player.AllowSwitch 1 Objective.AddSpecial SwitchPlane 9815 0 } /* ------------------- Switched Plane ------------------- */ if Player.EmptyWeapons == FALSE && Var DroppedAllBombs > 15 && Var SwitchedPlane == 0 endif { Var SwitchedPlane = 1 ; } if Var SwitchedPlane > 0 endif { Var SwitchedPlane += 1 ; } if Var SwitchedPlane == 2 endif { Var ShipLifeReference = Ship 5 Life ; Objective.CompletedHide SwitchPlane Message.Dialog 180 9816 0 5 } if Var SwitchedPlane == 8 endif { Player.AllowSwitch 1 Objective.Add FinishTarget 9817 0 } /* ------------------- Bomb Hitted Target ------------------- */ if Ship 5 Life < Var ShipLifeReference && Var SwitchedPlane > 13 && Var HittedTargetBomb == 0 endif { Var HittedTargetBomb = 1 ; } if Var HittedTargetBomb > 0 endif { Var HittedTargetBomb += 1 ; } if Var HittedTargetBomb == 2 endif { Message.Dialog 180 9818 0 8 } if Var HittedTargetBomb == 10 endif { Message.ControllHint 9819 0 } /* ------------------- Target Finished ------------------- */ if Ship 5 Life <= 0 && Var HittedTargetBomb > 13 && Var FinishedTargetBomb == 0 endif { Var FinishedTargetBomb = 1 ; } if Var FinishedTargetBomb > 0 endif { Var FinishedTargetBomb += 1 ; } if Var FinishedTargetBomb == 2 endif { Message.Dialog 180 9820 0 3 } if Var FinishedTargetBomb == 5 endif { Objective.Completed FinishTarget } if Var FinishedTargetBomb == 8 endif { Plane 1 SetActive 0 Plane 2 SetActive 0 Plane 3 SetActive 0 Plane 4 SetActive 0 Plane 5 SetActive 0 Plane 21 SetActive 1 Plane 22 SetActive 1 Plane 23 SetActive 1 Plane 24 SetActive 1 Plane 25 SetActive 1 /* -------------- */ Player.ReloadSpecial planes/devastator/1.ini 593.344604 280.123436 -1478.903809 0.000000 Player.ResetWave Player.AddToWave 21 Player.AddToWave 22 Player.AddToWave 23 Player.AddToWave 24 Player.AddToWave 25 Plane 22 ToCarrier 11.799421 25.623400 212.970840 6.303719 Plane 23 ToCarrier 11.611489 25.623400 191.782318 6.303719 Plane 24 ToCarrier 11.361967 25.623400 168.854767 6.303719 Plane 25 ToCarrier 10.459661 25.623400 145.536713 6.303719 Player.SetToNextPlaneInWave Player.ToCarrier 12.010556 25.623400 235.282913 6.303719 Player.PlanesWasChanged /* -------------- */ CutSceneRecordingPositionNoRestorePlanes 6 game/us_campaign1/camera/training_c3.cam 0 Message.CutScene 180 9821 0 5 } if Var FinishedTargetBomb == 14 endif { Objective.Add TorpedoTarget 9822 0 Ship 6 SetRadarSymbol 1 Ship 6 MultiplyLife 2.3 } if Var FinishedTargetBomb == 20 endif { Message.Dialog 180 9823 0 6 Message.Dialog 180 9824 6 8 } /* ------------------- Player spawned torpedo message and then not hit recommendation ------------------- */ if Var FinishedTargetBomb > 31 && Player.EmptyWeapons == FALSE && Var TorpedoHit == 0 endif { Var TorpedoOnWay = 0 ; } if Var FinishedTargetBomb > 31 && Player.EmptyWeapons == TRUE && Var TorpedoOnWay == 0 && Var TorpedoHit == 0 endif { Var TorpedoOnWay = 1 ; } if Var TorpedoOnWay > 0 && Var TorpedoHit == 0 endif { Var TorpedoOnWay += 1 ; } if Var TorpedoOnWay == 3 endif { Message.ControllHint 9819 0 } if Var TorpedoOnWay == 30 endif { Message.Dialog 180 9825 0 6 Message.Dialog 180 9826 6 4 } if Var TorpedoOnWay == 42 endif { Message.ControllHint 9827 0 } /* ------------------- Player hit the target ------------------- */ if Ship 6 CausedDamage > 2000 && Var TorpedoHit == 0 endif { Var TorpedoHit = 1 ; } if Var TorpedoHit > 0 endif { Var TorpedoHit += 1 ; } if Var TorpedoHit == 2 endif { Objective.Completed TorpedoTarget } if Var TorpedoHit == 5 endif { Message.Dialog 180 9828 0 9 } if Var TorpedoHit == 15 endif { Plane 21 SetActive 0 Plane 22 SetActive 0 Plane 23 SetActive 0 Plane 24 SetActive 0 Plane 25 SetActive 0 Plane 31 SetActive 1 Plane 32 SetActive 1 Plane 33 SetActive 1 Plane 34 SetActive 1 Plane 35 SetActive 1 /* -------------- */ Player.ResetWave Player.AddToWave 31 Player.AddToWave 32 Player.AddToWave 33 Player.AddToWave 34 Player.AddToWave 35 Plane 32 ToCarrier 11.799421 25.623400 212.970840 6.303719 Plane 33 ToCarrier 11.611489 25.623400 191.782318 6.303719 Plane 34 ToCarrier 11.361967 25.623400 168.854767 6.303719 Plane 35 ToCarrier 10.459661 25.623400 145.536713 6.303719 Player.SetToNextPlaneInWave Player.ToCarrier 12.010556 25.623400 235.282913 6.303719 Player.PlanesWasChanged /* -------------- */ Objective.AddSpecial LevelBombTarget 9829 0 } if Var TorpedoHit == 22 endif { Message.Dialog 180 9830 0 4 Message.Dialog 180 9831 4 5 } /* ------------------- Empty Bombs ------------------- */ if Var TorpedoHit > 32 && Player.EmptyWeapons == TRUE && Var BombEmpty == 0 && Var TargetBombFinished == 0 endif { Var BombEmpty = 1 ; } if Var BombEmpty > 0 && Var TargetBombFinished == 0 endif { Var BombEmpty += 1 ; } if Var BombEmpty == 15 endif { Message.Dialog 180 9832 0 7 Message.Dialog 180 9833 7 6 } if Var BombEmpty == 28 endif { Message.ControllHint 9827 0 } /* ------------------- Second Target Finished ------------------- */ if Ship 6 Life <= 0 && Var TorpedoHit > 32 && Var TargetBombFinished == 0 endif { Var TargetBombFinished = 1 ; } if Var TargetBombFinished > 0 endif { Var TargetBombFinished += 1 ; } if Var TargetBombFinished == 2 endif { Objective.CompletedHide LevelBombTarget Message.Dialog 180 9834 0 6 Message.Dialog 180 9835 6 6 } if Var TargetBombFinished == 14 endif { DebriefingIndex 9840 MissionCompleted MissionLeave 4.0 } if Var TargetBombFinished == 16 endif { Ship 0 SetRadarSymbol 0 AskForLandOnCarrier } EndScript