[Scummvm-git-logs] scummvm master -> 6e45a702a2230d7f5ff335d17d66dc65486a6203
antoniou79
antoniou at cti.gr
Thu Mar 28 00:34:34 CET 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
6e45a702a2 BLADERUNNER: Moonbus fixes (Izo and Luther)
Commit: 6e45a702a2230d7f5ff335d17d66dc65486a6203
https://github.com/scummvm/scummvm/commit/6e45a702a2230d7f5ff335d17d66dc65486a6203
Author: Thanasis Antoniou (a.antoniou79 at gmail.com)
Date: 2019-03-28T01:33:24+02:00
Commit Message:
BLADERUNNER: Moonbus fixes (Izo and Luther)
Also fixed a typo that resulted in Izo's corpse persisting past chapter 2 at RC03
Changed paths:
engines/bladerunner/actor.cpp
engines/bladerunner/script/ai/clovis.cpp
engines/bladerunner/script/ai/izo.cpp
engines/bladerunner/script/ai/luther.cpp
diff --git a/engines/bladerunner/actor.cpp b/engines/bladerunner/actor.cpp
index 2c5b77c..461fbab 100644
--- a/engines/bladerunner/actor.cpp
+++ b/engines/bladerunner/actor.cpp
@@ -106,7 +106,7 @@ void Actor::setup(int actorId) {
_timersLeft[i] = 0;
_timersLast[i] = _vm->_time->current();
}
- _timersLeft[4] = _timer4RemainDefault; // This was in original code. We need to init this timer in oder to kick off periodic updates for acquireCluesByRelations
+ _timersLeft[4] = _timer4RemainDefault; // This was in original code. We need to init this timer in order to kick off periodic updates for acquireCluesByRelations
_honesty = 50;
_intelligence = 50;
diff --git a/engines/bladerunner/script/ai/clovis.cpp b/engines/bladerunner/script/ai/clovis.cpp
index beb90ed..a912c65 100644
--- a/engines/bladerunner/script/ai/clovis.cpp
+++ b/engines/bladerunner/script/ai/clovis.cpp
@@ -459,7 +459,7 @@ bool AIScriptClovis::GoalChanged(int currentGoalNumber, int newGoalNumber) {
) {
#if BLADERUNNER_ORIGINAL_BUGS
// Lucy's retirement on the moonbus should be handled in her ai script AIScriptLucy::Retired()
- // like the others - even if she won't attack McCoy, she should be retired immediately (with this shot)
+ // like the others - even if she won't attack McCoy, she should be retired immediately (with one shot)
Actor_Set_Goal_Number(kActorLucy, kGoalLucyGone);
Global_Variable_Decrement(kVariableReplicantsSurvivorsAtMoobus, 1);
#else
@@ -473,8 +473,8 @@ bool AIScriptClovis::GoalChanged(int currentGoalNumber, int newGoalNumber) {
&& Actor_Query_In_Set(kActorLuther, kSetKP07)
) {
#if BLADERUNNER_ORIGINAL_BUGS
- // Luther's retirement on the moonbus should be handled in her ai script AIScriptLucy::Retired()
- // like the others - even if she won't attack McCoy, she should be retired immediately (with this shot)
+ // Luther's retirement on the moonbus should be handled in his ai script AIScriptLuther:Retired()
+ // like the others - even if he won't attack McCoy, he should be retired immediately (with one shot)
Actor_Set_Goal_Number(kActorLuther, kGoalLutherGone);
Global_Variable_Decrement(kVariableReplicantsSurvivorsAtMoobus, 1);
#endif // BLADERUNNER_ORIGINAL_BUGS
diff --git a/engines/bladerunner/script/ai/izo.cpp b/engines/bladerunner/script/ai/izo.cpp
index 92d2587..d02145b 100644
--- a/engines/bladerunner/script/ai/izo.cpp
+++ b/engines/bladerunner/script/ai/izo.cpp
@@ -59,7 +59,7 @@ bool AIScriptIzo::Update() {
return true;
}
- if (Global_Variable_Query(kVariableChapter) == 1
+ if (Global_Variable_Query(kVariableChapter) == 3
&& Actor_Query_Goal_Number(kActorIzo) == kGoalIzoGone
&& Actor_Query_Which_Set_In(kActorIzo) == kSetRC03
) {
@@ -407,8 +407,15 @@ bool AIScriptIzo::GoalChanged(int currentGoalNumber, int newGoalNumber) {
Ambient_Sounds_Play_Speech_Sound(kActorIzo, 9000, 100, 0, 0, 0);
Actor_Change_Animation_Mode(kActorIzo, kAnimationModeDie);
Actor_Set_Goal_Number(kActorIzo, 999);
+#if BLADERUNNER_ORIGINAL_BUGS
Scene_Exits_Enable();
- Actor_Retired_Here(kActorIzo, 36, 12, true, -1);
+#else
+ Actor_Set_Targetable(kActorIzo, false);
+ if (!Actor_Query_In_Set(kActorIzo, kSetKP07)) {
+ Scene_Exits_Enable();
+ Actor_Retired_Here(kActorIzo, 36, 12, true, -1);
+ }
+#endif // BLADERUNNER_ORIGINAL_BUGS
return true;
case 200:
diff --git a/engines/bladerunner/script/ai/luther.cpp b/engines/bladerunner/script/ai/luther.cpp
index 791bb97..c3db519 100644
--- a/engines/bladerunner/script/ai/luther.cpp
+++ b/engines/bladerunner/script/ai/luther.cpp
@@ -161,6 +161,16 @@ void AIScriptLuther::ShotAtAndMissed() {
}
bool AIScriptLuther::ShotAtAndHit() {
+#if BLADERUNNER_ORIGINAL_BUGS
+#else
+ if (Actor_Query_In_Set(kActorLuther, kSetKP07)) {
+ AI_Movement_Track_Flush(kActorLuther);
+ ChangeAnimationMode(kAnimationModeDie);
+ Actor_Retired_Here(kActorLuther, 6, 6, true, kActorMcCoy);
+ Actor_Set_Goal_Number(kActorLuther, kGoalLutherDie);
+ return false;
+ }
+#endif
if (Actor_Query_Which_Set_In(kActorLuther) == kSetUG16) {
Actor_Set_Health(kActorLuther, 50, 50);
}
@@ -225,7 +235,7 @@ bool AIScriptLuther::GoalChanged(int currentGoalNumber, int newGoalNumber) {
AI_Movement_Track_Flush(kActorLuther);
break;
- case 499:
+ case kGoalLutherDead:
Actor_Set_Goal_Number(kActorLuther, kGoalLutherGone);
break;
}
More information about the Scummvm-git-logs
mailing list