aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/script/ct07.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/bladerunner/script/ct07.cpp')
-rw-r--r--engines/bladerunner/script/ct07.cpp104
1 files changed, 104 insertions, 0 deletions
diff --git a/engines/bladerunner/script/ct07.cpp b/engines/bladerunner/script/ct07.cpp
new file mode 100644
index 0000000000..771d4be676
--- /dev/null
+++ b/engines/bladerunner/script/ct07.cpp
@@ -0,0 +1,104 @@
+/* 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/script.h"
+
+namespace BladeRunner {
+
+void ScriptCT07::InitializeScene() {
+ Setup_Scene_Information(202.32f, -58.23f, -12.86f, 225);
+ Actor_Put_In_Set(19, 30);
+ Actor_Set_At_XYZ(19, -9.68f, -58.23f, 11.14f, 250);
+ Ambient_Sounds_Add_Looping_Sound(54, 30, 90, 1);
+ Ambient_Sounds_Add_Looping_Sound(205, 20, 1, 1);
+ Ambient_Sounds_Add_Looping_Sound(56, 40, 100, 1);
+ Ambient_Sounds_Add_Speech_Sound(60, 0, 10, 260, 17, 24, -100, 100, -101, -101, 1, 1);
+ Ambient_Sounds_Add_Speech_Sound(60, 20, 10, 260, 17, 24, -100, 100, -101, -101, 1, 1);
+ Ambient_Sounds_Add_Speech_Sound(60, 40, 10, 260, 17, 24, -100, 100, -101, -101, 1, 1);
+ Ambient_Sounds_Add_Speech_Sound(60, 50, 10, 260, 17, 24, -100, 100, -101, -101, 1, 1);
+ Ambient_Sounds_Add_Sound(67, 80, 180, 16, 25, 0, 0, -101, -101, 0, 0);
+ Ambient_Sounds_Add_Sound(68, 50, 180, 16, 25, 0, 0, -101, -101, 0, 0);
+ Ambient_Sounds_Add_Sound(379, 10, 60, 50, 100, 0, 0, -101, -101, 0, 0);
+ Ambient_Sounds_Add_Sound(375, 6, 50, 50, 100, 0, 0, -101, -101, 0, 0);
+ Ambient_Sounds_Add_Sound(377, 10, 70, 50, 100, 0, 0, -101, -101, 0, 0);
+ Ambient_Sounds_Add_Sound(61, 10, 30, 12, 14, 100, 100, -101, -101, 0, 0);
+ Ambient_Sounds_Add_Sound(62, 10, 30, 12, 14, 100, 100, -101, -101, 0, 0);
+ Ambient_Sounds_Add_Sound(63, 10, 30, 12, 14, 100, 100, -101, -101, 0, 0);
+ Ambient_Sounds_Add_Sound(64, 10, 30, 12, 14, 100, 100, -101, -101, 0, 0);
+}
+
+void ScriptCT07::SceneLoaded() {
+ Obstacle_Object("BOX01", true);
+ Obstacle_Object("BOX02", true);
+ Obstacle_Object("BOX03", true);
+ Obstacle_Object("BOX04", true);
+ Unclickable_Object("BOX01");
+ Unclickable_Object("BOX02");
+ Unclickable_Object("BOX03");
+ Unclickable_Object("BOX04");
+}
+
+bool ScriptCT07::MouseClick(int x, int y) {
+ return true;
+}
+
+bool ScriptCT07::ClickedOn3DObject(const char *objectName, bool a2) {
+ return false;
+}
+
+bool ScriptCT07::ClickedOnActor(int actorId) {
+ return false;
+}
+
+bool ScriptCT07::ClickedOnItem(int itemId, bool a2) {
+ return false;
+}
+
+bool ScriptCT07::ClickedOnExit(int exitId) {
+ return false;
+}
+
+bool ScriptCT07::ClickedOn2DRegion(int region) {
+ return false;
+}
+
+void ScriptCT07::SceneFrameAdvanced(int frame) {
+}
+
+void ScriptCT07::ActorChangedGoal(int actorId, int newGoal, int oldGoal, bool currentSet) {
+}
+
+void ScriptCT07::PlayerWalkedIn() {
+ Player_Gains_Control();
+ Non_Player_Actor_Combat_Mode_On(19, 0, 0, 0, 2, 4, 7, 8, 0, 0, 100, 15, 300, 0);
+ Game_Flag_Set(516);
+ Actor_Face_Actor(0, 19, true);
+}
+
+void ScriptCT07::PlayerWalkedOut() {
+ Music_Stop(2);
+}
+
+void ScriptCT07::DialogueQueueFlushed(int a1) {
+}
+
+} // End of namespace BladeRunner