1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538
|
/* 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 3 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, see <http://www.gnu.org/licenses/>.
*
*/
#include "bladerunner/script/scene_script.h"
namespace BladeRunner {
void SceneScriptRC04::InitializeScene() {
Setup_Scene_Information(45.0f, 0.15f, 68.0f, 1018);
Game_Flag_Reset(kFlagRC03toRC04);
Scene_Exit_Add_2D_Exit(0, 225, 47, 359, 248, 0);
if (!Game_Flag_Query(kFlagRC04McCoyShotBob)) {
Actor_Put_In_Set(kActorBulletBob, kSetRC04);
Actor_Set_At_XYZ(kActorBulletBob, -60.0f, -11.0f, 62.0f, 12);
}
if (Game_Flag_Query(kFlagRC04McCoyShotBob)) {
Actor_Change_Animation_Mode(kActorBulletBob, 88);
}
Ambient_Sounds_Add_Looping_Sound(kSfxRAIN10, 100, 1, 1);
Ambient_Sounds_Add_Sound(kSfxRCCARBY1, 5, 30, 10, 20, -100, 100, -101, -101, 0, 0);
Ambient_Sounds_Add_Sound(kSfxRCCARBY2, 5, 30, 10, 20, -100, 100, -101, -101, 0, 0);
Ambient_Sounds_Add_Sound(kSfxRCCARBY3, 5, 30, 10, 20, -100, 100, -101, -101, 0, 0);
}
void SceneScriptRC04::SceneLoaded() {
Obstacle_Object("Door New 01", true);
Obstacle_Object("GRNDNEON05", true);
Obstacle_Object("GRNDNEON06", true);
Obstacle_Object("GRNDNEON07", true);
Unobstacle_Object("DisplayTrim", true);
Unobstacle_Object("Display01", true);
Actor_Set_Goal_Number(kActorGenwalkerA, kGoalGenwalkerABulletBobsTrackGun);
}
bool SceneScriptRC04::MouseClick(int x, int y) {
return false;
}
bool SceneScriptRC04::ClickedOn3DObject(const char *objectName, bool a2) {
return false;
}
void SceneScriptRC04::dialogueWithBulletBob() {
Dialogue_Menu_Clear_List();
if ( Actor_Clue_Query(kActorMcCoy, kClueLabShellCasings)
&& !Actor_Clue_Query(kActorMcCoy, kClueRadiationGoggles)
) {
DM_Add_To_List_Never_Repeat_Once_Selected(580, -1, 4, 9); // WEAPONS
}
if ( Actor_Clue_Query(kActorMcCoy, kClueShellCasings)
&& !Actor_Clue_Query(kActorMcCoy, kClueLabShellCasings)
&& !Actor_Clue_Query(kActorMcCoy, kClueRadiationGoggles)
) {
DM_Add_To_List_Never_Repeat_Once_Selected(590, 6, 5, 3); // SHELL CASINGS
}
if (Actor_Clue_Query(kActorMcCoy, kClueHasanInterview)) {
DM_Add_To_List_Never_Repeat_Once_Selected(600, -1, 3, 7); // HASAN
DM_Add_To_List_Never_Repeat_Once_Selected(1310, -1, 2, 8); // VOIGT-KAMPFF
}
if ( Actor_Clue_Query(kActorMcCoy, kClueRadiationGoggles)
&& !Actor_Clue_Query(kActorMcCoy, kClueGogglesReplicantIssue)
) {
DM_Add_To_List_Never_Repeat_Once_Selected(610, 4, 5, 6); // GOGGLES
}
if (!Game_Flag_Query(kFlagRC04BobTalkAmmo)) {
DM_Add_To_List_Never_Repeat_Once_Selected(1280, 1, 2, 3); // AMMO
}
if ( Actor_Clue_Query(kActorMcCoy, kClueHoldensBadge)
&& !Actor_Clue_Query(kActorBulletBob, kClueHoldensBadge)
) {
DM_Add_To_List_Never_Repeat_Once_Selected(620, 1, -1, -1); // HOLDEN'S BADGE
}
Dialogue_Menu_Add_DONE_To_List(630); // DONE
Dialogue_Menu_Appear(320, 240);
int answer = Dialogue_Menu_Query_Input();
Dialogue_Menu_Disappear();
switch (answer) {
case 580: // WEAPONS
Actor_Says(kActorMcCoy, 4955, 30);
Actor_Says(kActorBulletBob, 210, 37);
Actor_Says(kActorBulletBob, 220, 37);
Actor_Says(kActorBulletBob, 230, 37);
Actor_Says(kActorBulletBob, 240, 37);
Actor_Says(kActorMcCoy, 4990, 16);
Actor_Says(kActorMcCoy, 4995, 11);
Actor_Says(kActorBulletBob, 270, 31);
Actor_Says(kActorMcCoy, 5005, 16);
Actor_Says(kActorBulletBob, 280, 32);
Actor_Says(kActorBulletBob, 290, 30);
Actor_Says(kActorBulletBob, 300, 33);
Actor_Says(kActorBulletBob, 310, 31);
Actor_Says(kActorMcCoy, 5010, 11);
Actor_Says(kActorBulletBob, 320, 30);
Actor_Says(kActorBulletBob, 330, 33);
Actor_Says(kActorBulletBob, 340, 37);
Actor_Says(kActorMcCoy, 5015, 11);
if (Game_Flag_Query(kFlagIzoIsReplicant)) {
Actor_Says(kActorBulletBob, 350, 32);
Actor_Says(kActorBulletBob, 360, 33);
Actor_Says(kActorBulletBob, 370, 30);
Actor_Says(kActorMcCoy, 5020, 16);
Actor_Says(kActorBulletBob, 380, 37);
Actor_Says(kActorBulletBob, 390, 11);
Actor_Says(kActorBulletBob, 400, 37);
#if BLADERUNNER_ORIGINAL_BUGS
Actor_Clue_Acquire(kActorMcCoy, kClueBobInterview1, true, kActorMcCoy); // A bug? Shouldn't the last argument be -1 or kActorBulletBob here?
#else
Actor_Clue_Acquire(kActorMcCoy, kClueBobInterview1, true, kActorBulletBob);
#endif // BLADERUNNER_ORIGINAL_BUGS
} else {
Actor_Says(kActorBulletBob, 410, 11);
Actor_Says(kActorBulletBob, 420, 37);
Actor_Says(kActorMcCoy, 5025, 16);
Actor_Says(kActorBulletBob, 430, 30);
Actor_Says(kActorBulletBob, 440, 31);
Actor_Says(kActorBulletBob, 450, 32);
Actor_Says(kActorMcCoy, 5030, 16);
Actor_Says(kActorBulletBob, 460, 37);
#if BLADERUNNER_ORIGINAL_BUGS
Actor_Clue_Acquire(kActorMcCoy, kClueBobInterview2, true, kActorMcCoy); // A bug? Shouldn't the last argument be -1 or kActorBulletBob here?
#else
Actor_Clue_Acquire(kActorMcCoy, kClueBobInterview2, true, kActorBulletBob);
#endif // BLADERUNNER_ORIGINAL_BUGS
}
return;
case 590: // SHELL CASINGS
Actor_Says(kActorMcCoy, 4960, 13);
Actor_Says(kActorBulletBob, 250, 30);
Actor_Says(kActorBulletBob, 260, 33);
Actor_Says(kActorMcCoy, 4995, 15);
Actor_Says(kActorBulletBob, 270, 32);
Actor_Says(kActorMcCoy, 5005, 11);
Actor_Says(kActorBulletBob, 280, 33);
Actor_Says(kActorBulletBob, 290, 30);
Actor_Says(kActorBulletBob, 300, 32);
Actor_Says(kActorBulletBob, 310, 37);
Actor_Says(kActorMcCoy, 5010, 13);
Actor_Says(kActorBulletBob, 320, 37);
Actor_Says(kActorBulletBob, 330, 33);
Actor_Says(kActorBulletBob, 340, 11);
Actor_Says(kActorMcCoy, 5015, 16);
Actor_Modify_Friendliness_To_Other(kActorBulletBob, kActorMcCoy, 3);
if (Game_Flag_Query(kFlagIzoIsReplicant)) {
Actor_Says(kActorBulletBob, 350, 32);
Actor_Says(kActorBulletBob, 360, 30);
Actor_Says(kActorBulletBob, 370, 33);
Actor_Says(kActorMcCoy, 5020, 15);
Actor_Says(kActorBulletBob, 380, 33);
Actor_Says(kActorBulletBob, 390, 37);
Actor_Says(kActorBulletBob, 400, 32);
#if BLADERUNNER_ORIGINAL_BUGS
Actor_Clue_Acquire(kActorMcCoy, kClueBobInterview1, true, kActorMcCoy); // A bug? Shouldn't the last argument be -1 or kActorBulletBob here?
#else
Actor_Clue_Acquire(kActorMcCoy, kClueBobInterview1, true, kActorBulletBob);
#endif // BLADERUNNER_ORIGINAL_BUGS
} else {
Actor_Says(kActorBulletBob, 410, 32);
Actor_Says(kActorBulletBob, 420, 30);
Actor_Says(kActorMcCoy, 5025, 13);
Actor_Says(kActorBulletBob, 430, 33);
Actor_Says(kActorBulletBob, 440, 32);
Actor_Says(kActorBulletBob, 450, 37);
Actor_Says(kActorMcCoy, 5030, 16);
Actor_Says(kActorBulletBob, 460, 30);
#if BLADERUNNER_ORIGINAL_BUGS
Actor_Clue_Acquire(kActorMcCoy, kClueBobInterview2, true, kActorMcCoy); // A bug? Shouldn't the last argument be -1 or kActorBulletBob here?
#else
Actor_Clue_Acquire(kActorMcCoy, kClueBobInterview2, true, kActorBulletBob);
#endif // BLADERUNNER_ORIGINAL_BUGS
}
break;
case 600: // HASAN
Actor_Says(kActorMcCoy, 4965, 11);
Actor_Says(kActorBulletBob, 470, 11);
Actor_Says(kActorMcCoy, 5035, 15);
Actor_Says(kActorBulletBob, 480, 30);
Actor_Says(kActorBulletBob, 490, 31);
Actor_Says(kActorBulletBob, 500, 32);
Actor_Says(kActorBulletBob, 510, 33);
#if BLADERUNNER_ORIGINAL_BUGS
Actor_Says(kActorBulletBob, 520, 34);
#else
// Quote 530 is the second half of the 520 sentence and flow of speech works better without the default delay
Actor_Says_With_Pause(kActorBulletBob, 520, 0.0f, 34);
#endif // BLADERUNNER_ORIGINAL_BUGS
Actor_Says(kActorBulletBob, 530, 35);
Actor_Says(kActorBulletBob, 540, 36);
Actor_Says(kActorMcCoy, 5040, 16);
Actor_Says(kActorBulletBob, 550, 11);
Actor_Modify_Friendliness_To_Other(kActorBulletBob, kActorMcCoy, -6);
if (_vm->_cutContent) {
Actor_Modify_Friendliness_To_Other(kActorHasan, kActorMcCoy, 6);
}
Game_Flag_Set(kFlagMcCoyTalkedToBulletBobAboutHasan);
break;
case 610: // GOGGLES
Actor_Says(kActorMcCoy, 4970, 16);
if (Actor_Query_Friendliness_To_Other(kActorBulletBob, kActorMcCoy) < 50) {
Actor_Says(kActorBulletBob, 700, 11);
Actor_Says(kActorMcCoy, 5070, 11);
Actor_Says(kActorBulletBob, 710, 11);
Actor_Says(kActorMcCoy, 5075, 15);
Actor_Says(kActorBulletBob, 720, 30);
Actor_Says(kActorMcCoy, 5080, 11);
Actor_Says(kActorBulletBob, 730, 37);
#if BLADERUNNER_ORIGINAL_BUGS
// Last argument should be -1 or kActorBulletBob here
// However, this clue is acquired for asking about Izo, when Izo is Replicant
// (see also the KIA entry for it, which references the audio recording from that discussion)
// It should not be acquired here.
Actor_Clue_Acquire(kActorMcCoy, kClueBobInterview1, true, kActorMcCoy);
#endif // BLADERUNNER_ORIGINAL_BUGS
} else {
Actor_Says(kActorBulletBob, 560, 37);
Actor_Says(kActorMcCoy, 5070, 13);
Actor_Says(kActorBulletBob, 570, 36);
Actor_Says(kActorBulletBob, 580, 37);
Actor_Says(kActorBulletBob, 590, 31);
Actor_Says(kActorBulletBob, 600, 32);
Actor_Says(kActorBulletBob, 610, 30);
Actor_Says(kActorMcCoy, 5050, 16);
Actor_Says(kActorBulletBob, 620, 35);
Actor_Says(kActorBulletBob, 630, 35);
Actor_Says(kActorMcCoy, 5055, 11);
Actor_Says(kActorBulletBob, 640, 36);
Actor_Says(kActorBulletBob, 650, 35);
Actor_Says(kActorBulletBob, 660, 30);
Actor_Says(kActorMcCoy, 5060, 13);
#if BLADERUNNER_ORIGINAL_BUGS
// A bug? Shouldn't the last argument be -1 or kActorBulletBob here?
Actor_Clue_Acquire(kActorMcCoy, kClueGogglesReplicantIssue, true, kActorMcCoy);
#else
Actor_Clue_Acquire(kActorMcCoy, kClueGogglesReplicantIssue, true, kActorBulletBob);
#endif // BLADERUNNER_ORIGINAL_BUGS
}
break;
case 620: // HOLDEN'S BADGE
Actor_Says(kActorMcCoy, 4985, 11);
Actor_Says(kActorBulletBob, 850, 35);
Actor_Says(kActorMcCoy, 5105, 13);
Actor_Says(kActorMcCoy, 5110, 11);
Actor_Says(kActorBulletBob, 860, 30);
Actor_Says(kActorMcCoy, 5115, 16);
Actor_Says(kActorBulletBob, 870, 31);
Actor_Says(kActorMcCoy, 5120, 15);
Actor_Says(kActorBulletBob, 880, 34);
Actor_Clue_Acquire(kActorBulletBob, kClueHoldensBadge, true, kActorMcCoy);
Actor_Modify_Friendliness_To_Other(kActorBulletBob, kActorMcCoy, 8);
if (Query_Difficulty_Level() != kGameDifficultyEasy) {
Global_Variable_Increment(kVariableChinyen, 60);
}
break;
case 630: // DONE
Actor_Says(kActorMcCoy, 1315, 12);
break;
case 1280: // AMMO
Actor_Says(kActorMcCoy, 9040, 16);
if (!Game_Flag_Query(kFlagRC04BobTalkAmmo)) {
Actor_Says(kActorBulletBob, 2080, 30);
Actor_Says(kActorBulletBob, 2090, 37);
Actor_Says(kActorMcCoy, 9045, 14);
Actor_Says(kActorBulletBob, 2100, 32);
Actor_Says(kActorBulletBob, 2110, 37);
Game_Flag_Set(kFlagRC04BobTalkAmmo);
}
Actor_Says(kActorBulletBob, 2120, 31);
if (Global_Variable_Query(kVariableChinyen) > 40
|| Query_Difficulty_Level() == kGameDifficultyEasy
) {
Actor_Says(kActorMcCoy, 4940, 13);
if (Query_Difficulty_Level() != kGameDifficultyEasy) {
Global_Variable_Decrement(kVariableChinyen, 40);
}
Item_Pickup_Spin_Effect(kModelAnimationAmmoType01, 405, 192);
Give_McCoy_Ammo(1, 24);
} else {
Actor_Says(kActorMcCoy, 125, 13);
Actor_Modify_Friendliness_To_Other(kActorBulletBob, kActorMcCoy, -2);
}
break;
case 1310: // VOIGT-KAMPFF
Actor_Says(kActorMcCoy, 4980, 11);
if (Actor_Query_Friendliness_To_Other(kActorBulletBob, kActorMcCoy) > 49) {
Actor_Says(kActorBulletBob, 740, 37);
#if BLADERUNNER_ORIGINAL_BUGS
Actor_Says(kActorMcCoy, 5085, 16);
#else
// McCoy is interrupted here
Actor_Says_With_Pause(kActorMcCoy, 5085, 0.0f, 16);
#endif // BLADERUNNER_ORIGINAL_BUGS
Actor_Says(kActorBulletBob, 750, 37);
Actor_Says(kActorBulletBob, 760, 37);
Voight_Kampff_Activate(kActorBulletBob, 50);
Actor_Modify_Friendliness_To_Other(kActorBulletBob, kActorMcCoy, 3);
Actor_Says(kActorBulletBob, 810, 37);
Actor_Says(kActorMcCoy, 5025, 13);
Actor_Says(kActorBulletBob, 820, 32);
Actor_Says(kActorMcCoy, 5100, 11);
Actor_Says(kActorBulletBob, 830, 31);
Actor_Says(kActorBulletBob, 840, 35);
} else {
Actor_Says(kActorBulletBob, 770, 36);
if (_vm->_cutContent && _vm->_language != Common::ES_ESP) {
// In Spanish, this quote (5095) is a duplicate of quote 5085
// with a slightly different take from the voice actor
// but it does not fit here.
Actor_Says_With_Pause(kActorMcCoy, 5095, 0.0f, 11);
}
Actor_Says(kActorBulletBob, 780, 36);
#if BLADERUNNER_ORIGINAL_BUGS
Actor_Says(kActorMcCoy, 5090, 16);
#else
// McCoy is interrupted here
Actor_Says_With_Pause(kActorMcCoy, 5090, 0.0f, 16);
#endif // BLADERUNNER_ORIGINAL_BUGS
Actor_Says(kActorBulletBob, 790, 36);
Actor_Says(kActorBulletBob, 800, 35);
Voight_Kampff_Activate(kActorBulletBob, 50);
Actor_Says(kActorBulletBob, 810, 30);
Actor_Says(kActorMcCoy, 5025, 13);
Actor_Says(kActorBulletBob, 820, 31);
Actor_Says(kActorMcCoy, 5100, 15);
Actor_Says(kActorBulletBob, 830, 34);
Actor_Says(kActorBulletBob, 840, 34);
}
break;
}
}
bool SceneScriptRC04::ClickedOnActor(int actorId) {
if (Player_Query_Combat_Mode()) {
return false;
}
if (actorId == kActorBulletBob) {
if ( Global_Variable_Query(kVariableChapter) == 2
&& !Game_Flag_Query(kFlagRC04McCoyShotBob)
) {
Loop_Actor_Walk_To_Waypoint(kActorMcCoy, 104, 0, false, false);
Actor_Face_Actor(kActorMcCoy, kActorBulletBob, true);
if ( Game_Flag_Query(kFlagRC04Entered)
&& !Game_Flag_Query(kFlagRC04BobTalk2)
&& Actor_Query_Friendliness_To_Other(kActorBulletBob, kActorMcCoy) > 45
) {
Actor_Says(kActorBulletBob, 30, 30); // B: How come I never heard of you?
Actor_Says(kActorMcCoy, 4875, 13); // M: I just got assigned.
Actor_Says(kActorBulletBob, 80, 31);
Actor_Says(kActorMcCoy, 4900, 15);
Actor_Says(kActorBulletBob, 90, 33);
Actor_Says(kActorBulletBob, 100, 34);
Actor_Says(kActorMcCoy, 4905, 15);
Game_Flag_Set(kFlagRC04BobTalk2);
} else if ( Game_Flag_Query(kFlagRC04Entered)
&& !Game_Flag_Query(kFlagRC04BobTalk1)
&& Actor_Query_Friendliness_To_Other(kActorBulletBob, kActorMcCoy) < 45
) {
Actor_Says(kActorBulletBob, 40, 30); // B: I heard of you.
Actor_Says(kActorMcCoy, 4880, 13);
Actor_Says(kActorBulletBob, 50, 35); // M: You ain't done much.
if (_vm->_cutContent) {
// use an alternative take of the same quote (4875) "I just got assigned."
Actor_Says(kActorMcCoy, 4885, 16);
} else {
// original vanilla version re-uses this quote
Actor_Says(kActorMcCoy, 4875, 16);
}
Actor_Says(kActorBulletBob, 60, 36);
Actor_Says(kActorMcCoy, 4890, 13);
Actor_Says(kActorBulletBob, 70, 33);
Actor_Says(kActorMcCoy, 4895, 16);
Actor_Modify_Friendliness_To_Other(kActorBulletBob, kActorMcCoy, -5);
Game_Flag_Set(kFlagRC04BobTalk1);
} else if ( Actor_Query_Friendliness_To_Other(kActorBulletBob, kActorMcCoy) > 51
&& !Game_Flag_Query(kFlagRC04BobTalk3)
) {
Actor_Says(kActorBulletBob, 1870, 30);
Actor_Says(kActorBulletBob, 1880, 30);
Actor_Says(kActorMcCoy, 8960, 13);
Actor_Says(kActorBulletBob, 1890, 36);
if (_vm->_cutContent && _vm->_language == Common::FR_FRA) {
// In French (only) the 1910 quote follows after the 1900 quote.
Actor_Says_With_Pause(kActorBulletBob, 1900, 0.0f, 35);
Actor_Says(kActorBulletBob, 1910, 30);
} else {
Actor_Says(kActorBulletBob, 1900, 35);
}
Actor_Says(kActorMcCoy, 8965, 16);
Actor_Says(kActorBulletBob, 1920, 36);
Actor_Says(kActorBulletBob, 1930, 33);
Actor_Says(kActorBulletBob, 1940, 36);
Actor_Says(kActorBulletBob, 1950, 30);
Actor_Says(kActorMcCoy, 8970, 13);
Actor_Says(kActorBulletBob, 1960, 33);
Actor_Says(kActorBulletBob, 1970, 30);
Actor_Says(kActorBulletBob, 1980, 36);
Delay(1000);
Actor_Says(kActorBulletBob, 2010, 35);
if (Global_Variable_Query(kVariableChinyen) > 50
|| Query_Difficulty_Level() == kGameDifficultyEasy
) {
Actor_Says(kActorMcCoy, 8975, 16);
if (Query_Difficulty_Level() != kGameDifficultyEasy) {
Global_Variable_Decrement(kVariableChinyen, 50);
}
Delay(3000);
Item_Pickup_Spin_Effect(kModelAnimationDNADataDisc, 405, 192);
Actor_Says(kActorBulletBob, 2030, 30);
Game_Flag_Set(kFlagKIAPrivacyAddon);
} else {
Actor_Says(kActorMcCoy, 8980, 16);
Actor_Says(kActorBulletBob, 2040, 30);
Actor_Says(kActorMcCoy, 8985, 15);
Actor_Says(kActorBulletBob, 2050, 33);
}
Game_Flag_Set(kFlagRC04BobTalk3);
} else if ( Actor_Clue_Query(kActorMcCoy, kClueLabShellCasings)
|| Actor_Clue_Query(kActorMcCoy, kClueShellCasings)
|| Actor_Clue_Query(kActorMcCoy, kClueRadiationGoggles)
|| Actor_Clue_Query(kActorMcCoy, kClueHoldensBadge)
|| Actor_Clue_Query(kActorMcCoy, kClueHasanInterview)
|| !Game_Flag_Query(kFlagRC04BobTalkAmmo)
) {
dialogueWithBulletBob();
} else {
Actor_Says(kActorBulletBob, 1820, 30);
}
return true;
}
if (Game_Flag_Query(kFlagRC04McCoyShotBob)) {
Actor_Face_Actor(kActorMcCoy, kActorBulletBob, true);
if (Actor_Clue_Query(kActorMcCoy, kClueVKBobGorskyReplicant)) {
Actor_Says(kActorMcCoy, 8590, -1);
} else {
Actor_Voice_Over(2100, kActorVoiceOver);
Actor_Voice_Over(2110, kActorVoiceOver);
}
return true;
}
}
return false;
}
bool SceneScriptRC04::ClickedOnItem(int itemId, bool a2) {
return false;
}
bool SceneScriptRC04::ClickedOnExit(int exitId) {
if (exitId == 0) {
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 45.0f, 0.15f, 68.0f, 0, true, false, false)) {
Game_Flag_Set(kFlagRC04toRC03);
Set_Enter(kSetRC03, kSceneRC03);
}
return true;
}
return false;
}
bool SceneScriptRC04::ClickedOn2DRegion(int region) {
return false;
}
void SceneScriptRC04::SceneFrameAdvanced(int frame) {
}
void SceneScriptRC04::ActorChangedGoal(int actorId, int newGoal, int oldGoal, bool currentSet) {
}
void SceneScriptRC04::PlayerWalkedIn() {
Loop_Actor_Walk_To_Waypoint(kActorMcCoy, 103, 0, false, false);
if ( Global_Variable_Query(kVariableChapter) == 2
&& !Game_Flag_Query(kFlagRC04Entered)
&& !Player_Query_Combat_Mode()
) {
Actor_Says(kActorBulletBob, 0, 31);
Loop_Actor_Walk_To_Waypoint(kActorMcCoy, 104, 0, false, false);
Actor_Face_Actor(kActorMcCoy, kActorBulletBob, true);
Actor_Says(kActorMcCoy, 4865, 13);
Actor_Says(kActorBulletBob, 10, 32);
Actor_Says(kActorMcCoy, 4870, 16);
Actor_Says(kActorBulletBob, 20, 31);
Game_Flag_Set(kFlagRC04Entered);
return; //true;
}
if ( Global_Variable_Query(kVariableChapter) == 4
&& !Game_Flag_Query(kFlagRC04McCoyShotBob)
&& !Game_Flag_Query(kFlagNotUsed306)
) {
Actor_Says(kActorDispatcher, 40, 3);
Actor_Says(kActorBulletBob, 890, 37);
Actor_Set_Goal_Number(kActorBulletBob, kGoalBulletBobShootMcCoy);
}
Game_Flag_Set(kFlagRC04Entered);
//return false;
}
void SceneScriptRC04::PlayerWalkedOut() {
Game_Flag_Reset(kFlagRC04McCoyWarned);
}
void SceneScriptRC04::DialogueQueueFlushed(int a1) {
}
} // End of namespace BladeRunner
|