bool ScriptCT12::ClickedOnActor(int actorId) { if (actorId == 28) { Actor_Face_Actor(0, 28, true); Actor_Says(0, 8910, 16); } if (actorId == 24 && Global_Variable_Query(1) == 4 && Game_Flag_Query(671) && Game_Flag_Query(703)) { Actor_Face_Actor(24, 0, true); Actor_Face_Actor(0, 24, true); Actor_Says(0, 710, 3); Actor_Says(24, 20, 3); Actor_Says(0, 715, 3); Actor_Says(24, 30, 3); Actor_Says(0, 720, 3); Actor_Says(24, 40, 3); Actor_Says(24, 50, 3); Actor_Says(24, 60, 3); Actor_Says(0, 725, 3); Actor_Says(24, 70, 3); Actor_Says(24, 80, 3); Actor_Says(24, 90, 3); Actor_Says(24, 100, 3); Actor_Says(24, 110, 3); Game_Flag_Set(629); Game_Flag_Set(666); Actor_Set_Goal_Number(0, 400); } return false; }
void ScriptMA04::sub_402F2C() { Actor_Says(6, 530, 3); Actor_Says(0, 2545, 19); Actor_Says(6, 540, 3); Actor_Says(6, 550, 3); Actor_Says(0, 2550, 13); Actor_Says(6, 560, 3); Actor_Says(0, 2555, 19); Actor_Says(6, 570, 3); Actor_Says(0, 2560, 17); Actor_Says(6, 580, 3); if (Game_Flag_Query(165) || Actor_Query_Goal_Number(9) == 2) { Actor_Says(6, 630, 3); Actor_Says_With_Pause(0, 2575, 0.0f, 15); if (!Game_Flag_Query(378)) { Actor_Says(6, 640, 3); } Actor_Clue_Acquire(0, 142, 1, -1); } else { Actor_Says(6, 590, 3); Actor_Says(0, 2565, 12); Actor_Says(6, 600, 3); Actor_Says(6, 610, 3); Actor_Says(6, 620, 3); Actor_Says(0, 2570, 13); Actor_Says_With_Pause(6, 630, 0.0f, 3); Actor_Says_With_Pause(0, 2575, 0.0f, 15); if (!Game_Flag_Query(378)) { Actor_Says(6, 640, 3); } Actor_Clue_Acquire(0, 141, 1, -1); } Sound_Play(123, 100, 0, 0, 50); }
void SceneScriptCT11::SceneLoaded() { Obstacle_Object("TRASH CAN", true); Unobstacle_Object("BOX NORTHWEST 1", true); Unobstacle_Object("BOX SOUTH 1", true); if (Global_Variable_Query(kVariableChapter) < 4) { if (!Game_Flag_Query(645)) { Item_Add_To_World(115, 951, 33, 640.21f, 30.0f, 470.0f, 512, 12, 12, false, true, false, true); Scene_2D_Region_Add(0, 505, 316, 513, 321); Game_Flag_Set(725); } if (!Actor_Clue_Query(kActorMcCoy, kClueCar)) { Scene_2D_Region_Add(1, 412, 258, 552, 358); } } else { if (Game_Flag_Query(725)) { Item_Remove_From_World(115); Game_Flag_Reset(725); Game_Flag_Set(645); } Unobstacle_Object("BRIDGE SUPPORT", true); Unobstacle_Object("BODY", true); Unobstacle_Object("HEADLIGHTS", true); Unobstacle_Object("LICENSE PLATE-FRONT", true); Unobstacle_Object("LICENSE PLATE-REAR", true); Unobstacle_Object("BRAKE DISC RF", true); Unobstacle_Object("TIRE RF", true); Unobstacle_Object("RIM RF", true); Unobstacle_Object("DOOR RIGHT", true); Unobstacle_Object("BUMPER REAR", true); } Unclickable_Object("TRASH CAN"); }
bool SceneScriptHF03::ClickedOnActor(int actorId) { if (actorId == 6 && Actor_Query_Goal_Number(kActorLucy) == 205) { if (Game_Flag_Query(46) ? !Loop_Actor_Walk_To_Waypoint(kActorMcCoy, 377, 0, 1, false) : !Loop_Actor_Walk_To_Waypoint(kActorMcCoy, 378, 0, 1, false)) { Actor_Face_Actor(kActorMcCoy, kActorLucy, true); if (!Game_Flag_Query(613)) { Game_Flag_Set(613); if (Game_Flag_Query(46)) { Actor_Says(kActorMcCoy, 1605, 15); Actor_Says(kActorLucy, 100, 12); Actor_Says(kActorMcCoy, 1610, 14); } else { Actor_Says(kActorMcCoy, 1615, 16); Actor_Says(kActorLucy, 110, 13); } Actor_Says(kActorLucy, 120, 13); Actor_Says(kActorMcCoy, 1620, 14); Actor_Says(kActorLucy, 130, 17); Actor_Says(kActorMcCoy, 1625, 15); if (Game_Flag_Query(46)) { Actor_Says(kActorLucy, 140, 12); Actor_Says(kActorLucy, 150, 13); Actor_Says(kActorLucy, 160, 15); } else { Actor_Says(kActorLucy, 170, 12); Actor_Says(kActorLucy, 180, 13); Actor_Says(kActorLucy, 190, 15); } } sub_401C80(); } } return false; }
void SceneScriptDR02::InitializeScene() { if (Game_Flag_Query(kFlagDR03toDR02)) { Setup_Scene_Information(-1162.0f, 7.18f, -322.0f, 552); } else if (Game_Flag_Query(kFlagDR01toDR02)) { Setup_Scene_Information( -835.0f, -0.04f, -118.0f, 193); } else if (Game_Flag_Query(kFlagBB01toDR02)) { Setup_Scene_Information(-1258.0f, 7.18f, -314.0f, 400); } else { Setup_Scene_Information( 168.78f, 0.16f, -775.72f, 193); } Scene_Exit_Add_2D_Exit(0, 605, 0, 639, 479, 1); Scene_Exit_Add_2D_Exit(1, 222, 176, 279, 314, 0); if (Game_Flag_Query(kFlagBB01Available)) { Scene_Exit_Add_2D_Exit(2, 95, 0, 148, 292, 0); } Ambient_Sounds_Remove_All_Non_Looping_Sounds(0); Ambient_Sounds_Remove_All_Looping_Sounds(0); Ambient_Sounds_Add_Looping_Sound(54, 50, 0, 1); Ambient_Sounds_Add_Looping_Sound(219, 27, 85, 1); Ambient_Sounds_Add_Looping_Sound(98, 38, 85, 1); Ambient_Sounds_Add_Sound(378, 2, 50, 33, 100, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(379, 2, 50, 33, 100, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(380, 2, 50, 33, 100, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound( 67, 5, 100, 16, 25, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound( 66, 5, 100, 16, 25, -100, 100, -101, -101, 0, 0); if (Game_Flag_Query(kFlagDR01toDR02)) { Scene_Loop_Start_Special(kSceneLoopModeLoseControl, 0, false); Scene_Loop_Set_Default(1); } else { Scene_Loop_Set_Default(1); } }
void ScriptKP06::InitializeScene() { if (Game_Flag_Query(579) ) { Setup_Scene_Information(-755.0f, 8.26f, -665.0f, 640); } else { Setup_Scene_Information(-868.0f, 8.26f, -8.0f, 0); } Scene_Exit_Add_2D_Exit(0, 270, 445, 639, 479, 2); Scene_Exit_Add_2D_Exit(1, 320, 158, 352, 220, 0); Ambient_Sounds_Add_Looping_Sound(464, 34, 1, 1); Ambient_Sounds_Add_Looping_Sound(383, 27, 1, 1); Ambient_Sounds_Add_Looping_Sound(384, 90, 1, 1); Ambient_Sounds_Add_Sound(440, 2, 100, 25, 33, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(441, 2, 100, 25, 33, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(442, 2, 100, 25, 33, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(375, 5, 180, 50, 100, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(376, 5, 180, 50, 100, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(377, 5, 180, 50, 100, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(443, 2, 100, 25, 33, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(444, 2, 100, 25, 33, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(445, 2, 100, 25, 33, -100, 100, -101, -101, 0, 0); if (Game_Flag_Query(576) ) { Scene_Loop_Start_Special(0, 0, 0); Scene_Loop_Set_Default(1); Game_Flag_Reset(576); } else { Scene_Loop_Set_Default(1); } }
bool SceneScriptCT04::ClickedOnActor(int actorId) { if (actorId == 12) { if (Game_Flag_Query(169)) { if (!Loop_Actor_Walk_To_Actor(kActorMcCoy, kActorTransient, 36, 1, false)) { Actor_Voice_Over(290, kActorVoiceOver); Actor_Voice_Over(300, kActorVoiceOver); Actor_Voice_Over(310, kActorVoiceOver); } } else { Actor_Set_Targetable(kActorTransient, false); if (!Loop_Actor_Walk_To_Actor(kActorMcCoy, kActorTransient, 36, 1, false)) { Actor_Face_Actor(kActorMcCoy, kActorTransient, true); if (!Game_Flag_Query(137)) { if (Game_Flag_Query(40)) { Actor_Says(kActorMcCoy, 435, 3); Actor_Set_Goal_Number(kActorTransient, 2); } else { Music_Stop(3); Actor_Says(kActorMcCoy, 425, 3); Actor_Says(kActorTransient, 0, 13); sub_401D4C(); Actor_Set_Goal_Number(kActorTransient, 2); } Game_Flag_Set(137); } else { Actor_Face_Actor(kActorMcCoy, kActorTransient, true); Actor_Says(kActorMcCoy, 435, 3); } } } return true; } return false; }
void ScriptNR11::InitializeScene() { Setup_Scene_Information(100.0f, 1.75f, -4.0f, 0); Scene_Exit_Add_2D_Exit(0, 450, 305, 565, 345, 2); if (!Game_Flag_Query(640)) { Ambient_Sounds_Adjust_Looping_Sound(452, 22, 0, 1); } Ambient_Sounds_Add_Looping_Sound(205, 22, 0, 1); Ambient_Sounds_Add_Looping_Sound(71, 33, 0, 1); Ambient_Sounds_Add_Sound(303, 2, 50, 7, 17, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(304, 2, 50, 7, 17, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(305, 2, 50, 7, 17, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(306, 2, 50, 7, 17, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(307, 2, 50, 7, 17, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(308, 2, 50, 7, 17, -100, 100, -101, -101, 0, 0); if (Game_Flag_Query(632)) { Scene_Loop_Set_Default(3); Ambient_Sounds_Add_Looping_Sound(381, 83, 0, 1); } else if (Game_Flag_Query(634)) { Scene_Loop_Set_Default(5); Ambient_Sounds_Add_Looping_Sound(381, 83, 0, 1); } else { Scene_Loop_Set_Default(0); Overlay_Play("NR11OVER", 0, 1, 0, 0); } }
void ScriptTB06::PlayerWalkedIn() { if (!Game_Flag_Query(102) && !Game_Flag_Query(483)) { Actor_Face_Actor(0, 21, true); Actor_Says(0, 5290, 3); Loop_Actor_Walk_To_XYZ(0, -10.0f, 149.0f, -631.0f, 0, 0, false, 0); AI_Movement_Track_Pause(37); Actor_Face_Actor(0, 37, true); Actor_Face_Actor(37, 0, true); Actor_Says(37, 0, 3); Actor_Says(0, 5295, 3); Actor_Face_Actor(37, 21, true); Actor_Says(37, 10, 3); AI_Movement_Track_Unpause(37); Game_Flag_Set(483); //return true; return; } if (Game_Flag_Query(103)) { Item_Remove_From_World(84); Item_Remove_From_World(82); Item_Remove_From_World(98); //return true; return; } //return false; return; }
void SceneScriptCT03::InitializeScene() { if (Game_Flag_Query(719)) { Setup_Scene_Information(-852.58f, -621.3f, 285.6f, 0); } else if (Game_Flag_Query(69)) { Game_Flag_Reset(69); Setup_Scene_Information(-557.1f, -616.31f, 224.29f, 249); } else if (Game_Flag_Query(73)) { Game_Flag_Reset(73); Setup_Scene_Information(-173.99f, -619.19f, 347.54f, 808); } else { Setup_Scene_Information(-708.58f, -619.19f, 277.6f, 239); } Scene_Exit_Add_2D_Exit(0, 0, 460, 639, 479, 2); Scene_Exit_Add_2D_Exit(1, 40, 40, 134, 302, 3); Scene_Exit_Add_2D_Exit(2, 390, 0, 539, 230, 1); Ambient_Sounds_Add_Looping_Sound(54, 50, 1, 1); Ambient_Sounds_Add_Looping_Sound(56, 22, -100, 1); Ambient_Sounds_Add_Looping_Sound(105, 34, -100, 1); Ambient_Sounds_Add_Sound(68, 10, 40, 33, 50, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(69, 10, 40, 33, 50, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(61, 3, 30, 8, 10, -100, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(62, 3, 30, 8, 10, -100, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(63, 3, 30, 8, 10, -100, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(64, 3, 30, 8, 10, -100, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Speech_Sound(60, 0, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 20, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 40, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 50, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Sound(376, 10, 60, 33, 50, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(377, 10, 60, 33, 50, -100, 100, -101, -101, 0, 0); }
bool SceneScriptRC01::ClickedOnActor(int actorId) { if (actorId == kActorOfficerLeary && Global_Variable_Query(kVariableChapter) == 1) { if (!Loop_Actor_Walk_To_Actor(kActorMcCoy, kActorOfficerLeary, 36, true, false)) { Actor_Face_Actor(kActorMcCoy, kActorOfficerLeary, true); Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true); if (Actor_Query_Goal_Number(kActorOfficerLeary) == kGoalOfficerLearyRC01WalkToCrowd) { Actor_Set_Goal_Number(kActorOfficerLeary, kGoalOfficerLearyDefault); } if (Game_Flag_Query(kFlagRC01GotOfficersStatement)) { Actor_Says(kActorMcCoy, 4535, 13); Game_Flag_Set(kFlagRC01McCoyAndOfficerLearyTalking); if (Actor_Clue_Query(kActorOfficerLeary, kClueCrowdInterviewA) && !Actor_Clue_Query(kActorMcCoy, kClueCrowdInterviewA)) { Actor_Face_Object(kActorOfficerLeary, "70_1", true); Actor_Says(kActorOfficerLeary, 100, 15); Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true); Actor_Clue_Acquire(kActorMcCoy, kClueCrowdInterviewA, true, kActorOfficerLeary); Game_Flag_Reset(kFlagRC01McCoyAndOfficerLearyTalking); } else if (Actor_Clue_Query(kActorOfficerLeary, kClueCrowdInterviewB) && !Actor_Clue_Query(kActorMcCoy, kClueCrowdInterviewB)) { Actor_Face_Object(kActorOfficerLeary, "70_5", true); Actor_Says(kActorOfficerLeary, 120, 19); Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true); Actor_Says(kActorOfficerLeary, 130, 14); I_Sez("JM: Did it have a huge, ugly piece of chrome on it?"); Actor_Clue_Acquire(kActorMcCoy, kClueCrowdInterviewB, true, kActorOfficerLeary); Game_Flag_Reset(kFlagRC01McCoyAndOfficerLearyTalking); } else { Actor_Says(kActorOfficerLeary, 90, 16); I_Sez("JM: This officer has a talent for vivid metaphors."); if (!Game_Flag_Query(kFlagRC01McCoyAndOfficerLearyArtMetaphor)) { I_Sez("DL: What is that supposed to mean? I didn't write this line..."); Actor_Says(kActorMcCoy, 4540, 16); Game_Flag_Set(kFlagRC01McCoyAndOfficerLearyArtMetaphor); } Game_Flag_Reset(kFlagRC01McCoyAndOfficerLearyTalking); } } else { I_Sez("MG: Hey, leave that officer alone. Can't you see he's busy?"); I_Sez("JM: (...mmm, donuts...)"); Game_Flag_Set(kFlagRC01GotOfficersStatement); Actor_Clue_Acquire(kActorMcCoy, kClueOfficersStatement, true, kActorOfficerLeary); Actor_Says(kActorMcCoy, 4515, 13); Game_Flag_Set(kFlagRC01McCoyAndOfficerLearyTalking); Actor_Says(kActorOfficerLeary, 40, 13); if (!Game_Flag_Query(kFlagRC02Entered)) { Actor_Says(kActorOfficerLeary, 50, 14); Actor_Says(kActorOfficerLeary, 60, 15); I_Sez("MG: It's all fun and games until someone loses a tiger cub."); Actor_Says(kActorMcCoy, 4520, 18); Actor_Says(kActorOfficerLeary, 70, 16); Actor_Says(kActorMcCoy, 4525, 14); Actor_Says(kActorOfficerLeary, 80, 18); Actor_Says(kActorMcCoy, 4530, 15); } Game_Flag_Reset(kFlagRC01McCoyAndOfficerLearyTalking); } } return true; } return false; }
void ScriptMA07::InitializeScene() { if (Game_Flag_Query(356)) { Setup_Scene_Information(6.75f, -172.43f, 356.0f, 997); Game_Flag_Reset(356); Game_Flag_Set(665); } else if (Game_Flag_Query(673)) { Setup_Scene_Information(-312.0f, -162.8f, 180.0f, 0); } else { Setup_Scene_Information(104.0f, -162.16f, 56.0f, 519); } Ambient_Sounds_Add_Looping_Sound(381, 100, 1, 1); Ambient_Sounds_Add_Sound(374, 100, 300, 16, 25, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(68, 60, 180, 16, 25, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(69, 60, 180, 16, 25, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(375, 60, 180, 50, 100, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(376, 50, 180, 50, 100, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(377, 50, 180, 50, 100, 0, 0, -101, -101, 0, 0); if (Global_Variable_Query(1) > 1) { Scene_Exit_Add_2D_Exit(1, 0, 200, 50, 479, 3); } if (Game_Flag_Query(665)) { Scene_Exit_Add_2D_Exit(2, 176, 386, 230, 426, 2); } Scene_Exit_Add_2D_Exit(0, 270, 216, 382, 306, 0); }
void ScriptMA07::PlayerWalkedIn() { if (Game_Flag_Query(673)) { Loop_Actor_Walk_To_XYZ(0, -268.0f, -162.8f, 188.0f, 0, 0, false, 0); Game_Flag_Reset(673); } if (Actor_Query_Goal_Number(57) == 300) { Actor_Set_Goal_Number(57, 305); } if (Game_Flag_Query(58)) { Game_Flag_Reset(58); } if (!Game_Flag_Query(648) && Game_Flag_Query(671) && Global_Variable_Query(1) == 4) { Scene_Exits_Disable(); Actor_Set_Goal_Number(53, 300); } if (Game_Flag_Query(666)) { Actor_Voice_Over(1360, 99); Actor_Voice_Over(1370, 99); Actor_Voice_Over(1380, 99); Actor_Voice_Over(1390, 99); Actor_Voice_Over(1400, 99); Delay(1000); Game_Flag_Reset(666); Game_Flag_Set(34); Set_Enter(10, 49); } //return false; }
void SceneScriptUG06::PlayerWalkedIn() { if (Game_Flag_Query(kFlagUG04toUG06)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 23.0f, 0.0f, 273.0f, 0, false, false, 0); Game_Flag_Reset(kFlagUG04toUG06); } if (Game_Flag_Query(kFlagNR01toUG06)) { Loop_Actor_Travel_Stairs(kActorMcCoy, 17, false, kAnimationModeIdle); Loop_Actor_Walk_To_XYZ(kActorMcCoy, 66.0f, 0.0f, -36.91f, 0, false, false, 0); Game_Flag_Reset(kFlagNR01toUG06); } if ( Global_Variable_Query(kVariableChapter) == 4 && !Game_Flag_Query(524) ) { Player_Loses_Control(); Actor_Voice_Over(2620, kActorVoiceOver); Actor_Voice_Over(2630, kActorVoiceOver); Actor_Voice_Over(2640, kActorVoiceOver); Actor_Voice_Over(2650, kActorVoiceOver); Actor_Voice_Over(2660, kActorVoiceOver); Actor_Voice_Over(2670, kActorVoiceOver); Actor_Voice_Over(2680, kActorVoiceOver); Actor_Voice_Over(2690, kActorVoiceOver); Actor_Voice_Over(2700, kActorVoiceOver); Player_Gains_Control(); Game_Flag_Set(524); Autosave_Game(2); } //return false; }
void SceneScriptUG14::InitializeScene() { if (Game_Flag_Query(kFlagUG19toUG14)) { Setup_Scene_Information(-278.0f, 12.97f, -152.0f, 200); } else if (Game_Flag_Query(kFlagUG12toUG14)) { Setup_Scene_Information( -50.0f, 129.0f, -814.0f, 533); } else { Setup_Scene_Information( 233.0f, 186.04f, -32.0f, 865); } Scene_Exit_Add_2D_Exit(0, 0, 232, 45, 427, 3); Scene_Exit_Add_2D_Exit(1, 175, 44, 228, 115, 0); Scene_Exit_Add_2D_Exit(2, 537, 0, 639, 190, 1); Ambient_Sounds_Add_Looping_Sound(kSfxSTMLOOP7, 28, 0, 1); Ambient_Sounds_Add_Looping_Sound(kSfxUGBED1, 40, 0, 1); Ambient_Sounds_Add_Looping_Sound(kSfxUGBED2, 40, 0, 1); Ambient_Sounds_Add_Sound(kSfxBBDRIP1, 2, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(kSfxBBDRIP2, 2, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(kSfxYELL1M2, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(kSfxYELL1M3, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(kSfxGRUNT1M1, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(kSfxGRUNT2M2, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(kSfxGRUNT2M3, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(kSfxBBDRIP3, 2, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(kSfxBBDRIP4, 2, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(kSfxBBDRIP5, 2, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(kSfxBBGRN1, 5, 50, 17, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(kSfxBBGRN2, 5, 50, 17, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(kSfxBBGRN3, 5, 50, 17, 37, -100, 100, -101, -101, 0, 0); }
void SceneScriptUG16::PlayerWalkedIn() { Game_Flag_Set(715); if (!Game_Flag_Query(595)) { Actor_Set_Goal_Number(kActorLuther, 403); } if (!Game_Flag_Query(556) && Actor_Query_Is_In_Current_Set(kActorLuther)) { Player_Loses_Control(); Loop_Actor_Walk_To_XYZ(kActorMcCoy, 120.29f, -35.67f, 214.8f, 310, 0, false, 0); Actor_Face_Actor(kActorMcCoy, kActorLuther, true); Actor_Says(kActorLuther, 0, 6); Actor_Says(kActorLuther, 30, 13); Actor_Change_Animation_Mode(kActorLuther, 17); Actor_Says(kActorLance, 0, 17); Actor_Says(kActorMcCoy, 5710, 14); Actor_Says(kActorLuther, 40, 13); Actor_Says(kActorLuther, 50, 15); Actor_Says(kActorLance, 20, 12); Actor_Says(kActorLuther, 60, 23); Actor_Says(kActorMcCoy, 5715, 14); Actor_Says(kActorLance, 30, 16); Actor_Says(kActorLuther, 70, 6); Player_Gains_Control(); Game_Flag_Set(556); } }
void SceneScriptAR01::SceneFrameAdvanced(int frame) { if (frame == 16) { Ambient_Sounds_Play_Sound(kSfxCARDOWN3, 40, 0, 0, 99); } if (frame == 78 || frame == 199) { Ambient_Sounds_Play_Sound(kSfxSPINOPN4, 100, -50, -50, 99); } if (frame == 122 || frame == 242) { Ambient_Sounds_Play_Sound(kSfxSPINCLS1, 100, -50, -50, 99); } if (frame == 256) { Ambient_Sounds_Play_Sound(kSfxCARUP3, 40, -50, 80, 99); } if ((frame == 75 || frame == 196 ) && Game_Flag_Query(kFlagArrivedFromSpinner2) ) { Actor_Face_Heading(kActorMcCoy, 545, false); Actor_Change_Animation_Mode(kActorMcCoy, kAnimationModeSpinnerGetOut); Game_Flag_Reset(kFlagArrivedFromSpinner2); } else if ( frame == 196 && !Game_Flag_Query(kFlagArrivedFromSpinner2 )) { Actor_Change_Animation_Mode(kActorMcCoy, kAnimationModeSpinnerGetIn); } }
void SceneScriptCT05::PlayerWalkedIn() { if (Game_Flag_Query(kFlagCT04toCT05)) { Player_Loses_Control(); Game_Flag_Reset(kFlagCT04toCT05); if (Player_Query_Combat_Mode()) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -308.18f, -109.91f, 674.77f, 0, false, true, false); } else { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -308.18f, -109.91f, 674.77f, 0, false, false, false); } Player_Gains_Control(); } if (Game_Flag_Query(kFlagCT06toCT05)) { Footstep_Sound_Override_On(2); Loop_Actor_Travel_Stairs(kActorMcCoy, 7, false, kAnimationModeIdle); Actor_Set_At_XYZ(kActorMcCoy, 90.73f, -19.91f, 164.97f, 520); Loop_Actor_Travel_Stairs(kActorMcCoy, 10, false, kAnimationModeIdle); Game_Flag_Reset(kFlagCT06toCT05); Footstep_Sound_Override_Off(); if (Actor_Query_Goal_Number(kActorGordo) == kGoalGordoCT01Left && Game_Flag_Query(kFlagCT06ZubenPhoto) ) { Actor_Set_Goal_Number(kActorGordo, kGoalGordoCT05WalkThrough); } } }
void ScriptBB08::InitializeScene() { if (Game_Flag_Query(219)) { Setup_Scene_Information(204.0f, 0.0f, 92.0f, 875); } else { Setup_Scene_Information(247.0f, 0.0f, 27.0f, 790); } Scene_Exit_Add_2D_Exit(0, 307, 0, 361, 238, 0); Scene_Exit_Add_2D_Exit(1, 117, 38, 214, 245, 0); Ambient_Sounds_Add_Looping_Sound(105, 44, 0, 1); Ambient_Sounds_Add_Sound(291, 1, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(292, 1, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(293, 1, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(294, 1, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(295, 1, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(443, 2, 180, 14, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(444, 2, 180, 14, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(445, 2, 180, 14, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(446, 2, 180, 14, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(303, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(304, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(305, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(306, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(307, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(308, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(309, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(310, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); if (!Game_Flag_Query(496)) { Overlay_Play("BB08OVER", 0, 0, 0, 0); Game_Flag_Set(496); } }
void SceneScriptCT05::InitializeScene() { if (Game_Flag_Query(kFlagCT12toCT05)) { Game_Flag_Reset(kFlagCT12toCT05); Setup_Scene_Information(-128.42f, -109.91f, 112.83f, 516); } else if (Game_Flag_Query(kFlagCT06toCT05)) { Setup_Scene_Information( 192.35f, 43.09f, 128.97f, 768); } else { Setup_Scene_Information( -375.0f, -109.91f, 750.0f, 600); } if (Game_Flag_Query(kFlagCT05WarehouseOpen)) { Scene_Exit_Add_2D_Exit(0, 228, 205, 293, 300, 0); } Scene_Exit_Add_2D_Exit(1, 320, 458, 639, 479, 2); Scene_Exit_Add_2D_Exit(2, 380, 110, 542, 300, 0); Ambient_Sounds_Add_Looping_Sound(kSfxCTROOFL1, 15, -100, 1); Ambient_Sounds_Add_Looping_Sound(kSfxCTROOFR1, 15, 100, 1); Ambient_Sounds_Add_Looping_Sound(kSfxCTAMBR1, 13, -100, 1); Ambient_Sounds_Add_Sound(kSfxPSDOOR1, 5, 20, 8, 10, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(kSfxPSDOOR2, 5, 20, 8, 10, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(kSfxCTDRONE1, 5, 30, 18, 30, -100, 100, -101, -101, 0, 0); if (Game_Flag_Query(kFlagCT05WarehouseOpen)) { Scene_Loop_Set_Default(2); } else { Scene_Loop_Set_Default(0); } if (Actor_Query_Goal_Number(kActorGaff) == kGoalGaffCT12WaitForMcCoy) { Overlay_Play("ct05over", 0, true, false, 0); } }
bool AIScriptMutant1::Update() { if (Global_Variable_Query(kVariableChapter) == 5 && Actor_Query_Goal_Number(kActorMutant1) != 590) { if (Actor_Query_Which_Set_In(kActorMutant1) != Player_Query_Current_Set()) { Actor_Set_Goal_Number(kActorMutant1, 590); } return false; } if (Global_Variable_Query(kVariableChapter) != 4) { return false; } switch (Actor_Query_Goal_Number(kActorMutant1)) { case 400: if (!Game_Flag_Query(523) && Game_Flag_Query(524) == 1) { Actor_Set_Goal_Number(kActorMutant1, 401); Actor_Set_Goal_Number(kActorMutant2, 401); Actor_Set_Goal_Number(kActorMutant3, 401); Actor_Set_Targetable(kActorMutant1, 1); Actor_Set_Targetable(kActorMutant2, 1); Actor_Set_Targetable(kActorMutant3, 1); Game_Flag_Set(523); } break; case 401: if (Actor_Query_Which_Set_In(kActorMutant1) == Player_Query_Current_Set() && (Actor_Query_Friendliness_To_Other(kActorMutant1, kActorMcCoy) < 30 || Actor_Query_Combat_Aggressiveness(70) >= 60)) { Actor_Set_Goal_Number(kActorMutant1, 410); } break; case 404: if (!Game_Flag_Query(630)) { Actor_Set_Goal_Number(kActorMutant1, 403); } break; case 410: if (Actor_Query_Which_Set_In(kActorMutant1) != Player_Query_Current_Set()) { Non_Player_Actor_Combat_Mode_Off(kActorMutant1); Actor_Set_Goal_Number(kActorMutant1, 403); } break; case 599: if (Actor_Query_Which_Set_In(kActorMutant1) != Player_Query_Current_Set()) { Actor_Set_Goal_Number(kActorMutant1, 411); } break; } if (Game_Flag_Query(630) == 1 && Actor_Query_Goal_Number(kActorMutant1) != 599) { Actor_Set_Goal_Number(kActorMutant1, 404); } return false; }
void SceneScriptBB07::InitializeScene() { if (Game_Flag_Query(kFlagBB12toBB07)) { Setup_Scene_Information(-655.0f, 252.59f, -1136.0f, 323); } else if (Game_Flag_Query(kFlagBB06toBB07)) { Setup_Scene_Information(-551.0f, 252.59f, -1004.0f, 29); Game_Flag_Reset(kFlagBB06toBB07); } else { Setup_Scene_Information(-652.0f, 252.59f, -1018.0f, 268); } Scene_Exit_Add_2D_Exit(0, 0, 16, 51, 426, 3); Scene_Exit_Add_2D_Exit(1, 124, 101, 172, 305, 3); Scene_Exit_Add_2D_Exit(2, 282, 408, 476, 479, 2); Scene_2D_Region_Add(0, 308, 283, 354, 308); Ambient_Sounds_Add_Looping_Sound(332, 44, 0, 1); Ambient_Sounds_Add_Looping_Sound(331, 24, 0, 1); Ambient_Sounds_Add_Sound(443, 2, 180, 14, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(444, 2, 180, 14, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(445, 2, 180, 14, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(446, 2, 180, 14, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(303, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(304, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(305, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(306, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(307, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(308, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(309, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(310, 5, 50, 17, 27, -100, 100, -101, -101, 0, 0); Overlay_Play("BB07OVER", 0, true, false, 0); }
void ScriptDR01::PlayerWalkedOut() { if (!Game_Flag_Query(10) && !Game_Flag_Query(224) && !Game_Flag_Query(558)) { Ambient_Sounds_Remove_All_Non_Looping_Sounds(1); Ambient_Sounds_Remove_All_Looping_Sounds(1); Outtake_Play(35, 1, -1); } }
bool SceneScriptBB07::ClickedOn3DObject(const char *objectName, bool a2) { if (Object_Query_Click("PRINTER", objectName)) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -472.63f, 252.59f, -1086.81f, 0, false, false, 0)) { Actor_Face_Object(kActorMcCoy, "PRINTER", true); if ( Game_Flag_Query(kFlagBB07ElectricityOn) && !Game_Flag_Query(kFlagBB07PrinterChecked) ) { Actor_Voice_Over(130, kActorVoiceOver); Item_Pickup_Spin_Effect(941, 439, 242); Actor_Voice_Over(140, kActorVoiceOver); Game_Flag_Set(kFlagBB07PrinterChecked); Actor_Clue_Acquire(kActorMcCoy, kClueDNASebastian, true, -1); } else if (Game_Flag_Query(kFlagBB07ElectricityOn) && Game_Flag_Query(kFlagBB07PrinterChecked) ) { Actor_Face_Object(kActorMcCoy, "PRINTER", true); Actor_Says(kActorMcCoy, 8570, 13); } else { Actor_Face_Object(kActorMcCoy, "PRINTER", true); Actor_Says(kActorMcCoy, 8575, 13); } } } return false; }
void ScriptMA04::InitializeScene() { if (Game_Flag_Query(63)) { Setup_Scene_Information(-7199.0f, 953.97f, 1579.0f, 502); if (Global_Variable_Query(1) != 2 && Global_Variable_Query(1) != 3) { Scene_Loop_Start_Special(0, 0, 0); } } else if (Game_Flag_Query(35)) { Setup_Scene_Information(-7099.0f, 954.0f, 1866.0f, 502); } else if (Game_Flag_Query(647)) { Setup_Scene_Information(-7107.0f, 954.0f, 1742.0f, 502); Scene_Loop_Start_Special(0, 4, 0); } else { Setup_Scene_Information(-7143.0f, 954.0f, 1868.0f, 733); } Scene_Exit_Add_2D_Exit(0, 496, 0, 639, 354, 1); Scene_Exit_Add_2D_Exit(1, 33, 63, 113, 258, 0); Scene_Exit_Add_2D_Exit(2, 248, 98, 314, 284, 1); Scene_2D_Region_Add(0, 343, 97, 353, 190); Scene_2D_Region_Add(1, 0, 340, 116, 479); Ambient_Sounds_Add_Looping_Sound(408, 30, 0, 1); Ambient_Sounds_Add_Looping_Sound(103, 30, -80, 1); Ambient_Sounds_Add_Looping_Sound(104, 12, 0, 1); Ambient_Sounds_Add_Sound(72, 5, 30, 11, 11, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(73, 5, 30, 12, 12, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(74, 5, 30, 12, 12, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(375, 10, 60, 20, 20, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(376, 10, 60, 20, 20, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(87, 10, 60, 16, 16, -100, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(68, 60, 180, 16, 25, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(69, 60, 180, 16, 25, 0, 0, -101, -101, 0, 0); if (sub_402758()) { Ambient_Sounds_Add_Sound(403, 3, 3, 100, 100, 0, 0, 0, 0, 99, 0); } Scene_Loop_Set_Default(1); }
void SceneScriptUG14::InitializeScene() { if (Game_Flag_Query(kFlagUG19toUG14)) { Setup_Scene_Information(-278.0f, 12.97f, -152.0f, 200); } else if (Game_Flag_Query(kFlagUG12toUG14)) { Setup_Scene_Information( -50.0f, 129.0f, -814.0f, 533); } else { Setup_Scene_Information( 233.0f, 186.04f, -32.0f, 865); } Scene_Exit_Add_2D_Exit(0, 0, 232, 45, 427, 3); Scene_Exit_Add_2D_Exit(1, 175, 44, 228, 115, 0); Scene_Exit_Add_2D_Exit(2, 537, 0, 639, 190, 1); Ambient_Sounds_Add_Looping_Sound(331, 28, 0, 1); Ambient_Sounds_Add_Looping_Sound(332, 40, 0, 1); Ambient_Sounds_Add_Looping_Sound(333, 40, 0, 1); Ambient_Sounds_Add_Sound(291, 2, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(292, 2, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(401, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(402, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(369, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(397, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(398, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(293, 2, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(294, 2, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(295, 2, 20, 20, 25, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(303, 5, 50, 17, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(304, 5, 50, 17, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(305, 5, 50, 17, 37, -100, 100, -101, -101, 0, 0); }
void ScriptMA04::sub_403DA8() { if (!Loop_Actor_Walk_To_Scene_Object(0, "BED-SHEETS", 12, 1, false)) { Actor_Says(0, 8530, 12); Music_Stop(4); if (sub_402820() || sub_402758()) { Overlay_Remove("MA04OVER"); } Player_Loses_Control(); Game_Flag_Set(647); if ((Game_Flag_Query(40) || Game_Flag_Query(41)) && Global_Variable_Query(1) == 1) { if (Actor_Query_Goal_Number(19) == 599) { Actor_Put_In_Set(19, 91); Actor_Set_At_Waypoint(19, 33, 0); } Game_Flag_Set(678); Global_Variable_Set(1, 2); Chapter_Enter(2, 10, 50); if (Query_Difficulty_Level() != 0) { if (!Game_Flag_Query(723)) { Global_Variable_Increment(2, 200); } } } else { Set_Enter(10, 50); } Scene_Loop_Start_Special(1, 3, 0); } }
void SceneScriptUG14::PlayerWalkedIn() { if (Game_Flag_Query(kFlagUG19toUG14)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -250.0f, 12.97f, -152.0f, 0, false, false, false); Game_Flag_Reset(kFlagUG19toUG14); } else if (Game_Flag_Query(kFlagUG12toUG14)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -50.0f, 129.0f, -604.0f, 0, false, false, false); Game_Flag_Reset(kFlagUG12toUG14); } else { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 157.0f, 186.04f, -44.01f, 0, false, false, false); Actor_Face_Heading(kActorMcCoy, 10, false); Footstep_Sound_Override_On(3); Loop_Actor_Travel_Stairs(kActorMcCoy, 6, false, kAnimationModeIdle); Footstep_Sound_Override_Off(); Loop_Actor_Walk_To_XYZ(kActorMcCoy, 157.0f, 128.92f, -148.01f, 0, false, false, false); Actor_Face_Heading(kActorMcCoy, 807, false); Game_Flag_Reset(kFlagUG10toUG14); } if ( Global_Variable_Query(kVariableChapter) == 4 && Game_Flag_Query(kFlagCT04HomelessBodyThrownAway) && !Game_Flag_Query(kFlagUG14DeadHomeless) ) { Overlay_Play("UG14OVER", 0, false, true, 0); Delay(1000); Actor_Face_Heading(kActorMcCoy, 609, false); Delay(3000); Actor_Voice_Over(270, kActorVoiceOver); Delay(2150); Actor_Voice_Over(300, kActorVoiceOver); Game_Flag_Set(kFlagUG14DeadHomeless); } //return false; }
void SceneScriptDR04::PlayerWalkedIn() { if (Game_Flag_Query(kFlagDR05ViewExplosion)) { Player_Loses_Control(); Delay(4000); Actor_Retired_Here(kActorMcCoy, 6, 6, 1, -1); } else { if ( Game_Flag_Query(kFlagDR05BombActivated) && !Game_Flag_Query(kFlagDR05BombExploded) ) { Scene_Exits_Disable(); } if (Game_Flag_Query(kFlagDR06toDR04)) { Footstep_Sound_Override_On(3); Actor_Set_Immunity_To_Obstacles(kActorMcCoy, true); Actor_Face_Heading(kActorMcCoy, 512, false); Loop_Actor_Travel_Stairs(kActorMcCoy, 7, false, kAnimationModeIdle); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -851.0f, 71.64f, 647.0f, 0, false, false, 0); Actor_Face_Heading(kActorMcCoy, 0, false); Loop_Actor_Travel_Stairs(kActorMcCoy, 7, false, kAnimationModeIdle); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -774.85f, 7.18f, 386.67f, 0, false, false, 0); Actor_Set_Immunity_To_Obstacles(kActorMcCoy, false); Footstep_Sound_Override_Off(); } } Game_Flag_Reset(kFlagDR01toDR04); Game_Flag_Reset(kFlagDR05toDR04); Game_Flag_Reset(kFlagDR06toDR04); }
void SceneScriptUG15::SceneFrameAdvanced(int frame) { if (Actor_Query_Goal_Number(kActorFreeSlotA) == 300) { float x, y, z; Actor_Query_XYZ(kActorMcCoy, &x, &y, &z); if (-160.0f <= x && z < 220.0f ) { Actor_Set_Goal_Number(kActorFreeSlotA, 301); } } if (frame == 61) { Ambient_Sounds_Play_Sound(583, 80, 0, 0, 99); } if (Game_Flag_Query(677) && !Game_Flag_Query(682)) { float x, y, z; Actor_Query_XYZ(kActorMcCoy, &x, &y, &z); if (-180.0f <= x && z < 220.0f && !Game_Flag_Query(724) ) { Game_Flag_Set(724); Game_Flag_Set(682); Scene_Loop_Set_Default(3); Scene_Loop_Start_Special(kSceneLoopModeOnce, 2, true); Actor_Set_Goal_Number(kActorMcCoy, 390); Actor_Query_XYZ(kActorFreeSlotA, &x, &y, &z); if (-200.0f < x && -62.0f > x ) { Actor_Set_Goal_Number(kActorFreeSlotA, 309); } } } // return false; }