2014-05-25 15:01:06 +02:00
|
|
|
/* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-02-10 20:34:28 +01:00
|
|
|
#include "bladerunner/script/scene_script.h"
|
2014-05-25 15:01:06 +02:00
|
|
|
|
|
|
|
namespace BladeRunner {
|
|
|
|
|
2018-02-13 23:08:37 +01:00
|
|
|
enum kRC01Loops {
|
|
|
|
kRC01LoopInshotWithCrowd = 0,
|
|
|
|
kRC01LoopWithCrowd = 1,
|
|
|
|
kRC01LoopDoorAnimWithCrowd = 3,
|
|
|
|
kRC01LoopOutshotWithCrowd = 4,
|
|
|
|
kRC01LoopInshotNoCrowd = 5,
|
|
|
|
kRC01LoopNoCrowd = 6,
|
|
|
|
kRC01LoopDoorAnimNoCrowd = 8,
|
|
|
|
kRC01LoopOutshotNoCrowd = 9,
|
|
|
|
kRC01LoopNoCrowdNoSpinner = 10
|
|
|
|
};
|
|
|
|
|
|
|
|
enum kRC01Exits {
|
|
|
|
kRC01ExitRC02 = 0,
|
|
|
|
kRC01ExitSpinner = 1,
|
|
|
|
kRC01ExitRC03 = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
enum kRC01Regions {
|
|
|
|
kRC01RegionCrowd = 0
|
|
|
|
};
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
void SceneScriptRC01::InitializeScene() {
|
2018-01-28 20:59:12 +01:00
|
|
|
#if BLADERUNNER_DEBUG_GAME
|
2016-09-10 18:33:04 +02:00
|
|
|
//TODO: not part of game, remove
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Set(kFlagIntroPlayed); // force skip intro
|
2018-11-21 23:16:15 +01:00
|
|
|
Game_Flag_Set(kFlagRC02toRC01); // no landing
|
2018-01-14 12:12:06 +01:00
|
|
|
// Game_Flag_Set(kFlagRC01PoliceDone);
|
2018-01-31 00:37:19 +01:00
|
|
|
// Game_Flag_Set(kFlagKIAPrivacyAddon);
|
2018-02-13 23:08:37 +01:00
|
|
|
// Game_Flag_Set(kFlagZubenRetired);
|
2019-01-13 20:38:17 +01:00
|
|
|
// Game_Flag_Set(kFlagSpinnerAtMA01);
|
2018-02-25 19:31:52 +01:00
|
|
|
// Set_Enter(kSetMA02_MA04, kSceneMA04);
|
2018-01-31 00:37:19 +01:00
|
|
|
|
2018-03-07 19:12:03 +01:00
|
|
|
Spinner_Set_Selectable_Destination_Flag(0, true);
|
|
|
|
Spinner_Set_Selectable_Destination_Flag(1, true);
|
|
|
|
Spinner_Set_Selectable_Destination_Flag(2, true);
|
|
|
|
Spinner_Set_Selectable_Destination_Flag(3, true);
|
|
|
|
Spinner_Set_Selectable_Destination_Flag(4, true);
|
|
|
|
Spinner_Set_Selectable_Destination_Flag(5, true);
|
|
|
|
Spinner_Set_Selectable_Destination_Flag(6, true);
|
|
|
|
Spinner_Set_Selectable_Destination_Flag(7, true);
|
|
|
|
Spinner_Set_Selectable_Destination_Flag(8, true);
|
|
|
|
Spinner_Set_Selectable_Destination_Flag(9, true);
|
2018-02-13 23:08:37 +01:00
|
|
|
|
2018-01-31 00:37:19 +01:00
|
|
|
// ESPER_Flag_To_Activate();
|
2018-02-10 20:34:28 +01:00
|
|
|
// Voight_Kampff_Activate(kActorLucy, 50);
|
2018-02-25 19:31:52 +01:00
|
|
|
|
|
|
|
// Global_Variable_Set(kVariableChapter, 2);
|
|
|
|
// Chapter_Enter(2, kSetRC03, kSceneRC03);
|
|
|
|
|
2019-01-14 21:09:12 +01:00
|
|
|
// Set_Enter(kSetPS10_PS11_PS12_PS13, 73);
|
2018-03-24 16:51:54 +01:00
|
|
|
|
2016-09-20 00:33:06 +02:00
|
|
|
#endif
|
|
|
|
|
2017-09-10 20:19:02 +02:00
|
|
|
if (!Game_Flag_Query(kFlagIntroPlayed)) {
|
|
|
|
Ambient_Sounds_Remove_All_Non_Looping_Sounds(true);
|
2015-02-06 15:31:43 +01:00
|
|
|
Ambient_Sounds_Remove_All_Looping_Sounds(1);
|
2018-01-14 12:12:06 +01:00
|
|
|
Outtake_Play(kOuttakeWestwood, true, -1);
|
|
|
|
Outtake_Play(kOuttakeBladeRunner, true, -1);
|
|
|
|
Outtake_Play(kOuttakeIntro, false, -1);
|
|
|
|
Outtake_Play(kOuttakeDescent, true, -1);
|
2015-02-06 15:31:43 +01:00
|
|
|
}
|
2018-01-14 12:12:06 +01:00
|
|
|
if (Game_Flag_Query(kFlagRC02toRC01)) {
|
2016-09-10 18:33:04 +02:00
|
|
|
Setup_Scene_Information(-171.16f, 5.55f, 27.28f, 616);
|
2018-01-14 12:12:06 +01:00
|
|
|
} else if (Game_Flag_Query(kFlagRC03toRC01)) {
|
2016-09-10 18:33:04 +02:00
|
|
|
Setup_Scene_Information(-471.98f, -0.30f, 258.15f, 616);
|
2015-02-06 15:31:43 +01:00
|
|
|
} else {
|
2016-09-10 18:33:04 +02:00
|
|
|
Setup_Scene_Information(-10.98f, -0.30f, 318.15f, 616);
|
2015-02-06 15:31:43 +01:00
|
|
|
}
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Exit_Add_2D_Exit(kRC01ExitRC02, 314, 145, 340, 255, 0);
|
2019-01-13 20:38:17 +01:00
|
|
|
if (Game_Flag_Query(kFlagSpinnerAtRC01)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Exit_Add_2D_Exit(kRC01ExitSpinner, 482, 226, 639, 280, 2);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2018-02-13 23:08:37 +01:00
|
|
|
if (Global_Variable_Query(kVariableChapter) > 1 && Game_Flag_Query(710)) {
|
|
|
|
Scene_Exit_Add_2D_Exit(kRC01ExitRC03, 0, 0, 10, 479, 3);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2017-09-10 20:19:02 +02:00
|
|
|
if (!Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_2D_Region_Add(kRC01RegionCrowd, 0, 294, 296, 479);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2015-02-06 15:31:43 +01:00
|
|
|
|
2017-09-10 20:19:02 +02:00
|
|
|
Ambient_Sounds_Remove_All_Non_Looping_Sounds(false);
|
2015-02-06 15:31:43 +01:00
|
|
|
Ambient_Sounds_Add_Looping_Sound(54, 30, 0, 1); // CTRAIN1.AUD
|
|
|
|
|
2017-09-10 20:19:02 +02:00
|
|
|
if (!Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2015-02-06 15:31:43 +01:00
|
|
|
Ambient_Sounds_Add_Sound(181, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_0470R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(182, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_0480R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(183, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_0500R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(184, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_0540R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(185, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_0560R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(186, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_0870R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(188, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_0900R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(189, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_0940R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(190, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_0960R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(191, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_1070R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(192, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_1080R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(193, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_1100R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(194, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_1140R.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(195, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); // 67_1160R.AUD
|
|
|
|
}
|
|
|
|
|
|
|
|
Ambient_Sounds_Add_Looping_Sound(81, 60, 100, 1); // RCAMBR1.AUD
|
2016-09-10 18:33:04 +02:00
|
|
|
Ambient_Sounds_Add_Sound(82, 5, 30, 30, 50, -100, 100, -101, -101, 0, 0); // RCCARBY1.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(83, 5, 30, 30, 55, -100, 100, -101, -101, 0, 0); // RCCARBY2.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(84, 5, 30, 30, 50, -100, 100, -101, -101, 0, 0); // RCCARBY3.AUD
|
2015-02-06 15:31:43 +01:00
|
|
|
Ambient_Sounds_Add_Sound(67, 10, 50, 30, 50, -100, 100, -101, -101, 0, 0); // SPIN2A.AUD
|
|
|
|
Ambient_Sounds_Add_Sound(87, 20, 80, 20, 40, -100, 100, -101, -101, 0, 0); // SIREN2.AUD
|
|
|
|
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-01-14 12:12:06 +01:00
|
|
|
if (!Game_Flag_Query(kFlagRC02toRC01) && !Game_Flag_Query(kFlagRC03toRC01)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeLoseControl, kRC01LoopInshotNoCrowd, false);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2019-01-13 20:38:17 +01:00
|
|
|
if (Game_Flag_Query(kFlagSpinnerAtRC01)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Set_Default(kRC01LoopNoCrowd);
|
2016-09-10 18:33:04 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Set_Default(kRC01LoopNoCrowdNoSpinner);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2015-02-06 15:31:43 +01:00
|
|
|
} else {
|
2018-01-14 12:12:06 +01:00
|
|
|
if (!Game_Flag_Query(kFlagRC02toRC01) && !Game_Flag_Query(kFlagRC03toRC01)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeLoseControl, kRC01LoopInshotWithCrowd, false);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Set_Default(kRC01LoopWithCrowd);
|
2015-02-06 15:31:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
I_Sez("Blade Runner");
|
|
|
|
I_Sez("");
|
|
|
|
I_Sez("From the dark recesses of David Leary's imagination comes a game unlike any");
|
|
|
|
I_Sez("other. Blade Runner immerses you in the underbelly of future Los Angeles. Right");
|
|
|
|
I_Sez("from the start, the story pulls you in with graphic descriptions of a");
|
|
|
|
I_Sez("grandmother doing the shimmy in her underwear, child molestation, brutal");
|
|
|
|
I_Sez("cold-blooded slaying of innocent animals, vomiting on desks, staring at a");
|
|
|
|
I_Sez("woman's ass, the list goes on. And when the game starts, the real fun begins -");
|
|
|
|
I_Sez("shoot down-on-their-luck homeless people and toss them into a dumpster. Watch");
|
|
|
|
I_Sez("with sadistic glee as a dog gets blown into chunky, bloody, bits by an");
|
|
|
|
I_Sez("explosive, and even murder a shy little girl who loves you. If you think David");
|
|
|
|
I_Sez("Leary is sick, and you like sick, this is THE game for you.");
|
|
|
|
I_Sez("");
|
|
|
|
I_Sez("JW: Don't forget the wasting of helpless mutated cripples in the underground.");
|
|
|
|
I_Sez("It's such a beautiful thing!");
|
|
|
|
I_Sez("");
|
|
|
|
I_Sez("DL: Go ahead. Just keep beating that snarling pit bull...ignore the foam");
|
|
|
|
I_Sez("around his jaws. There's room on the top shelf of my fridge for at least one");
|
|
|
|
I_Sez("more head... - Psychotic Dave");
|
|
|
|
I_Sez("");
|
2014-05-25 15:01:06 +02:00
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
void SceneScriptRC01::SceneLoaded() {
|
2016-09-10 18:33:04 +02:00
|
|
|
Obstacle_Object("HYDRANT02", true);
|
|
|
|
Obstacle_Object("PARKING METER 04", true);
|
|
|
|
Obstacle_Object("CHEVY PROP", true);
|
|
|
|
Obstacle_Object("PARKING METER 01", true);
|
|
|
|
Obstacle_Object("T-CAN01", true);
|
|
|
|
Obstacle_Object("BARICADE01", true);
|
|
|
|
Obstacle_Object("BARICADE02", true);
|
|
|
|
Obstacle_Object("DOOR LEFT", true);
|
|
|
|
Unobstacle_Object("BOX06", true);
|
2016-09-10 18:16:17 +02:00
|
|
|
Clickable_Object("DOORWAY01");
|
|
|
|
Clickable_Object("DOOR LEFT");
|
|
|
|
Clickable_Object("HYDRANT02");
|
|
|
|
Clickable_Object("T-CAN01");
|
|
|
|
Clickable_Object("BARICADE01");
|
|
|
|
Clickable_Object("70_1");
|
|
|
|
Clickable_Object("70_2");
|
|
|
|
Clickable_Object("70_3");
|
|
|
|
Clickable_Object("70_5");
|
|
|
|
Clickable_Object("70_6");
|
|
|
|
Unclickable_Object("BARICADE02");
|
|
|
|
Unclickable_Object("BARICADE05");
|
|
|
|
Unclickable_Object("SPINNER BODY");
|
|
|
|
Unclickable_Object("HORSE01");
|
|
|
|
Unclickable_Object("DOORWAY01");
|
2016-09-10 18:33:04 +02:00
|
|
|
Unobstacle_Object("DOORWAY01", true);
|
2016-09-10 18:16:17 +02:00
|
|
|
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2016-09-10 18:16:17 +02:00
|
|
|
Unclickable_Object("70_1");
|
|
|
|
Unclickable_Object("70_2");
|
|
|
|
Unclickable_Object("70_3");
|
|
|
|
Unclickable_Object("70_5");
|
|
|
|
Unclickable_Object("70_6");
|
|
|
|
Unclickable_Object("BARICADE01");
|
|
|
|
Unclickable_Object("BARICADE03");
|
|
|
|
Unclickable_Object("BARICADE04");
|
2016-09-10 18:33:04 +02:00
|
|
|
Unobstacle_Object("70_1", true);
|
|
|
|
Unobstacle_Object("70_2", true);
|
|
|
|
Unobstacle_Object("70_3", true);
|
|
|
|
Unobstacle_Object("70_5", true);
|
|
|
|
Unobstacle_Object("70_6", true);
|
|
|
|
Unobstacle_Object("BARICADE01", true);
|
|
|
|
Unobstacle_Object("BARICADE02", true);
|
|
|
|
Unobstacle_Object("BARICADE03", true);
|
|
|
|
Unobstacle_Object("BARICADE04", true);
|
|
|
|
Unobstacle_Object("BARICADE05", true);
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
|
|
|
|
2017-09-10 20:19:02 +02:00
|
|
|
if (!Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2016-09-10 18:16:17 +02:00
|
|
|
Preload(13);
|
|
|
|
Preload(14);
|
|
|
|
Preload(19);
|
|
|
|
Preload(582);
|
|
|
|
Preload(589);
|
|
|
|
}
|
|
|
|
|
2018-02-10 20:34:28 +01:00
|
|
|
if (!Game_Flag_Query(kFlagChromeDebrisTaken)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Item_Add_To_World(kItemChromeDebris, 938, kSetRC01, -148.60f, -0.30f, 225.15f, 256, 24, 24, false, true, false, true);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2016-09-10 18:16:17 +02:00
|
|
|
|
2017-09-10 20:19:02 +02:00
|
|
|
if (!Game_Flag_Query(kFlagIntroPlayed)) {
|
2016-09-10 18:33:04 +02:00
|
|
|
ADQ_Flush();
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Voice_Over(1830, kActorVoiceOver);
|
|
|
|
Actor_Voice_Over(1850, kActorVoiceOver);
|
2018-01-14 12:12:06 +01:00
|
|
|
if (!Game_Flag_Query(kFlagDirectorsCut)) {
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Voice_Over(1860, kActorVoiceOver);
|
2015-02-10 19:33:35 +01:00
|
|
|
I_Sez("MG: Is David Leary a self-respecting human or is he powered by rechargeable");
|
|
|
|
I_Sez("batteries?\n");
|
|
|
|
}
|
2017-09-10 20:19:02 +02:00
|
|
|
Game_Flag_Set(kFlagIntroPlayed);
|
2015-02-10 19:33:35 +01:00
|
|
|
}
|
2014-05-25 15:01:06 +02:00
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
bool SceneScriptRC01::MouseClick(int x, int y) {
|
2016-09-10 18:33:04 +02:00
|
|
|
return y >= 430;
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
bool SceneScriptRC01::ClickedOn3DObject(const char *objectName, bool a2) {
|
2016-09-10 18:16:17 +02:00
|
|
|
if (Object_Query_Click("BARICADE01", objectName)
|
2019-01-13 20:38:17 +01:00
|
|
|
|| Object_Query_Click("BARICADE03", objectName)
|
|
|
|
|| Object_Query_Click("BARICADE04", objectName)
|
|
|
|
|| Object_Query_Click("70_1", objectName)
|
|
|
|
|| Object_Query_Click("70_2", objectName)
|
|
|
|
|| Object_Query_Click("70_3", objectName)
|
|
|
|
|| Object_Query_Click("70_5", objectName)
|
|
|
|
|| Object_Query_Click("70_6", objectName)
|
|
|
|
) {
|
|
|
|
interrogateCrowd();
|
2016-09-10 18:16:17 +02:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Object_Query_Click("HYDRANT02", objectName)) {
|
2017-03-29 01:50:47 +02:00
|
|
|
if (!Loop_Actor_Walk_To_Scene_Object(kActorMcCoy, "HYDRANT02", 60, true, false)) {
|
|
|
|
if (Actor_Clue_Query(kActorMcCoy, kCluePaintTransfer)) {
|
|
|
|
Actor_Says(kActorMcCoy, 6975, 3);
|
2016-09-10 18:16:17 +02:00
|
|
|
} else {
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Face_Object(kActorMcCoy, "HYDRANT02", true);
|
|
|
|
Actor_Voice_Over(1880, kActorVoiceOver);
|
|
|
|
Actor_Voice_Over(1890, kActorVoiceOver);
|
2016-09-10 18:16:17 +02:00
|
|
|
I_Sez("JM: That McCoy--he's one funny guy! Jet-black fire truck, hehehehe...");
|
2017-04-02 18:17:43 +02:00
|
|
|
Actor_Clue_Acquire(kActorMcCoy, kCluePaintTransfer, true, -1);
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-09-10 18:33:04 +02:00
|
|
|
if (Object_Query_Click("DOOR LEFT", objectName)) {
|
2017-03-29 01:50:47 +02:00
|
|
|
if (!Loop_Actor_Walk_To_Scene_Object(kActorMcCoy, "DOOR LEFT", 48, true, false)) {
|
|
|
|
Actor_Face_Object(kActorMcCoy, "DOOR LEFT", true);
|
2018-02-13 23:08:37 +01:00
|
|
|
if (!Actor_Clue_Query(kActorMcCoy, kClueDoorForced2) && Actor_Query_In_Set(kActorOfficerLeary, kSetRC01) && Global_Variable_Query(kVariableChapter) > 0) {
|
2019-01-13 20:38:17 +01:00
|
|
|
Actor_Set_Goal_Number(kActorOfficerLeary, kGoalOfficerLearyDefault);
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true);
|
|
|
|
Actor_Says(kActorOfficerLeary, 0, 12);
|
|
|
|
Actor_Says(kActorMcCoy, 4495, 13);
|
2017-04-02 18:17:43 +02:00
|
|
|
Actor_Clue_Acquire(kActorMcCoy, kClueDoorForced2, true, kActorOfficerLeary);
|
2016-09-10 18:33:04 +02:00
|
|
|
} else {
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Says(kActorMcCoy, 8570, 14);
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
2017-04-02 18:17:43 +02:00
|
|
|
Actor_Clue_Acquire(kActorMcCoy, kClueDoorForced1, true, -1);
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-09-10 18:33:04 +02:00
|
|
|
if (Object_Query_Click("T-CAN01", objectName)) {
|
2017-03-29 01:50:47 +02:00
|
|
|
if (!Loop_Actor_Walk_To_Scene_Object(kActorMcCoy, "T-CAN01", 24, true, false)) {
|
|
|
|
Actor_Face_Object(kActorMcCoy, "T-CAN01", true);
|
|
|
|
Actor_Voice_Over(1810, kActorVoiceOver);
|
|
|
|
Actor_Voice_Over(1820, kActorVoiceOver);
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
bool SceneScriptRC01::ClickedOnActor(int actorId) {
|
2018-02-13 23:08:37 +01:00
|
|
|
if (actorId == kActorOfficerLeary && Global_Variable_Query(kVariableChapter) == 1) {
|
|
|
|
if (!Loop_Actor_Walk_To_Actor(kActorMcCoy, kActorOfficerLeary, 36, true, false)) {
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Face_Actor(kActorMcCoy, kActorOfficerLeary, true);
|
|
|
|
Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true);
|
2019-01-13 20:38:17 +01:00
|
|
|
if (Actor_Query_Goal_Number(kActorOfficerLeary) == kGoalOfficerLearyCrowdInterrogation) {
|
|
|
|
Actor_Set_Goal_Number(kActorOfficerLeary, kGoalOfficerLearyDefault);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2018-02-10 20:34:28 +01:00
|
|
|
if (Game_Flag_Query(kFlagGotOfficersStatement)) {
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Says(kActorMcCoy, 4535, 13);
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Set(KFlagMcCoyAndOfficerLearyTalking);
|
2017-03-29 01:50:47 +02:00
|
|
|
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);
|
2017-04-02 18:17:43 +02:00
|
|
|
Actor_Clue_Acquire(kActorMcCoy, kClueCrowdInterviewA, true, kActorOfficerLeary);
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Reset(KFlagMcCoyAndOfficerLearyTalking);
|
2017-03-29 01:50:47 +02:00
|
|
|
} 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);
|
2016-09-10 18:33:04 +02:00
|
|
|
I_Sez("JM: Did it have a huge, ugly piece of chrome on it?");
|
2017-04-02 18:17:43 +02:00
|
|
|
Actor_Clue_Acquire(kActorMcCoy, kClueCrowdInterviewB, true, kActorOfficerLeary);
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Reset(KFlagMcCoyAndOfficerLearyTalking);
|
2016-09-10 18:33:04 +02:00
|
|
|
} else {
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Says(kActorOfficerLeary, 90, 16);
|
2016-09-10 18:33:04 +02:00
|
|
|
I_Sez("JM: This officer has a talent for vivid metaphors.");
|
2018-02-10 20:34:28 +01:00
|
|
|
if (!Game_Flag_Query(KFlagMcCoyAndOfficerLearyArtMetaphor)) {
|
2016-09-10 18:33:04 +02:00
|
|
|
I_Sez("DL: What is that supposed to mean? I didn't write this line...");
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Says(kActorMcCoy, 4540, 16);
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Set(KFlagMcCoyAndOfficerLearyArtMetaphor);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Reset(KFlagMcCoyAndOfficerLearyTalking);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
} else {
|
2017-03-29 01:50:47 +02:00
|
|
|
I_Sez("MG: Hey, leave that officer alone. Can't you see he's busy?");
|
2017-03-28 17:50:04 +02:00
|
|
|
I_Sez("JM: (...mmm, donuts...)");
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Set(kFlagGotOfficersStatement);
|
2017-04-02 18:17:43 +02:00
|
|
|
Actor_Clue_Acquire(kActorMcCoy, kClueOfficersStatement, true, kActorOfficerLeary);
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Says(kActorMcCoy, 4515, 13);
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Set(KFlagMcCoyAndOfficerLearyTalking);
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Says(kActorOfficerLeary, 40, 13);
|
2018-02-10 20:34:28 +01:00
|
|
|
if (!Game_Flag_Query(kFlagRC02Discovered)) {
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Says(kActorOfficerLeary, 50, 14);
|
|
|
|
Actor_Says(kActorOfficerLeary, 60, 15);
|
2017-03-28 17:50:04 +02:00
|
|
|
I_Sez("MG: It's all fun and games until someone loses a tiger cub.");
|
2017-03-29 01:50:47 +02:00
|
|
|
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);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Reset(KFlagMcCoyAndOfficerLearyTalking);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
bool SceneScriptRC01::ClickedOnItem(int itemId, bool a2) {
|
2018-02-10 20:34:28 +01:00
|
|
|
if (itemId == kItemChromeDebris) {
|
2019-01-13 20:38:17 +01:00
|
|
|
Actor_Set_Goal_Number(kActorOfficerLeary, kGoalOfficerLearyDefault);
|
2018-02-13 23:08:37 +01:00
|
|
|
if (!Loop_Actor_Walk_To_Item(kActorMcCoy, kItemChromeDebris, 36, true, false)) {
|
2018-02-10 20:34:28 +01:00
|
|
|
Actor_Face_Item(kActorMcCoy, kItemChromeDebris, true);
|
2017-04-02 18:17:43 +02:00
|
|
|
Actor_Clue_Acquire(kActorMcCoy, kClueChromeDebris, true, -1);
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true);
|
|
|
|
Actor_Says(kActorOfficerLeary, 20, 12);
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Set(kFlagChromeDebrisTaken);
|
|
|
|
Item_Remove_From_World(kItemChromeDebris);
|
2016-09-10 18:33:04 +02:00
|
|
|
Item_Pickup_Spin_Effect(938, 426, 316);
|
|
|
|
I_Sez("JM: Chrome...is that what that is?");
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Says(kActorMcCoy, 4505, 13);
|
2016-09-10 18:33:04 +02:00
|
|
|
ADQ_Flush();
|
2017-03-29 01:50:47 +02:00
|
|
|
ADQ_Add(kActorOfficerLeary, 30, -1);
|
|
|
|
ADQ_Add(kActorMcCoy, 4510, 13);
|
2016-09-10 18:33:04 +02:00
|
|
|
I_Sez("JM: It's hard to imagine that thing on either a car or a horse.");
|
|
|
|
I_Sez("MG: McCoy! What a witty chap...");
|
|
|
|
I_Sez("JM: He keeps me chuckling non-stop!\n");
|
2017-03-29 01:50:47 +02:00
|
|
|
Loop_Actor_Walk_To_Actor(kActorOfficerLeary, kActorMcCoy, 36, 0, false);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-10 20:19:02 +02:00
|
|
|
void SceneScriptRC01::walkToCenter() {
|
2016-09-10 18:33:04 +02:00
|
|
|
Player_Loses_Control();
|
2019-01-14 21:09:12 +01:00
|
|
|
Game_Flag_Set(kFlagMcCoyAtRCxx);
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Set_Immunity_To_Obstacles(kActorMcCoy, true);
|
|
|
|
Loop_Actor_Walk_To_XYZ(kActorMcCoy, -151.98f, -0.3f, 318.15f, 0, 0, false, 0);
|
|
|
|
Actor_Set_Immunity_To_Obstacles(kActorMcCoy, false);
|
2016-09-10 18:33:04 +02:00
|
|
|
Player_Gains_Control();
|
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
bool SceneScriptRC01::ClickedOnExit(int exitId) {
|
2018-02-13 23:08:37 +01:00
|
|
|
if (exitId == kRC01ExitRC02) {
|
|
|
|
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -174.77f, 5.55f, 25.95f, 12, true, false, 0)) {
|
2016-09-10 18:33:04 +02:00
|
|
|
if (Game_Flag_Query(705)) {
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Says(kActorMcCoy, 8522, 14);
|
2016-09-10 18:33:04 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
switch (Global_Variable_Query(kVariableChapter)) {
|
2016-09-10 18:33:04 +02:00
|
|
|
case 1:
|
|
|
|
case 4:
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Set(kFlagRC01toRC02);
|
2018-02-13 23:08:37 +01:00
|
|
|
Set_Enter(kSetRC02_RC51, kSceneRC02);
|
2016-09-10 18:33:04 +02:00
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
case 3:
|
|
|
|
case 5:
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Says(kActorMcCoy, 8522, 12);
|
2016-09-10 18:33:04 +02:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
2018-02-13 23:08:37 +01:00
|
|
|
if (exitId == kRC01ExitSpinner) {
|
2016-09-10 18:33:04 +02:00
|
|
|
if (Game_Flag_Query(486)) {
|
2017-09-10 20:19:02 +02:00
|
|
|
Spinner_Set_Selectable_Destination_Flag(kSpinnerDestinationDNARow, true);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
I_Sez("MG: Leaving already? The fun is just beginning!");
|
2018-02-13 23:08:37 +01:00
|
|
|
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -151.98f, -0.3f, 318.15f, 0, true, false, 0)) {
|
2016-09-10 18:33:04 +02:00
|
|
|
Player_Loses_Control();
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Set_Immunity_To_Obstacles(kActorMcCoy, true);
|
|
|
|
Loop_Actor_Walk_To_XYZ(kActorMcCoy, -10.98f, -0.3f, 318.15f, 0, 0, false, 0);
|
2016-09-10 18:33:04 +02:00
|
|
|
if (Game_Flag_Query(486) && !Game_Flag_Query(660)) {
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Voice_Over(4310, kActorVoiceOver);
|
|
|
|
Actor_Voice_Over(4320, kActorVoiceOver);
|
|
|
|
Actor_Voice_Over(4330, kActorVoiceOver);
|
|
|
|
Actor_Voice_Over(4340, kActorVoiceOver);
|
|
|
|
Actor_Voice_Over(4350, kActorVoiceOver);
|
2016-09-10 18:33:04 +02:00
|
|
|
Game_Flag_Set(660);
|
|
|
|
}
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Set_Immunity_To_Obstacles(kActorMcCoy, false);
|
2016-09-10 18:33:04 +02:00
|
|
|
Player_Gains_Control();
|
2019-01-14 21:09:12 +01:00
|
|
|
Game_Flag_Reset(kFlagMcCoyAtCTxx);
|
|
|
|
Game_Flag_Reset(kFlagMcCoyAtRCxx);
|
|
|
|
Game_Flag_Reset(kFlagMcCoyAtMAxx);
|
|
|
|
Game_Flag_Reset(kFlagMcCoyAtPSxx);
|
2016-09-10 18:33:04 +02:00
|
|
|
int spinnerDest;
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
spinnerDest = Spinner_Interface_Choose_Dest(kRC01LoopDoorAnimNoCrowd, true);
|
2016-09-10 18:33:04 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
spinnerDest = Spinner_Interface_Choose_Dest(kRC01LoopDoorAnimWithCrowd, true);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2017-09-10 20:19:02 +02:00
|
|
|
|
|
|
|
switch (spinnerDest) {
|
|
|
|
case kSpinnerDestinationPoliceStation:
|
2019-01-14 21:09:12 +01:00
|
|
|
Game_Flag_Set(kFlagMcCoyAtPSxx);
|
2019-01-13 20:38:17 +01:00
|
|
|
Game_Flag_Reset(kFlagSpinnerAtRC01);
|
|
|
|
Game_Flag_Set(kFlagSpinnerAtPS01);
|
2018-02-13 23:08:37 +01:00
|
|
|
Set_Enter(kSetPS01, kScenePS01);
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotNoCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotWithCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case kSpinnerDestinationMcCoysApartment:
|
2019-01-14 21:09:12 +01:00
|
|
|
Game_Flag_Set(kFlagMcCoyAtMAxx);
|
2019-01-13 20:38:17 +01:00
|
|
|
Game_Flag_Reset(kFlagSpinnerAtRC01);
|
|
|
|
Game_Flag_Set(kFlagSpinnerAtMA01);
|
2018-02-13 23:08:37 +01:00
|
|
|
Set_Enter(kSetMA01, kSceneMA01);
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotNoCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotWithCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case kSpinnerDestinationChinatown:
|
2019-01-14 21:09:12 +01:00
|
|
|
Game_Flag_Set(kFlagMcCoyAtCTxx);
|
2019-01-13 20:38:17 +01:00
|
|
|
Game_Flag_Reset(kFlagSpinnerAtRC01);
|
|
|
|
Game_Flag_Set(kFlagSpinnerAtCT01);
|
2018-02-13 23:08:37 +01:00
|
|
|
Set_Enter(kSetCT01_CT12, kSceneCT01);
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotNoCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotWithCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case kSpinnerDestinationTyrellBuilding:
|
2019-01-14 21:09:12 +01:00
|
|
|
Game_Flag_Set(kFlagMcCoyAtTBxx);
|
2019-01-13 20:38:17 +01:00
|
|
|
Game_Flag_Reset(kFlagSpinnerAtRC01);
|
|
|
|
Game_Flag_Set(kFlagSpinnerAtTB02);
|
2018-02-13 23:08:37 +01:00
|
|
|
Set_Enter(kSetTB02_TB03, kSceneTB02);
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotNoCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotWithCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case kSpinnerDestinationAnimoidRow:
|
2019-01-14 21:09:12 +01:00
|
|
|
Game_Flag_Set(kFlagMcCoyAtARxx);
|
2019-01-13 20:38:17 +01:00
|
|
|
Game_Flag_Reset(kFlagSpinnerAtRC01);
|
|
|
|
Game_Flag_Set(kFlagSpinnerAtAR01);
|
2018-02-13 23:08:37 +01:00
|
|
|
Set_Enter(kSetAR01_AR02, kSceneAR01);
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotNoCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotWithCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case kSpinnerDestinationDNARow:
|
2019-01-14 21:09:12 +01:00
|
|
|
Game_Flag_Set(kFlagMcCoyAtDRxx);
|
2019-01-13 20:38:17 +01:00
|
|
|
Game_Flag_Reset(kFlagSpinnerAtRC01);
|
|
|
|
Game_Flag_Set(kFlagSpinnerAtDR01);
|
2018-02-13 23:08:37 +01:00
|
|
|
Set_Enter(kSetDR01_DR02_DR04, kSceneDR01);
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotNoCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotWithCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case kSpinnerDestinationBradburyBuilding:
|
2019-01-14 21:09:12 +01:00
|
|
|
Game_Flag_Set(kFlagMcCoyAtBBxx);
|
2019-01-13 20:38:17 +01:00
|
|
|
Game_Flag_Reset(kFlagSpinnerAtRC01);
|
|
|
|
Game_Flag_Set(kFlagSpinnerAtBB01);
|
2018-02-13 23:08:37 +01:00
|
|
|
Set_Enter(kSetBB01, kSceneBB01);
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotNoCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotWithCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case kSpinnerDestinationNightclubRow:
|
2019-01-14 21:09:12 +01:00
|
|
|
Game_Flag_Set(kFlagMcCoyAtNRxx);
|
2019-01-13 20:38:17 +01:00
|
|
|
Game_Flag_Reset(kFlagSpinnerAtRC01);
|
|
|
|
Game_Flag_Set(kFlagSpinnerAtNR01);
|
2018-02-13 23:08:37 +01:00
|
|
|
Set_Enter(kSetNR01, kSceneNR01);
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotNoCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotWithCrowd, true);
|
2017-09-10 20:19:02 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case kSpinnerDestinationHysteriaHall:
|
2019-01-14 21:09:12 +01:00
|
|
|
Game_Flag_Set(kFlagMcCoyAtHFxx);
|
2019-01-13 20:38:17 +01:00
|
|
|
Game_Flag_Reset(kFlagSpinnerAtRC01);
|
|
|
|
Game_Flag_Set(kFlagSpinnerAtHF01);
|
2018-02-13 23:08:37 +01:00
|
|
|
Set_Enter(kSetHF01, kSceneHF01);
|
2017-09-10 20:19:02 +02:00
|
|
|
if (Game_Flag_Query(kFlagRC01PoliceDone)) {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotNoCrowd, true);
|
2016-09-10 18:33:04 +02:00
|
|
|
} else {
|
2018-02-13 23:08:37 +01:00
|
|
|
Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kRC01LoopOutshotWithCrowd, true);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
2017-09-10 20:19:02 +02:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
walkToCenter();
|
|
|
|
break;
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
2018-02-13 23:08:37 +01:00
|
|
|
if (exitId == kRC01ExitRC03) {
|
|
|
|
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -471.98f, -0.3f, 258.15f, 4, true, false, 0)) {
|
2018-02-10 20:34:28 +01:00
|
|
|
Game_Flag_Set(kFlagRC01toRC03);
|
2018-02-13 23:08:37 +01:00
|
|
|
Ambient_Sounds_Remove_All_Non_Looping_Sounds(true);
|
2016-09-10 18:33:04 +02:00
|
|
|
Ambient_Sounds_Remove_All_Looping_Sounds(1);
|
2018-02-13 23:08:37 +01:00
|
|
|
Set_Enter(kSetRC03, kSceneRC03);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-01-13 20:38:17 +01:00
|
|
|
void SceneScriptRC01::interrogateCrowd() {
|
|
|
|
if (!Game_Flag_Query(kFlagRC01PoliceDone)) {
|
|
|
|
if (!Loop_Actor_Walk_To_Scene_Object(kActorMcCoy, "BARICADE03", 36, true, false)) {
|
|
|
|
Actor_Set_Goal_Number(kActorOfficerLeary, kGoalOfficerLearyDefault);
|
|
|
|
Actor_Face_Object(kActorMcCoy, "BARICADE03", true);
|
|
|
|
Loop_Actor_Walk_To_Actor(kActorOfficerLeary, kActorMcCoy, 36, true, false);
|
|
|
|
Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true);
|
|
|
|
Actor_Says(kActorMcCoy, 4500, 14);
|
|
|
|
I_Sez("MG: We don't want any of that abstract art oozing out onto the street.");
|
|
|
|
Actor_Says(kActorOfficerLeary, 10, 14);
|
|
|
|
Actor_Set_Goal_Number(kActorOfficerLeary, kGoalOfficerLearyCrowdInterrogation);
|
|
|
|
}
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
bool SceneScriptRC01::ClickedOn2DRegion(int region) {
|
2018-02-13 23:08:37 +01:00
|
|
|
if (region == kRC01RegionCrowd) {
|
2019-01-13 20:38:17 +01:00
|
|
|
interrogateCrowd();
|
2016-09-10 18:33:04 +02:00
|
|
|
return true;
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
2016-09-10 18:33:04 +02:00
|
|
|
return false;
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
void SceneScriptRC01::SceneFrameAdvanced(int frame) {
|
2016-09-10 18:33:04 +02:00
|
|
|
if (frame == 1) {
|
|
|
|
Sound_Play(118, 40, 0, 0, 50); // CARDOWN3.AUD
|
|
|
|
}
|
|
|
|
if (frame == 61 || frame == 362) {
|
2015-02-06 15:31:43 +01:00
|
|
|
Sound_Play(116, 100, 80, 80, 50); // SPINOPN4.AUD
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
if (frame == 108 || frame == 409) {
|
2015-02-06 15:31:43 +01:00
|
|
|
Sound_Play(119, 100, 80, 80, 50); // SPINCLS1.AUD
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
if (frame == 183 || frame == 484) {
|
2015-02-06 15:31:43 +01:00
|
|
|
Sound_Play(116, 100, 80, 80, 50); // SPINOPN4.AUD
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
if (frame == 228 || frame == 523) {
|
2015-02-06 15:31:43 +01:00
|
|
|
Sound_Play(119, 100, 80, 80, 50); // SPINCLS1.AUD
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
if (frame == 243 || frame == 545) {
|
|
|
|
Sound_Play(117, 40, 80, 80, 50); // CARUP3.AUD
|
|
|
|
}
|
|
|
|
if (frame == 315) {
|
|
|
|
Sound_Play(118, 40, 80, 80, 50); // CARDOWN3.AUD
|
|
|
|
}
|
2014-05-25 15:01:06 +02:00
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
void SceneScriptRC01::ActorChangedGoal(int actorId, int newGoal, int oldGoal, bool currentSet) {
|
2015-09-19 01:47:54 +02:00
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
void SceneScriptRC01::PlayerWalkedIn() {
|
2019-01-13 20:38:17 +01:00
|
|
|
if (Game_Flag_Query(kFlagSpinnerAtRC01) && !Game_Flag_Query(kFlagRC02toRC01) && !Game_Flag_Query(kFlagRC03toRC01)) {
|
2017-09-10 20:19:02 +02:00
|
|
|
walkToCenter();
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
|
|
|
|
2018-01-14 12:12:06 +01:00
|
|
|
if (Game_Flag_Query(kFlagRC03toRC01)) {
|
2016-09-10 18:16:17 +02:00
|
|
|
Player_Loses_Control();
|
2017-03-29 01:50:47 +02:00
|
|
|
Loop_Actor_Walk_To_XYZ(kActorMcCoy, -415.98f, -0.30f, 262.15f, 0, 0, false, 0);
|
2016-09-10 18:16:17 +02:00
|
|
|
Player_Gains_Control();
|
2018-01-14 12:12:06 +01:00
|
|
|
Game_Flag_Reset(kFlagRC03toRC01);
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
|
|
|
|
2018-01-14 12:12:06 +01:00
|
|
|
if (Game_Flag_Query(kFlagRC02toRC01)) {
|
2016-09-10 18:16:17 +02:00
|
|
|
Player_Loses_Control();
|
2017-03-29 01:50:47 +02:00
|
|
|
Loop_Actor_Walk_To_XYZ(kActorMcCoy, -203.45f, 5.55f, 85.05f, 0, 0, false, 0);
|
2016-09-10 18:16:17 +02:00
|
|
|
Player_Gains_Control();
|
2018-01-14 12:12:06 +01:00
|
|
|
Game_Flag_Reset(kFlagRC02toRC01);
|
2015-09-19 01:47:54 +02:00
|
|
|
|
2018-02-13 23:08:37 +01:00
|
|
|
if (Game_Flag_Query(kFlagRC02Discovered) && !Game_Flag_Query(kFlagRC02FirstLeave)) {
|
2017-03-29 01:50:47 +02:00
|
|
|
Actor_Voice_Over(1910, kActorVoiceOver);
|
|
|
|
Actor_Voice_Over(1920, kActorVoiceOver);
|
|
|
|
Actor_Voice_Over(1930, kActorVoiceOver);
|
2018-02-13 23:08:37 +01:00
|
|
|
Game_Flag_Set(kFlagRC02FirstLeave);
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
2016-09-10 18:33:04 +02:00
|
|
|
//return true;
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
2016-09-10 18:33:04 +02:00
|
|
|
//return false;
|
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
void SceneScriptRC01::PlayerWalkedOut() {
|
2017-09-10 20:19:02 +02:00
|
|
|
Ambient_Sounds_Remove_All_Non_Looping_Sounds(true);
|
2016-09-10 18:33:04 +02:00
|
|
|
Ambient_Sounds_Remove_All_Looping_Sounds(1);
|
2018-02-13 23:08:37 +01:00
|
|
|
if (!Game_Flag_Query(kFlagRC01toRC02) && !Game_Flag_Query(kFlagRC01toRC03) && Global_Variable_Query(kVariableChapter) > 0) {
|
2017-09-10 20:19:02 +02:00
|
|
|
Ambient_Sounds_Remove_All_Non_Looping_Sounds(true);
|
2016-09-10 18:33:04 +02:00
|
|
|
Ambient_Sounds_Remove_All_Looping_Sounds(1);
|
2018-02-13 23:08:37 +01:00
|
|
|
Outtake_Play(kOuttakeAway2, true, -1);
|
2016-09-10 18:33:04 +02:00
|
|
|
}
|
|
|
|
// return 1;
|
|
|
|
}
|
|
|
|
|
2017-03-23 16:20:10 +01:00
|
|
|
void SceneScriptRC01::DialogueQueueFlushed(int a1) {
|
2016-09-10 18:16:17 +02:00
|
|
|
}
|
2015-09-19 01:47:54 +02:00
|
|
|
|
2014-05-25 15:01:06 +02:00
|
|
|
} // End of namespace BladeRunner
|