diff options
author | Thanasis Antoniou | 2019-04-14 15:59:16 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-04-14 15:59:57 +0300 |
commit | 7fba5444ee822202aa02fb7e5cef49baba76c630 (patch) | |
tree | 854d3aed669b21b9f4646c944b51a444dc07ea0b /engines/bladerunner/script/ai | |
parent | f8b5033680fce2cd660bf884e05cbbbaa936347f (diff) | |
download | scummvm-rg350-7fba5444ee822202aa02fb7e5cef49baba76c630.tar.gz scummvm-rg350-7fba5444ee822202aa02fb7e5cef49baba76c630.tar.bz2 scummvm-rg350-7fba5444ee822202aa02fb7e5cef49baba76c630.zip |
BLADERUNNER: Don't restart dialogue with offended Larry
Diffstat (limited to 'engines/bladerunner/script/ai')
-rw-r--r-- | engines/bladerunner/script/ai/crazylegs.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/engines/bladerunner/script/ai/crazylegs.cpp b/engines/bladerunner/script/ai/crazylegs.cpp index 4766efe915..c2031fc0ab 100644 --- a/engines/bladerunner/script/ai/crazylegs.cpp +++ b/engines/bladerunner/script/ai/crazylegs.cpp @@ -77,34 +77,34 @@ void AIScriptCrazylegs::OtherAgentExitedThisScene(int otherActorId) { } void AIScriptCrazylegs::OtherAgentEnteredCombatMode(int otherActorId, int combatMode) { - if (Actor_Query_Goal_Number(kActorCrazylegs) != 2 && !otherActorId) { + if (Actor_Query_Goal_Number(kActorCrazylegs) != kGoalCrazyLegsLeavesShowroom && otherActorId == kActorMcCoy) { if (combatMode && Global_Variable_Query(kVariableChapter) < 5) { - Actor_Face_Actor(kActorCrazylegs, kActorMcCoy, 1); - Actor_Face_Actor(kActorMcCoy, kActorCrazylegs, 1); + Actor_Face_Actor(kActorCrazylegs, kActorMcCoy, true); + Actor_Face_Actor(kActorMcCoy, kActorCrazylegs, true); Actor_Says(kActorCrazylegs, 430, 3); Actor_Says_With_Pause(kActorCrazylegs, 440, 0.0, 3); Actor_Says(kActorMcCoy, 1870, -1); Actor_Says(kActorCrazylegs, 450, 3); - Actor_Set_Goal_Number(kActorCrazylegs, 210); - } else if (Actor_Query_Goal_Number(kActorCrazylegs) == 210) { - Actor_Face_Actor(kActorCrazylegs, kActorMcCoy, 1); + Actor_Set_Goal_Number(kActorCrazylegs, kGoalCrazyLegsMcCoyDrewHisGun); + } else if (Actor_Query_Goal_Number(kActorCrazylegs) == kGoalCrazyLegsMcCoyDrewHisGun) { + Actor_Face_Actor(kActorCrazylegs, kActorMcCoy, true); Actor_Says(kActorCrazylegs, 460, 3); Actor_Says(kActorCrazylegs, 470, 3); - Actor_Set_Goal_Number(kActorCrazylegs, 2); + Actor_Set_Goal_Number(kActorCrazylegs, kGoalCrazyLegsLeavesShowroom); } } } void AIScriptCrazylegs::ShotAtAndMissed() { - if (Actor_Query_Goal_Number(kActorCrazylegs) == 2) + if (Actor_Query_Goal_Number(kActorCrazylegs) == kGoalCrazyLegsLeavesShowroom) return; - Actor_Set_Goal_Number(kActorCrazylegs, 2); + Actor_Set_Goal_Number(kActorCrazylegs, kGoalCrazyLegsLeavesShowroom); } bool AIScriptCrazylegs::ShotAtAndHit() { - Actor_Set_Goal_Number(kActorCrazylegs, 1); - Actor_Says(kActorMcCoy, 1875, 4); + Actor_Set_Goal_Number(kActorCrazylegs, kGoalCrazyLegsShotAndHit); + Actor_Says(kActorMcCoy, 1875, 4); // I wouldn't drag that bucket of bolts if you paid me. return false; } @@ -117,17 +117,17 @@ int AIScriptCrazylegs::GetFriendlinessModifierIfGetsClue(int otherActorId, int c } bool AIScriptCrazylegs::GoalChanged(int currentGoalNumber, int newGoalNumber) { - if (newGoalNumber == 0) { + if (newGoalNumber == kGoalCrazyLegsDefault) { return true; } - if (newGoalNumber == 1) { + if (newGoalNumber == kGoalCrazyLegsShotAndHit) { AI_Movement_Track_Flush(kActorCrazylegs); - Actor_Set_Targetable(kActorCrazylegs, 0); + Actor_Set_Targetable(kActorCrazylegs, false); return true; } - if (newGoalNumber == 2) { + if (newGoalNumber == kGoalCrazyLegsLeavesShowroom) { AI_Movement_Track_Flush(kActorCrazylegs); AI_Movement_Track_Append(kActorCrazylegs, 360, 0); AI_Movement_Track_Append(kActorCrazylegs, 40, 0); |