//======================================================================================================================== // IsaakPostM00.u2s // AI script for Isaak between Tutorial and Sanctuary //======================================================================================================================== :ScriptStart //debugmode 11 inert 1 setmovespeed 0.25 call TriggeredActions //gotolabel GoToLoadout gotolabel WaitingForInspection //======================================================================================================================== // Inspection //======================================================================================================================== :WaitingForInspection handlergroup ontrigger dlgIsaakPostM00Inspection gotolabel Inspection ontrigger dlgIsaakPostM00NoInspection gotolabel NoInspection ontrigger DialogAbortEnd gotolabel NoInspection handlergroupend call DisableAllTopics dialogenable IsaakPostM00WelcomeBack // ### enable topic ### :WaitingForInspectionLoop testactorinrange Player 192 gotolabel GreetPlayer sleep 0.5 gotolabel WaitingForInspectionLoop :GreetPlayer //gotoactor Player 80 dialoginitiate Player IsaakPostM00WelcomeBack sleep :NoInspection sendevent PlayercabinDoorTrigger 0 call DisableAllTopics dialogenable IsaakPostM00NotNow // ### enable topic ### gotoactor PathNode50 gotolabel GoToRepair // ### :Inspection sleep 0.2 call InspectionActions //ontimer 1 8 0 gotolabel InspectionAborted :InspectionLoop testactorinrange Player 192 gotolabel InspectionDialog sleep 0.5 gotolabel InspectionLoop :InspectionDialog cleartimers call DisableAllTopicsUnsafe dialogenable IsaakPostM00Inspection // ### enable topic ### dialoginitiate Player IsaakPostM00Inspection // *** Your quarters haven't been disturbed. We've put Ne'Ban in the next cabin down... *** sleep 0.2 // ### :InspectionStage01 call DisableAllTopicsUnsafe gotoactor PathNode113 gotoactor PathNode59 directionalpatrol 1 gotoactor PatrolPoint37 directionalpatrol 0 //ontimer 1 8 0 gotolabel InspectionAborted :InspectionStage01Loop testactorinrange Player 192 gotolabel InspectionStage01Dialog sleep 0.5 gotolabel InspectionStage01Loop :InspectionStage01Dialog cleartimers call DisableAllTopicsUnsafe dialogenable IsaakPostM00Inspection1 // ### enable topic ### dialoginitiate Player IsaakPostM00Inspection1 // *** This is Aida's cabin. *** sleep 0.2 :InspectionStage01Countdown sendevent AidaCabinDoorTrigger 0 ontimer 1 6 0 gotolabel InspectionStage02 // give player 6 seconds to enter player cabin ontrigger PlayerPostM00InAidaCabin gotolabel InspectionStage01WaitForPlayer 1 // level trigger in cabin sleep :InspectionStage01WaitForPlayer cleartimers :InspectionStage01WaitForPlayerLoop testactorinrange Player 192 gotolabel InspectionStage02 sleep 0.5 gotolabel InspectionStage01WaitForPlayerLoop // ### :InspectionStage02 ontrigger PlayerPostM00InAidaCabin // make sure this doesn't fire off if player sat out previous timer and THEN goes into cabin call DisableAllTopicsUnsafe dialogenable IsaakPostM00Inspection1Continue // ### enable topic ### dialoginitiate Player IsaakPostM00Inspection1Continue sleep 0.2 call DisableAllTopicsUnsafe call DisableAllTopicsUnsafe gotoactor PathNode135 dialogenable IsaakPostM00Inspection22 // ### enable topic ### dialoginitiate Player IsaakPostM00Inspection22 directionalpatrol 1 gotoactor PathNode19 directionalpatrol 0 //ontimer 1 8 0 gotolabel InspectionAborted :InspectionStage02Loop testactorinrange Player 192 gotolabel InspectionStage02Dialog sleep 0.5 gotolabel InspectionStage02Loop :InspectionStage02Dialog cleartimers call DisableAllTopicsUnsafe dialogenable IsaakPostM00Inspection2 // ### enable topic ## dialoginitiate Player IsaakPostM00Inspection2 // *** This is Isaak's cabin. *** sleep 0.2 :InspectionStage02Countdown sendevent IsaakCabinDoorTrigger 0 // make sure this doesn't fire off if player sat out previous timer and THEN goes into cabin ontimer 1 6 0 gotolabel InspectionStage03 // give player 6 seconds to enter player cabin ontrigger PlayerPostM00InIsaakCabin gotolabel InspectionStage02WaitForPlayer 1 // level trigger in cabin sleep :InspectionStage02WaitForPlayer cleartimers :InspectionStage02WaitForPlayerLoop testactorinrange Player 192 gotolabel InspectionStage03 sleep 0.5 gotolabel InspectionStage02WaitForPlayerLoop // ### :InspectionStage03 ontrigger PlayerPostM00InIsaakCabin call DisableAllTopicsUnsafe dialogenable IsaakPostM00Inspection2Continue // ### enable topic ### dialoginitiate Player IsaakPostM00Inspection2Continue sleep 0.2 call DisableAllTopicsUnsafe gotoactor PathNode134 dialogenable IsaakPostM00Inspection2Continue23 // ### enable topic ### dialoginitiate Player IsaakPostM00Inspection2Continue23 gotoactor PathNode30 turntoactor Player //ontimer 1 8 0 gotolabel InspectionAborted :InspectionStage03Loop testactorinrange Player 192 gotolabel InspectionStage03Dialog sleep 0.5 gotolabel InspectionStage03Loop :InspectionStage03Dialog cleartimers ontrigger DialogAbortEnd // !FIX MW: why doesn't DisableAllTopics take care of this? call DisableAllTopics dialogenable IsaakPostM00Inspection3 // ### enable topic ## dialoginitiate Player IsaakPostM00Inspection3 // *** This is the bridge. *** sleep 0.2 gotolabel GoToRepair :InspectionAborted call DisableAllTopics cleartimers ontrigger PlayerPostM00InAidaCabin ontrigger PlayerPostM00InIsaakCabin dialogenable IsaakPostM00InspectionAborted // ### enable topic ### gotoactor Player 64 dialoginitiate Player IsaakPostM00InspectionAborted sleep :InspectionActions ontrigger dlgIsaakPostM00InspectionAborted gotolabel GoToRepair 1 ontrigger DialogAbortEnd gotolabel InspectionAborted return //======================================================================================================================== // Repairing //======================================================================================================================== :GoToRepair call DisableAllTopics dialogenable IsaakPostM00ToPanelNotNow // ### enable topic ### sendevent PlayercabinDoorTrigger 0 gotoactor PathNode54 :Repairing call DisableAllTopics dialogenable IsaakPostM00NotNow // ### enable topic ### directionalpatrol 1 // *** scripted actions *** gotoactor PathNode133 directionalpatrol 0 /*agentcall Event_A_RepairB 1 agentcall Event_A_RepairB 1 gotoactor PathNode50 directionalpatrol 1 gotoactor PatrolPoint15 directionalpatrol 0 agentcall Event_A_RepairB 1 agentcall Event_A_RepairB 1 gotoactor PathNode50*/ sleep 2 agentcall Event_A_FagChange 1 agentcall Event_U_FagLight 1 sleep 20 sleeprand 3 gotolabel Repairing //======================================================================================================================== // Loadout //======================================================================================================================== :GoToLoadout ontrigger PlayerPostM00InAidaCabin ontrigger PlayerPostM00InIsaakCabin setproperty StaticMeshActor903 bHidden false setproperty StaticMeshActor145 bHidden false setproperty StaticMeshActor79 bHidden false call DisableAllTopics setlocation PathNode29 // Loadout Stages //------------------------------------------------------------------------------------------------------------------------ :LoadoutStandby directionalpatrol 1 gotoactor PathNode88 directionalpatrol 0 call LoadoutActions dialogenable IsaakPostM00Loadout // ### enable topic ### handlergroup ontrigger dlgIsaakPostM00LoadoutOver gotolabel LoadoutStandby ontrigger DialogAbortEnd gotolabel LoadoutStandbyCleanup handlergroupend :LoadoutStandbyLoop sleep 30 //agentcall Event_A_FagChange 1 //agentcall Event_U_FagLight 1 gotolabel LoadoutStandbyLoop // *** end scripted actions *** // ### :LoadoutDP sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloDP 0 sleep 1 sendevent WeaponScreenDP 0 sendevent WeaponScreenBeep 0 sleep :LoadoutDPOver sendevent WeaponScreenDP 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloDP 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // ### :LoadoutCAR sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloCAR 0 sleep 1 sendevent WeaponScreenCAR 0 sendevent WeaponScreenBeep 0 sleep :LoadoutCAROver sendevent WeaponScreenCAR 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloCAR 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // ### :LoadoutGL sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloGL 0 sleep 1 sendevent WeaponScreenGL 0 sendevent WeaponScreenBeep 0 sleep :LoadoutGLOver sendevent WeaponScreenGL 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloGL 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // ### :LoadoutSG sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloSG 0 sleep 1 sendevent WeaponScreenSG 0 sendevent WeaponScreenBeep 0 sleep :LoadoutSGOver sendevent WeaponScreenSG 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloSG 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // ### :LoadoutER sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloER 0 sleep 1 sendevent WeaponScreenER 0 sendevent WeaponScreenBeep 0 sleep :LoadoutEROver sendevent WeaponScreenER 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloER 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // ### :LoadoutFT sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloFT 0 sleep 1 sendevent WeaponScreenFT 0 sendevent WeaponScreenBeep 0 sleep :LoadoutFTOver sendevent WeaponScreenFT 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloFT 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // ### :LoadoutLG sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloLG 0 sleep 1 sendevent WeaponScreenLG 0 sendevent WeaponScreenBeep 0 sleep :LoadoutLGOver sendevent WeaponScreenLG 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloLG 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // ### :LoadoutP sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloP 0 sleep 1 sendevent WeaponScreenP 0 sendevent WeaponScreenBeep 0 sleep :LoadoutPOver sendevent WeaponScreenP 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloP 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // ### :LoadoutSR sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloSR 0 sleep 1 sendevent WeaponScreenSR 0 sendevent WeaponScreenBeep 0 sleep :LoadoutSROver sendevent WeaponScreenSR 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloSR 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // ### :LoadoutRL sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloRL 0 sleep 1 sendevent WeaponScreenRL 0 sendevent WeaponScreenBeep 0 sleep :LoadoutRLOver sendevent WeaponScreenRL 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloRL 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // ### :LoadoutT sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloT 0 sleep 1 sendevent WeaponScreenT 0 sendevent WeaponScreenBeep 0 sleep :LoadoutTOver sendevent WeaponScreenT 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloT 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // ### :LoadoutLR sendevent WeaponHoloSalamanderUp 0 sendevent WeaponHoloSalamander 0 sendevent WeaponHoloLR 0 sleep 1 sendevent WeaponScreenLR 0 sendevent WeaponScreenBeep 0 sleep :LoadoutLROver sendevent WeaponScreenLR 0 sendevent WeaponScreenBeep 0 sendevent WeaponHoloLR 0 sendevent WeaponHoloSalamanderUp 0 sleep 1 sendevent WeaponHoloSalamander 0 sleep // LoadoutActions events (called) //------------------------------------------------------------------------------------------------------------------------ :LoadoutActions ontrigger dlgIsaakPostM00LoadoutDP gotolabel LoadoutDP ontrigger dlgIsaakPostM00LoadoutDPOver gotolabel LoadoutDPOver ontrigger dlgIsaakPostM00LoadoutCAR gotolabel LoadoutCAR ontrigger dlgIsaakPostM00LoadoutCAROver gotolabel LoadoutCAROver ontrigger dlgIsaakPostM00LoadoutGL gotolabel LoadoutGL ontrigger dlgIsaakPostM00LoadoutGLOver gotolabel LoadoutGLOver ontrigger dlgIsaakPostM00LoadoutSG gotolabel LoadoutSG ontrigger dlgIsaakPostM00LoadoutSGOver gotolabel LoadoutSGOver ontrigger dlgIsaakPostM00LoadoutER gotolabel LoadoutER ontrigger dlgIsaakPostM00LoadoutEROver gotolabel LoadoutEROver ontrigger dlgIsaakPostM00LoadoutFT gotolabel LoadoutFT ontrigger dlgIsaakPostM00LoadoutFTOver gotolabel LoadoutFTOver ontrigger dlgIsaakPostM00LoadoutLG gotolabel LoadoutLG ontrigger dlgIsaakPostM00LoadoutLGOver gotolabel LoadoutLGOver ontrigger dlgIsaakPostM00LoadoutP gotolabel LoadoutP ontrigger dlgIsaakPostM00LoadoutPOver gotolabel LoadoutPOver ontrigger dlgIsaakPostM00LoadoutSR gotolabel LoadoutSR ontrigger dlgIsaakPostM00LoadoutSROver gotolabel LoadoutSROver ontrigger dlgIsaakPostM00LoadoutRL gotolabel LoadoutRL ontrigger dlgIsaakPostM00LoadoutRLOver gotolabel LoadoutRLOver ontrigger dlgIsaakPostM00LoadoutT gotolabel LoadoutT ontrigger dlgIsaakPostM00LoadoutTOver gotolabel LoadoutTOver ontrigger dlgIsaakPostM00LoadoutLR gotolabel LoadoutLR ontrigger dlgIsaakPostM00LoadoutLROver gotolabel LoadoutLROver return // Deal with player walking out on loadout //------------------------------------------------------------------------------------------------------------------------ :LoadoutStandbyCleanup //screens testpropertye ResizableStaticMesh114 DrawScale 0 gotolabel LoadoutStandbyCleanup2 sendevent WeaponScreenP 0 :LoadoutStandbyCleanup2 testpropertye ResizableStaticMesh118 DrawScale 0 gotolabel LoadoutStandbyCleanup3 sendevent WeaponScreenRL 0 :LoadoutStandbyCleanup3 testpropertye ResizableStaticMesh113 DrawScale 0 gotolabel LoadoutStandbyCleanup4 sendevent WeaponScreenGL 0 :LoadoutStandbyCleanup4 testpropertye ResizableStaticMesh57 DrawScale 0 gotolabel LoadoutStandbyCleanup5 sendevent WeaponScreenSG 0 :LoadoutStandbyCleanup5 testpropertye ResizableStaticMesh117 DrawScale 0 gotolabel LoadoutStandbyCleanup6 sendevent WeaponScreenLR 0 :LoadoutStandbyCleanup6 testpropertye ResizableStaticMesh119 DrawScale 0 gotolabel LoadoutStandbyCleanup7 sendevent WeaponScreenSR 0 :LoadoutStandbyCleanup7 testpropertye ResizableStaticMesh59 DrawScale 0 gotolabel LoadoutStandbyCleanup8 sendevent WeaponScreenDP 0 :LoadoutStandbyCleanup8 testpropertye ResizableStaticMesh100 DrawScale 0 gotolabel LoadoutStandbyCleanup9 sendevent WeaponScreenT 0 :LoadoutStandbyCleanup9 testpropertye ResizableStaticMesh116 DrawScale 0 gotolabel LoadoutStandbyCleanup10 sendevent WeaponScreenLG 0 :LoadoutStandbyCleanup10 testpropertye ResizableStaticMesh115 DrawScale 0 gotolabel LoadoutStandbyCleanup11 sendevent WeaponScreenER 0 :LoadoutStandbyCleanup11 testpropertye ResizableStaticMesh46 DrawScale 0 gotolabel LoadoutStandbyCleanup12 sendevent WeaponScreenCAR 0 :LoadoutStandbyCleanup12 testpropertye ResizableStaticMesh65 DrawScale 0 gotolabel LoadoutStandbyCleanup13 sendevent WeaponScreenFT 0 //holo weapons :LoadoutStandbyCleanup13 testpropertye ResizableStaticMesh26 DrawScale 0 gotolabel LoadoutStandbyCleanup14 sendevent WeaponHoloDP 0 :LoadoutStandbyCleanup14 testpropertye ResizableStaticMesh28 DrawScale 0 gotolabel LoadoutStandbyCleanup15 sendevent WeaponHoloCAR 0 :LoadoutStandbyCleanup15 testpropertye ResizableStaticMesh33 DrawScale 0 gotolabel LoadoutStandbyCleanup16 sendevent WeaponHoloGL 0 :LoadoutStandbyCleanup16 testpropertye ResizableStaticMesh42 DrawScale 0 gotolabel LoadoutStandbyCleanup17 sendevent WeaponHoloSG 0 :LoadoutStandbyCleanup17 testpropertye ResizableStaticMesh43 DrawScale 0 gotolabel LoadoutStandbyCleanup18 sendevent WeaponHoloER 0 :LoadoutStandbyCleanup18 testpropertye ResizableStaticMesh74 DrawScale 0 gotolabel LoadoutStandbyCleanup19 sendevent WeaponHoloLG 0 :LoadoutStandbyCleanup19 testpropertye ResizableStaticMesh47 DrawScale 0 gotolabel LoadoutStandbyCleanup20 sendevent WeaponHoloFT 0 :LoadoutStandbyCleanup20 testpropertye ResizableStaticMesh89 DrawScale 0 gotolabel LoadoutStandbyCleanup21 sendevent WeaponHoloP 0 :LoadoutStandbyCleanup21 testpropertye ResizableStaticMesh120 DrawScale 0 gotolabel LoadoutStandbyCleanup22 sendevent WeaponHoloRL 0 :LoadoutStandbyCleanup22 testpropertye ResizableStaticMesh103 DrawScale 0 gotolabel LoadoutStandbyCleanup23 sendevent WeaponHoloSR 0 :LoadoutStandbyCleanup23 testpropertye ResizableStaticMesh121 DrawScale 0 gotolabel LoadoutStandbyCleanup24 sendevent WeaponHoloT 0 :LoadoutStandbyCleanup24 testpropertye ResizableStaticMesh122 DrawScale 0 gotolabel LoadoutStandbyCleanup25 sendevent WeaponHoloLR 0 :LoadoutStandbyCleanup25 gotolabel LoadoutStandby //======================================================================================================================== // Global calls //======================================================================================================================== // global events/calls //------------------------------------------------------------------------------------------------------------------------ :TriggeredActions ontrigger dlgIsaakPostM00GoToLoadout gotolabel GoToLoadout 1 return :DisableAllTopics ontrigger DialogEnd dialogdisable IsaakPostM00WelcomeBack dialogdisable IsaakPostM00Inspection dialogdisable IsaakPostM00Inspection1 dialogdisable IsaakPostM00Inspection1Continue dialogdisable IsaakPostM00Inspection2 dialogdisable IsaakPostM00Inspection2Continue dialogdisable IsaakPostM00Inspection2Continue23 dialogdisable IsaakPostM00Inspection3 dialogdisable IsaakPostM00InspectionAborted dialogdisable IsaakPostM00NotNow dialogdisable IsaakPostM00ToLoadoutNotNow dialogdisable IsaakPostM00ToPanelNotNow dialogdisable IsaakPostM00Loadout return :DisableAllTopicsUnsafe dialogdisable IsaakPostM00WelcomeBack dialogdisable IsaakPostM00Inspection dialogdisable IsaakPostM00Inspection1 dialogdisable IsaakPostM00Inspection1Continue dialogdisable IsaakPostM00Inspection2 dialogdisable IsaakPostM00Inspection2Continue dialogdisable IsaakPostM00Inspection2Continue23 dialogdisable IsaakPostM00Inspection3 dialogdisable IsaakPostM00InspectionAborted dialogdisable IsaakPostM00NotNow dialogdisable IsaakPostM00ToLoadoutNotNow dialogdisable IsaakPostM00ToPanelNotNow dialogdisable IsaakPostM00Loadout return :ScriptEnd