SetHomePoint 2111.523438 384.555145 -1822.878540 /* ------------------- Vehicles ------------------- */ Vehicle 0 Add vehicles/aaa.ini 3049.457031 9.492508 723.355042 0.000000 0 Vehicle 0 SetPlaneScout 1 -1 0 Vehicle 0 SetActive 1 Vehicle 1 Add vehicles/aaa.ini 3837.440674 7.884338 1218.156494 0.000000 0 Vehicle 1 SetPlaneScout 1 -1 0 Vehicle 1 SetActive 1 Vehicle 2 Add vehicles/aaa.ini 884.571045 6.415634 2275.940430 0.000000 0 Vehicle 2 SetPlaneScout 1 -1 0 Vehicle 2 SetActive 1 Vehicle 3 Add vehicles/aaa.ini -642.271362 7.324539 1065.173218 0.000000 0 Vehicle 3 SetPlaneScout 1 -1 0 Vehicle 3 SetActive 1 Vehicle 4 Add vehicles/aaa.ini -2848.500977 8.018066 -2206.953369 0.000000 0 Vehicle 4 SetPlaneScout 1 -1 0 Vehicle 4 SetActive 1 Vehicle 5 Add vehicles/aaa.ini -3989.100586 8.449356 -5031.048828 0.000000 0 Vehicle 5 SetPlaneScout 1 -1 0 Vehicle 5 SetActive 1 Ship 2 Add ships/p04/p04.ini 1860.0 0.0 240.0 0.0 0 Ship 2 SetActive 1 Ship 3 Add ships/p04/p04.ini 4400.0 0.0 -380.0 0.0 0 Ship 3 SetActive 1 Ship 4 Add ships/p04/p04.ini 4500.0 0.0 -1530.0 0.0 0 Ship 4 SetActive 1 /* ------------------- Ships ------------------- */ Ship 0 Add ships/Enterprise_CVN-65/enterprise.ini 1000.0 0.000000 -5000.0 0.0 0 Ship 0 SetActive 1 Ship 1 Add ships/porpoise_cutscenes.ini 6050.0 0.000000 -3000.0 0.0 0 Ship 1 SetActive 1 /* ------------------- Enemy planes ------------------- */ /* ------------------- Squadron 1 ------------------- */ Plane 0 Load planes/uh_1/2.ini 400.0 200.0 -5500.0 0.0 1 Plane 0 SetActive 1 Player.ReloadSpecial planes/ch53/2.ini 0.0 0.0 0.0 0.0 Player.SpecialWaveEnable Player.ResetWave Player.AddToWave 0 Player.SetToNextPlaneInWave /* --- Player.ToCarrier 1010.0 500.000000 -5000.0 0.0 -- */ Player.PlanesWasChanged Player.AllowSwitch 1 Player.CannotRetireEnable Var DefineFloat Timer Var DefineFloat MissionState Var DefineBool skipped1 Var DefineBool skipped2 Var DefineBool obj1_rescued Var DefineBool obj1_showedGreenArea Var DefineBool obj2_showedRedArea Var DefineBool obj2_showedGreenArea DebriefingIndex 30005 /* ---------------------------------------------------------------------------------------------- Chars Cutscene 1 ------------------- */ Plane 1 Load planes/ch53/2.ini 1010.0 500.000000 -5000.0 0.0 1 Plane 1 SetPointScoutMode 1 Plane 1 StopMovmentY 1 Plane 1 SetActive 0 /* ---------------------------------------------------------------------------------------------- chars Cutscene 2 ------------------- */ Plane 2 Load planes/ch53/2.ini 1010.0 500.000000 -5000.0 0.0 1 Plane 2 SetPointScoutMode 1 Plane 2 StopMovmentY 1 Plane 2 SetActive 0 Plane 3 Load planes/ch53/2.ini 1010.0 500.000000 -5000.0 0.0 1 Plane 3 AddScoutPoint 1210.0 500.000000 -5000.0 Plane 3 SetPointScoutMode 1 Plane 3 StopMovmentY 1 Plane 3 SetActive 0 BeginScript /* ---------------------------------------------------------------------------------------------- Cutscene 1 ------------------- */ if Time == 2 endif { SetWeather 0 InitializeAnimalsWithCasteaways 400.0 0.000000 -5500.0 1 CutSceneRecordingPosition 5 game/campaign/us/mission24/m24_c01_1.cam 0 } if Time == 7 endif { DestroyCasteaways Plane 1 SetActive 1 Plane 1 ToGround 1010.0 500.000000 -5000.0 0.0 Plane 1 SetOnGroundMode Plane 1 SetScrewRotationSpeed 1 CutSceneRecordingPlane 7 game/campaign/us/mission24/m24_c01_2.cam 1 0 } if Time == 4 endif { Message.CutScene 180 992411 0 7 } if Time == 14 endif { Plane 1 SetActive 0 } /* ---------------------------------------------------------------------------------------------- Cutscene 2 ------------------- */ if Time == 16 endif { SetWeather 1 CutSceneRecordingPosition 5 game/campaign/us/mission24/m24_c02_1.cam 0 } if Time == 21 endif { Plane 2 SetActive 1 Plane 2 ToGround 1010.0 500.000000 -5000.0 0.0 Plane 2 SetOnGroundMode Plane 2 SetScrewRotationSpeed 1 CutSceneRecordingPosition 5 game/campaign/us/mission24/m24_c02_2.cam 0 } if Time == 23 endif { Plane 2 SetActive 0 Plane 3 SetActive 1 Plane 3 ToGround 1010.0 500.000000 -5000.0 Plane 3 SetScrewRotationSpeed 1 } if Time == 20 endif { Message.CutScene 180 992421 0 7 } if Time == 26 endif { Plane 3 SetActive 0 } /* ------------------------------------------------------------------------------ BEGIN - OPERATION THUNDERHEAD --------------------------------------------------------------------------------- */ if Time == 101 endif { HideDropingZone HideZone HideBombingArea HideGreenArea MusicPlayActionSlow Var skipped1 = FALSE ; Var skipped2 = FALSE ; Var obj1_rescued = FALSE ; Var obj1_showedGreenArea = FALSE ; Var obj2_showedRedArea = FALSE ; Var obj2_showedGreenArea = FALSE ; Var Timer = 0 ; InitializeAnimals 1000.0 0.0 -5000.0 InitializeAnimals 6000.0 0.0 -3000.0 InitializeAnimals -200.0 0.0 -2000.0 } /* ------------------- Objective 1 - Locate & rescue SEALs. ------------------- */ if Time == 103 endif { Var MissionState = 1 ; Message.DialogTime 180 30001 0 6 Objective.Add Objective1 30000 0 InitializeAnimalsWithCasteaways 2500.0 0.000000 -1000.0 1 } if Objective.IsCompleted Objective1 == TRUE && Var skipped1 == FALSE && Var MissionState == 1 endif { HideZone HideGreenArea DestroyAnimals Var skipped1 = TRUE ; Objective.Completed Objective1 Var MissionState = 2 ; InitializeAnimals 1000.0 0.0 -5000.0 InitializeAnimals 6000.0 0.0 -3000.0 InitializeAnimals -200.0 0.0 -2000.0 } if Var MissionState == 1 && Player.DistancePoint 2500.0 0.000000 -1000.0 < 200 endif { HideZone } if Var MissionState == 1 && Player.DistancePoint 2500.0 0.000000 -1000.0 < 50 && Var obj1_showedGreenArea == FALSE && Var obj1_rescued == FALSE endif { ShowGreenArea 2500.0 0.000000 -1000.0 1.3 SetGreenAreaScaleY 2.0 Var obj1_showedGreenArea = TRUE ; } if Var MissionState == 1 && Player.DistancePoint 2500.0 0.000000 -1000.0 > 200 endif { Player.ResetFiredWeaponCheck } if Var MissionState == 1 && Player.DistancePoint 2500.0 0.000000 -1000.0 < 200 && Var obj1_rescued == FALSE && Player.PressedPrimaryFire == TRUE endif { Var obj1_rescued = TRUE ; HideGreenArea DestroyAnimals InitializeAnimals 1000.0 0.0 -5000.0 InitializeAnimals 6000.0 0.0 -3000.0 InitializeAnimals -200.0 0.0 -2000.0 } if Var MissionState == 1 && Player.DistancePoint 2500.0 0.000000 -1000.0 < 200 && Var obj1_rescued == FALSE && Player.PressedSecondaryFire == TRUE endif { Var obj1_rescued = TRUE ; HideGreenArea DestroyAnimals InitializeAnimals 1000.0 0.0 -5000.0 InitializeAnimals 6000.0 0.0 -3000.0 InitializeAnimals -200.0 0.0 -2000.0 } if Var MissionState == 1 && Var obj1_rescued == TRUE endif { Var Timer += 1 ; } if Var MissionState == 1 && Var Timer == 3 endif { Message.Dialog 180 30006 0 6 ShowDropingZone 1000.0 28.0 -5000.0 } if Var MissionState == 1 && Var obj1_rescued == TRUE && Player.DistancePoint 1000.0 0.000000 -5000.0 < 500 && Player.OnGround == TRUE endif { HideDropingZone Objective.Completed Objective1 Var MissionState = 2 ; Var Timer = 0 ; } /* ------------------- Objective 2 - Deliver SEALs back to submarine location. ------------------- */ if Var MissionState == 2 endif { Var Timer += 1 ; } if Var MissionState == 2 && Var Timer == 2 endif { CheckPoint } if Var MissionState == 2 && Var Timer == 10 endif { Message.DialogTime 180 30003 0 6 Objective.Add Objective2 30002 0 ShowZone 6000.0 0.000000 -3000.0 1.5 } if Objective.IsCompleted Objective2 == TRUE && Var skipped2 == FALSE && Var MissionState == 2 endif { Var skipped2 = TRUE ; Objective.Completed Objective2 Var MissionState = 3 ; Var Timer = 0 ; } if Var MissionState == 2 && Player.DistancePoint 6000.0 0.000000 -3000.0 < 150 && Var obj2_showedRedArea == FALSE endif { Var obj2_showedRedArea = TRUE ; Var obj2_showedGreenArea = FALSE ; ShowBombingArea 6000.0 0.000000 -3000.0 1.0 SetBombingAreaScaleY 2.0 HideGreenArea } if Var MissionState == 2 && Player.DistancePoint 6000.0 0.000000 -3000.0 < 30 && Player.Altitude < 5 && Var obj2_showedGreenArea == FALSE endif { Var obj2_showedGreenArea = TRUE ; Var obj2_showedRedArea = FALSE ; HideBombingArea ShowGreenArea 6000.0 0.000000 -3000.0 1.0 SetGreenAreaScaleY 2.0 } if Var MissionState == 2 && Player.DistancePoint 6000.0 0.000000 -3000.0 < 30 && Player.NumRemainingBombs <= 0 endif { Objective.Completed Objective2 Var MissionState = 3 ; Var Timer = 0 ; } if Var MissionState == 2 && Player.DistancePoint 6000.0 0.000000 -3000.0 > 30 && Player.FiredSecondaryWeapon == TRUE endif { MissionFailed Var MissionState = 100 ; MissionLeave 3 } /* ------------------- End mission ------------------- */ if Var MissionState == 3 endif { Var Timer += 1 ; } if Var MissionState == 3 && Var Timer == 10 endif { MissionCompleted MissionLeave 5 DebriefingIndex 30004 } /* ------------------------------------------------------------------------------ END --------------------------------------------------------------------------------- */ EndScript