/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #include "bladerunner/script/scene_script.h" namespace BladeRunner { void SceneScriptHF05::InitializeScene() { if (Game_Flag_Query(530)) { Setup_Scene_Information(257.0f, 40.63f, 402.0f, 1000); } else if (Game_Flag_Query(358)) { Setup_Scene_Information(330.0f, 40.63f, -107.0f, 603); } else { Setup_Scene_Information(483.0f, 40.63f, -189.0f, 600); } Scene_Exit_Add_2D_Exit(0, 443, 270, 515, 350, 0); if (Global_Variable_Query(kVariableChapter) > 3) { Scene_Exit_Add_2D_Exit(1, 367, 298, 399, 349, 2); } Scene_Exit_Add_2D_Exit(2, 589, 0, 639, 479, 1); Ambient_Sounds_Add_Looping_Sound(103, 40, 1, 1); if (Game_Flag_Query(369)) { Scene_Loop_Set_Default(5); sub_404474(); } else if (Game_Flag_Query(559)) { Scene_Loop_Set_Default(2); sub_404474(); } else { Scene_Loop_Set_Default(0); } } void SceneScriptHF05::SceneLoaded() { Obstacle_Object("MAINBASE", true); Unobstacle_Object("BTIRES02", true); Unobstacle_Object("LFTIRE02", true); if (Game_Flag_Query(369)) { Unobstacle_Object("MONTE CARLO DRY", true); } else { Unobstacle_Object("OBSTACLE_HOLE", true); } Clickable_Object("TOP CON"); } bool SceneScriptHF05::MouseClick(int x, int y) { return false; } bool SceneScriptHF05::ClickedOn3DObject(const char *objectName, bool a2) { if (Object_Query_Click("TOP CON", objectName) == 1) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 95.0f, 40.63f, 308.0f, 0, 1, false, 0)) { Actor_Face_Object(kActorMcCoy, "TOP CON", true); if (Actor_Query_In_Set(kActorCrazylegs, 41) && Actor_Query_Goal_Number(kActorCrazylegs) != 1 && Actor_Query_Goal_Number(kActorCrazylegs) != 2) { Actor_Face_Actor(kActorCrazylegs, kActorMcCoy, true); Actor_Says(kActorCrazylegs, 480, 13); } else if (!Game_Flag_Query(662) || Game_Flag_Query(369)) { Actor_Change_Animation_Mode(kActorMcCoy, 23); Sound_Play(412, 100, 0, 0, 50); } else { Player_Loses_Control(); Actor_Set_Goal_Number(kActorOfficerLeary, 425); Game_Flag_Set(369); Game_Flag_Set(368); Obstacle_Object("OBSTACLE_HOLE", true); Unobstacle_Object("MONTE CARLO DRY", true); if (sub_4048C0()) { Loop_Actor_Walk_To_XYZ(sub_4048C0(), 181.54f, 40.63f, 388.09f, 0, 0, true, 0); Actor_Face_Actor(kActorMcCoy, sub_4048C0(), true); Actor_Face_Actor(sub_4048C0(), kActorMcCoy, true); Actor_Says(kActorMcCoy, 1785, 3); Actor_Says(kActorMcCoy, 1790, 3); } Actor_Face_Heading(kActorMcCoy, 0, false); Actor_Change_Animation_Mode(kActorMcCoy, 23); Scene_Loop_Set_Default(5); Scene_Loop_Start_Special(kSceneLoopModeOnce, 4, true); if (sub_4048C0()) { if (sub_4048C0() == 3) { Actor_Face_Heading(kActorDektora, 0, false); Ambient_Sounds_Play_Sound(147, 50, 99, 0, 0); Delay(3000); Actor_Face_Heading(kActorDektora, 0, false); Actor_Change_Animation_Mode(kActorDektora, 23); } else { Actor_Face_Heading(kActorLucy, 0, false); Ambient_Sounds_Play_Sound(147, 50, 99, 0, 0); Delay(3000); Actor_Face_Heading(kActorLucy, 0, false); Actor_Change_Animation_Mode(kActorLucy, 13); } Actor_Face_Actor(kActorMcCoy, sub_4048C0(), true); Actor_Says(kActorMcCoy, 1805, 3); } else { ADQ_Flush(); ADQ_Add(kActorVoiceOver, 940, -1); Ambient_Sounds_Play_Sound(147, 50, 99, 0, 0); Delay(1500); Loop_Actor_Walk_To_XYZ(kActorMcCoy, 181.54f, 40.63f, 388.09f, 0, 0, true, 0); Actor_Face_Heading(kActorMcCoy, 0, false); Actor_Change_Animation_Mode(kActorMcCoy, 23); Actor_Clue_Lose(kActorMcCoy, kClueBomb); } Player_Gains_Control(); } } return true; } return false; } bool SceneScriptHF05::ClickedOnActor(int actorId) { if (actorId == 9) { if (!Loop_Actor_Walk_To_Actor(kActorMcCoy, kActorCrazylegs, 60, 1, false)) { Actor_Face_Actor(kActorMcCoy, kActorCrazylegs, true); Actor_Face_Actor(kActorCrazylegs, kActorMcCoy, true); sub_402AE4(); } } return false; } bool SceneScriptHF05::ClickedOnItem(int itemId, bool a2) { return false; } bool SceneScriptHF05::ClickedOnExit(int exitId) { if (exitId == 0) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 483.0f, 40.63f, -189.0f, 0, 1, false, 0) && !Game_Flag_Query(684)) { Game_Flag_Set(313); Set_Enter(37, kSceneHF01); } return true; } if (exitId == 1) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 330.0f, 40.63f, -85.0f, 0, 1, false, 0) && !Game_Flag_Query(684)) { int v2 = sub_404858(); if (Game_Flag_Query(663) && Game_Flag_Query(368) && v2 != -1) { Actor_Face_Actor(kActorMcCoy, v2, true); Actor_Says(kActorMcCoy, 1810, 16); } Game_Flag_Set(359); Set_Enter(43, kSceneHF07); } return true; } if (exitId == 2) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 277.0f, 40.63f, 410.0f, 0, 1, false, 0) && !Game_Flag_Query(684)) { Game_Flag_Set(529); Set_Enter(42, kSceneHF06); } return true; } return false; } bool SceneScriptHF05::ClickedOn2DRegion(int region) { return false; } void SceneScriptHF05::SceneFrameAdvanced(int frame) { switch (frame) { case 126: Sound_Play(352, 90, -20, 70, 50); break; case 152: Sound_Play(346, 90, 0, 0, 50); break; case 156: Sound_Play(348, 47, 100, 100, 50); break; case 161: Sound_Play(345, 90, 0, 0, 50); break; case 176: Sound_Play(350, 32, 100, 100, 50); break; case 178: Sound_Play(355, 47, 100, 100, 50); break; case 179: Sound_Play(490, 90, 0, 0, 50); Music_Play(1, 50, 0, 2, -1, 0, 0); break; case 186: Sound_Play(343, 32, 100, 100, 50); break; case 209: Sound_Play(353, 90, 100, -20, 50); break; case 243: Sound_Play(349, 40, -20, -20, 50); break; case 261: Sound_Play(344, 47, -20, -20, 50); break; case 268: Sound_Play(351, 58, -20, -20, 50); break; case 269: Sound_Play(354, 43, -20, -20, 50); break; } //return true; } void SceneScriptHF05::ActorChangedGoal(int actorId, int newGoal, int oldGoal, bool currentSet) { if (actorId == 23 && newGoal == 430) { Game_Flag_Set(684); sub_4042E4(); } //return false; } void SceneScriptHF05::PlayerWalkedIn() { if (Game_Flag_Query(662)) { int v0 = sub_404858(); if (Game_Flag_Query(662) && v0 != -1) { Actor_Put_In_Set(v0, 41); Actor_Force_Stop_Walking(v0); if (Game_Flag_Query(312)) { Actor_Set_At_XYZ(v0, 506.81f, 40.63f, -140.92f, 0); Async_Actor_Walk_To_Waypoint(v0, 437, 36, 0); } else if (Game_Flag_Query(530)) { Actor_Set_At_XYZ(v0, 288.0f, 40.63f, 410.0f, 909); } else if (Game_Flag_Query(358)) { Actor_Set_At_XYZ(v0, 298.0f, 40.63f, -107.0f, 512); } else { Actor_Set_At_XYZ(v0, 284.0f, 40.63f, 286.0f, 0); } } if (Game_Flag_Query(684)) { sub_4042E4(); } else if (Actor_Clue_Query(kActorMcCoy, kClueSpinnerKeys) || Game_Flag_Query(559)) { if (Game_Flag_Query(559) && !Game_Flag_Query(663)) { Game_Flag_Set(663); Music_Play(1, 40, 0, 2, -1, 0, 0); Actor_Says(kActorOfficerGrayford, 200, 3); Actor_Says(kActorOfficerGrayford, 210, 3); Actor_Set_Goal_Number(kActorOfficerLeary, 420); if (sub_4048C0() == 3) { sub_403F0C(); } else if (sub_4048C0() == 6) { sub_40410C(); } } } else { sub_403A34(v0); } } else if (Game_Flag_Query(312) == 1) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 399.0f, 40.63f, -85.0f, 0, 0, false, 0); } else if (Game_Flag_Query(358)) { Actor_Set_At_XYZ(kActorMcCoy, 346.0f, 4.63f, -151.0f, 603); Loop_Actor_Travel_Stairs(kActorMcCoy, 4, 1, 0); } if (Actor_Query_In_Set(kActorCrazylegs, 41)) { if (Game_Flag_Query(562)) { if (!Game_Flag_Query(563) && Global_Variable_Query(kVariableChapter) == 3) { sub_402970(); Game_Flag_Set(563); } } else { sub_402370(); Game_Flag_Set(562); } } Game_Flag_Reset(312); Game_Flag_Reset(530); Game_Flag_Reset(358); //return false; } void SceneScriptHF05::PlayerWalkedOut() { if (Actor_Query_Goal_Number(kActorCrazylegs) == 210) { Actor_Set_Goal_Number(kActorCrazylegs, 2); } Ambient_Sounds_Remove_All_Non_Looping_Sounds(1); Ambient_Sounds_Remove_All_Looping_Sounds(1); } void SceneScriptHF05::DialogueQueueFlushed(int a1) { } void SceneScriptHF05::sub_402970() { Loop_Actor_Walk_To_Actor(kActorCrazylegs, kActorMcCoy, 72, 0, false); Actor_Face_Actor(kActorCrazylegs, kActorMcCoy, true); Actor_Face_Actor(kActorMcCoy, kActorCrazylegs, true); Actor_Says(kActorCrazylegs, 370, 3); Actor_Says(kActorMcCoy, 1855, 3); Actor_Says(kActorCrazylegs, 380, 12); Actor_Says(kActorCrazylegs, 390, 14); Actor_Says(kActorCrazylegs, 400, 15); Actor_Says(kActorCrazylegs, 410, 16); Actor_Says(kActorMcCoy, 1860, 3); Actor_Says(kActorCrazylegs, 420, 3); Actor_Says(kActorMcCoy, 1865, 3); } void SceneScriptHF05::sub_402AE4() { Dialogue_Menu_Clear_List(); if (Actor_Clue_Query(kActorMcCoy, kClueGrigoriansNote) == 1 && Global_Variable_Query(kVariableChapter) == 3) { DM_Add_To_List_Never_Repeat_Once_Selected(1180, 3, 6, 7); } if (Actor_Clue_Query(kActorMcCoy, kClueCrazylegsInterview1) == 1) { DM_Add_To_List_Never_Repeat_Once_Selected(1190, 2, 7, 4); } if (Actor_Clue_Query(kActorMcCoy, kClueDektorasDressingRoom) == 1) { DM_Add_To_List_Never_Repeat_Once_Selected(1200, 5, 5, 3); } if (Actor_Clue_Query(kActorMcCoy, kClueLucy) == 1 && Actor_Query_Goal_Number(kActorLucy) != 599) { DM_Add_To_List_Never_Repeat_Once_Selected(1210, 4, 6, 2); } if (Actor_Clue_Query(kActorMcCoy, kClueGrigoriansResources) == 1 || (Actor_Clue_Query(kActorMcCoy, kClueGrigoriansNote) == 1 && Global_Variable_Query(kVariableChapter) == 3)) { DM_Add_To_List_Never_Repeat_Once_Selected(1220, -1, 2, 8); } if (Actor_Clue_Query(kActorMcCoy, kClueCarRegistration1) == 1 || Actor_Clue_Query(kActorMcCoy, kClueCarRegistration3) == 1) { DM_Add_To_List_Never_Repeat_Once_Selected(1230, 4, 7, -1); } if (!Dialogue_Menu_Query_List_Size()) { Actor_Says(kActorMcCoy, 1880, 15); Actor_Says(kActorCrazylegs, 490, 3); Actor_Says(kActorMcCoy, 1885, 3); Actor_Says(kActorCrazylegs, 500, 16); return; } Dialogue_Menu_Add_DONE_To_List(1240); Dialogue_Menu_Appear(320, 240); int answer = Dialogue_Menu_Query_Input(); Dialogue_Menu_Disappear(); switch (answer) { case 1180: Actor_Says(kActorMcCoy, 1890, 23); Actor_Says(kActorCrazylegs, 510, 3); Actor_Says(kActorMcCoy, 1920, 23); Actor_Says(kActorMcCoy, 1925, 3); Actor_Says(kActorCrazylegs, 530, 12); Actor_Says(kActorMcCoy, 1930, 18); Actor_Says(kActorCrazylegs, 540, 14); Actor_Says(kActorMcCoy, 1935, 14); Actor_Says(kActorCrazylegs, 550, 16); Actor_Says(kActorMcCoy, 1940, 15); Actor_Says(kActorMcCoy, 1945, -1); Actor_Says(kActorCrazylegs, 560, 15); Actor_Says(kActorCrazylegs, 570, 16); Actor_Says(kActorMcCoy, 1950, 17); sub_403738(); break; case 1190: Actor_Says(kActorMcCoy, 1895, 0); Actor_Says(kActorCrazylegs, 620, 3); Actor_Says(kActorCrazylegs, 630, 12); Actor_Says(kActorMcCoy, 2000, 13); Actor_Says(kActorCrazylegs, 640, 14); Actor_Says(kActorCrazylegs, 650, 15); Actor_Says(kActorCrazylegs, 660, 16); Actor_Says(kActorMcCoy, 2005, 0); Actor_Says(kActorMcCoy, 2010, 3); Actor_Says(kActorCrazylegs, 670, 3); Actor_Says(kActorCrazylegs, 680, 12); Actor_Says(kActorCrazylegs, 690, 14); Actor_Says(kActorMcCoy, 2015, 14); Actor_Says(kActorCrazylegs, 700, 15); Actor_Says(kActorMcCoy, 2020, 18); break; case 1200: Actor_Says(kActorMcCoy, 1900, 23); Actor_Says(kActorCrazylegs, 710, 16); Actor_Says(kActorMcCoy, 2025, 0); Actor_Says(kActorCrazylegs, 720, 3); Actor_Says(kActorCrazylegs, 730, 12); break; case 1210: Actor_Says(kActorMcCoy, 1905, 23); Actor_Says(kActorCrazylegs, 740, 14); Actor_Says(kActorMcCoy, 2030, 13); Actor_Says(kActorCrazylegs, 750, 15); Actor_Says(kActorMcCoy, 2035, 18); Actor_Says(kActorCrazylegs, 760, 16); Actor_Says(kActorCrazylegs, 770, 3); Actor_Says(kActorMcCoy, 2040, 0); break; case 1220: Actor_Says(kActorMcCoy, 1910, 3); Actor_Says(kActorCrazylegs, 780, 12); Actor_Says(kActorMcCoy, 2045, 17); Actor_Says(kActorMcCoy, 2050, 3); Actor_Says(kActorCrazylegs, 790, 14); Actor_Says(kActorMcCoy, 2055, 19); Actor_Says(kActorMcCoy, 2060, -1); Actor_Says(kActorCrazylegs, 800, 15); Actor_Says(kActorMcCoy, 2065, 18); Actor_Says(kActorMcCoy, 2070, 14); Actor_Says(kActorCrazylegs, 810, 16); sub_403738(); break; case 1230: Actor_Says(kActorMcCoy, 1915, 12); if (Actor_Clue_Query(kActorMcCoy, kClueCarRegistration1)) { Actor_Says(kActorCrazylegs, 820, 3); Actor_Says(kActorMcCoy, 2075, 13); Actor_Says(kActorCrazylegs, 830, 12); Actor_Says(kActorCrazylegs, 840, 14); Actor_Says(kActorCrazylegs, 850, 15); Actor_Says(kActorMcCoy, 2080, 3); Actor_Says(kActorCrazylegs, 860, 16); Actor_Says(kActorCrazylegs, 870, 3); } else if (Actor_Clue_Query(kActorMcCoy, kClueCarRegistration3)) { Actor_Says(kActorCrazylegs, 880, 12); Actor_Says(kActorCrazylegs, 890, 14); Actor_Says(kActorMcCoy, 2085, 3); Actor_Says(kActorCrazylegs, 900, 15); Actor_Says(kActorMcCoy, 2090, 19); Actor_Says(kActorCrazylegs, 910, 16); Actor_Says(kActorMcCoy, 2095, 14); Actor_Says(kActorCrazylegs, 920, 3); Actor_Says(kActorMcCoy, 2100, 15); Actor_Says(kActorCrazylegs, 930, 12); Actor_Says(kActorCrazylegs, 940, 14); Actor_Says(kActorMcCoy, 2105, 3); Actor_Says(kActorCrazylegs, 950, 15); Actor_Says(kActorMcCoy, 2110, 0); Actor_Says(kActorCrazylegs, 960, 16); } break; } } void SceneScriptHF05::sub_403738() { Dialogue_Menu_Clear_List(); DM_Add_To_List_Never_Repeat_Once_Selected(1250, -1, -1, 10); DM_Add_To_List_Never_Repeat_Once_Selected(1260, 10, 5, -1); Dialogue_Menu_Appear(320, 240); int answer = Dialogue_Menu_Query_Input(); Dialogue_Menu_Disappear(); if (answer == 1250) { Actor_Says(kActorMcCoy, 1955, 17); Actor_Says(kActorMcCoy, 1960, 23); Item_Pickup_Spin_Effect(986, 315, 327); Delay(2000); Actor_Says(kActorMcCoy, 1980, 23); Actor_Says(kActorMcCoy, 1985, 3); Actor_Says(kActorCrazylegs, 580, 3); Actor_Says(kActorCrazylegs, 590, 15); Actor_Says(kActorMcCoy, 1990, 17); Actor_Says(kActorCrazylegs, 600, 16); Actor_Says(kActorMcCoy, 1995, 3); Game_Flag_Set(165); Actor_Put_In_Set(kActorCrazylegs, 67); Actor_Set_At_XYZ(kActorCrazylegs, -315.15f, 0.0f, 241.06f, 583); Actor_Set_Goal_Number(kActorCrazylegs, 699); Game_Flag_Set(652); if (Game_Flag_Query(kFlagSpinnerToNR01)) { Set_Enter(54, kSceneNR01); } else { Game_Flag_Set(313); Set_Enter(37, kSceneHF01); } } else if (answer == 1260) { Actor_Says(kActorMcCoy, 1965, 12); Actor_Says(kActorMcCoy, 1970, 3); Actor_Says(kActorMcCoy, 1975, 3); Actor_Says(kActorCrazylegs, 610, 16); } } int SceneScriptHF05::sub_404858() { if (Global_Variable_Query(kVariableAffectionTowards) == 2 && Actor_Query_Goal_Number(kActorDektora) != 599) { return kActorDektora; } if (Global_Variable_Query(kVariableAffectionTowards) == 3 && Actor_Query_Goal_Number(kActorLucy) != 599) { return kActorLucy; } return -1; } void SceneScriptHF05::sub_4042E4() { Actor_Force_Stop_Walking(kActorMcCoy); Actor_Put_In_Set(kActorOfficerLeary, kSetHF05); Actor_Set_At_XYZ(kActorOfficerLeary, 430.4f, 40.63f, -258.18f, 300); Actor_Put_In_Set(kActorOfficerGrayford, kSetHF05); Actor_Set_At_XYZ(kActorOfficerGrayford, 526.4f, 37.18f, -138.18f, 300); ADQ_Flush(); ADQ_Add(kActorOfficerGrayford, 260, -1); Player_Loses_Control(); Non_Player_Actor_Combat_Mode_On(kActorOfficerLeary, kActorCombatStateUncover, true, kActorMcCoy, 4, kAnimationModeCombatIdle, kAnimationModeCombatWalk, kAnimationModeCombatRun, 0, 0, 100, 100, 1200, true); Non_Player_Actor_Combat_Mode_On(kActorOfficerGrayford, kActorCombatStateUncover, true, kActorMcCoy, 4, kAnimationModeCombatIdle, kAnimationModeCombatWalk, kAnimationModeCombatRun, 0, 0, 100, 100, 300, true); } void SceneScriptHF05::sub_403F0C() { Actor_Face_Actor(kActorMcCoy, kActorDektora, true); Actor_Face_Actor(kActorDektora, kActorMcCoy, true); Actor_Says(kActorDektora, 2660, 12); Actor_Says(kActorMcCoy, 8990, 3); Actor_Says(kActorDektora, 2670, 13); Actor_Says(kActorDektora, 2680, 17); Actor_Says(kActorMcCoy, 8995, 14); Actor_Says(kActorDektora, 2690, 15); Actor_Says_With_Pause(kActorMcCoy, 9000, 1.0f, 16); Actor_Says_With_Pause(kActorMcCoy, 9005, 1.0f, 19); Actor_Says(kActorMcCoy, 1765, 17); Actor_Says(kActorDektora, 160, 12); Actor_Says(kActorMcCoy, 1770, 15); Actor_Says(kActorMcCoy, 1775, 3); Actor_Says(kActorDektora, 170, 3); Actor_Says_With_Pause(kActorMcCoy, 1780, 1.0f, 18); } void SceneScriptHF05::sub_40410C() { Actor_Face_Actor(kActorMcCoy, kActorLucy, true); Actor_Face_Actor(kActorLucy, kActorMcCoy, true); Actor_Says(kActorLucy, 400, 16); Actor_Says(kActorMcCoy, 1750, 14); Actor_Says(kActorLucy, 410, 12); Actor_Says(kActorLucy, 420, 14); Actor_Says(kActorMcCoy, 1755, 16); Actor_Says(kActorLucy, 430, 18); Actor_Says_With_Pause(kActorMcCoy, 1760, 1.0f, 15); Actor_Says(kActorMcCoy, 1765, 17); Actor_Says(kActorLucy, 440, 3); Actor_Says(kActorMcCoy, 1770, 15); Actor_Says(kActorMcCoy, 1775, 3); Actor_Says(kActorLucy, 450, 17); Actor_Says_With_Pause(kActorMcCoy, 1780, 1.0f, 18); } void SceneScriptHF05::sub_403A34(int actorId) { if (actorId != -1 && Actor_Query_In_Set(kActorCrazylegs, 41)) { Async_Actor_Walk_To_Waypoint(actorId, 437, 36, 0); Loop_Actor_Walk_To_Waypoint(kActorMcCoy, 437, 0, 0, false); Actor_Face_Actor(kActorCrazylegs, kActorMcCoy, true); Actor_Face_Actor(kActorMcCoy, kActorCrazylegs, true); Actor_Face_Actor(actorId, kActorCrazylegs, true); Actor_Says(kActorCrazylegs, 0, 3); Actor_Says(kActorCrazylegs, 10, 12); Actor_Says(kActorMcCoy, 1715, 19); Actor_Says(kActorMcCoy, 1720, -1); Actor_Says(kActorCrazylegs, 20, 14); Actor_Says(kActorCrazylegs, 30, 15); Actor_Says(kActorMcCoy, 1725, 3); Actor_Says(kActorCrazylegs, 40, 16); Actor_Says(kActorCrazylegs, 50, 3); Actor_Says(kActorCrazylegs, 60, 12); Actor_Says(kActorCrazylegs, 70, 13); Actor_Says(kActorMcCoy, 1730, 3); Loop_Actor_Walk_To_Actor(kActorCrazylegs, kActorMcCoy, 28, 0, false); Item_Pickup_Spin_Effect(986, 315, 327); Actor_Says(kActorCrazylegs, 80, 23); Actor_Clue_Acquire(kActorMcCoy, kClueSpinnerKeys, 1, kActorCrazylegs); Actor_Says(kActorCrazylegs, 90, 15); Actor_Says(kActorMcCoy, 1735, 17); Actor_Says(kActorCrazylegs, 100, 16); Actor_Says(kActorCrazylegs, 110, 3); Actor_Face_Actor(actorId, kActorMcCoy, true); if (actorId == kActorDektora) { Actor_Says(kActorDektora, 90, 3); } else { Actor_Says(kActorLucy, 380, 3); } Actor_Says(kActorMcCoy, 1740, 14); Actor_Says(kActorCrazylegs, 120, 12); Actor_Set_Goal_Number(kActorCrazylegs, 2); if (actorId == kActorDektora) { Actor_Says(kActorDektora, 100, 3); } else { Actor_Says(kActorLucy, 390, 3); } Actor_Face_Actor(kActorMcCoy, actorId, true); Actor_Says(kActorMcCoy, 1745, 3); Async_Actor_Walk_To_XYZ(actorId, 309.0f, 40.63f, 402.0f, 0, false); Loop_Actor_Walk_To_XYZ(kActorMcCoy, 277.0f, 40.63f, 410.0f, 0, 0, false, 0); Game_Flag_Set(529); Set_Enter(42, kSceneHF06); } } void SceneScriptHF05::sub_402370() { Player_Loses_Control(); if (Global_Variable_Query(kVariableChapter) == 3) { ADQ_Flush(); ADQ_Add(kActorCrazylegs, 130, 18); ADQ_Add(kActorCrazylegs, 140, 18); ADQ_Add(kActorCrazylegs, 150, 18); ADQ_Add(kActorCrazylegs, 160, 17); } Loop_Actor_Walk_To_XYZ(kActorMcCoy, 307.0f, 40.63f, 184.0f, 0, 0, false, 0); Loop_Actor_Walk_To_Actor(kActorCrazylegs, kActorMcCoy, 72, 0, false); Ambient_Sounds_Play_Sound(149, 99, 99, 0, 0); Actor_Face_Actor(kActorCrazylegs, kActorMcCoy, true); Actor_Face_Actor(kActorMcCoy, kActorCrazylegs, true); Actor_Says(kActorCrazylegs, 170, 3); Actor_Says(kActorCrazylegs, 180, 12); Actor_Says(kActorCrazylegs, 190, 14); Actor_Says(kActorCrazylegs, 200, 15); Actor_Says(kActorMcCoy, 1815, 12); Actor_Says(kActorCrazylegs, 210, 16); Actor_Says(kActorMcCoy, 1820, -1); Actor_Says(kActorCrazylegs, 220, 3); Actor_Says(kActorCrazylegs, 230, 12); Actor_Says(kActorCrazylegs, 240, 14); Actor_Says(kActorMcCoy, 1825, 0); Actor_Says(kActorCrazylegs, 250, 15); Actor_Face_Object(kActorCrazylegs, "MONTE CARLO DRY", true); Actor_Says(kActorCrazylegs, 260, 16); Actor_Face_Object(kActorMcCoy, "MONTE CARLO DRY", true); Actor_Says(kActorMcCoy, 1830, 0); Actor_Face_Actor(kActorCrazylegs, kActorMcCoy, true); Actor_Face_Actor(kActorMcCoy, kActorCrazylegs, true); Actor_Says(kActorCrazylegs, 270, 3); Actor_Says(kActorCrazylegs, 280, 12); Async_Actor_Walk_To_XYZ(kActorCrazylegs, 276.0f, 40.63f, 182.0f, 12, false); Loop_Actor_Walk_To_XYZ(kActorMcCoy, 335.0f, 40.63f, 131.0f, 12, 0, false, 0); Actor_Face_Object(kActorCrazylegs, "MONTE CARLO DRY", true); Actor_Face_Object(kActorMcCoy, "MONTE CARLO DRY", true); Actor_Says(kActorCrazylegs, 290, 14); Actor_Says(kActorCrazylegs, 300, 15); Actor_Says(kActorCrazylegs, 310, 16); Actor_Says(kActorMcCoy, 1835, 12); Actor_Face_Actor(kActorCrazylegs, kActorMcCoy, true); Actor_Says(kActorCrazylegs, 320, 3); Actor_Face_Actor(kActorMcCoy, kActorCrazylegs, true); Actor_Says(kActorCrazylegs, 330, 12); Actor_Says(kActorMcCoy, 1840, 3); Actor_Says(kActorCrazylegs, 340, 14); Actor_Says(kActorMcCoy, 1845, 3); Actor_Says(kActorCrazylegs, 350, 15); Actor_Says(kActorCrazylegs, 360, 16); Actor_Says(kActorMcCoy, 1850, 3); Player_Gains_Control(); } void SceneScriptHF05::sub_404474() { Ambient_Sounds_Add_Sound(87, 20, 80, 20, 100, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Speech_Sound(23, 250, 5, 70, 7, 10, -50, 50, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(23, 330, 5, 70, 7, 10, -50, 50, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(23, 340, 5, 90, 7, 10, -50, 50, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(23, 360, 5, 70, 7, 10, -50, 50, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(24, 380, 5, 70, 7, 10, -50, 50, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(24, 510, 5, 70, 7, 10, -50, 50, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(38, 80, 5, 70, 7, 10, -50, 50, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(38, 160, 5, 70, 7, 10, -50, 50, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(38, 280, 5, 70, 7, 10, -50, 50, -101, -101, 1, 1); } int SceneScriptHF05::sub_4048C0() { if (Actor_Query_In_Set(kActorDektora, 41) == 1 && Actor_Query_Goal_Number(kActorDektora) != 599) { return kActorDektora; } if (Actor_Query_In_Set(kActorLucy, 41) == 1 && Actor_Query_Goal_Number(kActorLucy) != 599) { return kActorLucy; } return kActorMcCoy; } } // End of namespace BladeRunner