diff options
author | Peter Kohaut | 2018-03-06 21:10:48 +0100 |
---|---|---|
committer | Peter Kohaut | 2018-03-06 21:12:52 +0100 |
commit | 2a0bdd7df8a60c59d96f077d50567460cbf8e814 (patch) | |
tree | 724162bc0e4e7bdfeaf140e631c8d502b364be42 /engines/bladerunner/script/ai | |
parent | 09ebefe96131a98f56db235b92d59a8e14b3f082 (diff) | |
download | scummvm-rg350-2a0bdd7df8a60c59d96f077d50567460cbf8e814.tar.gz scummvm-rg350-2a0bdd7df8a60c59d96f077d50567460cbf8e814.tar.bz2 scummvm-rg350-2a0bdd7df8a60c59d96f077d50567460cbf8e814.zip |
BLADERUNNER: Added stairs & ladder support
Diffstat (limited to 'engines/bladerunner/script/ai')
-rw-r--r-- | engines/bladerunner/script/ai/leon.cpp | 3 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/mccoy.cpp | 20 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/officer_leary.cpp | 12 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/runciter.cpp | 2 |
4 files changed, 18 insertions, 19 deletions
diff --git a/engines/bladerunner/script/ai/leon.cpp b/engines/bladerunner/script/ai/leon.cpp index bc06b0d0bd..fad9da3cfb 100644 --- a/engines/bladerunner/script/ai/leon.cpp +++ b/engines/bladerunner/script/ai/leon.cpp @@ -244,7 +244,6 @@ bool AIScriptLeon::GoalChanged(int currentGoalNumber, int newGoalNumber) { } bool AIScriptLeon::UpdateAnimation(int *animation, int *frame) { - switch (_animationState) { case 10: *animation = 856; @@ -382,7 +381,7 @@ bool AIScriptLeon::ChangeAnimationMode(int mode) { _animationState = 1; _animationFrame = 0; break; - case 3: + case kAnimationModeTalk: _animationState = 2; _animationFrame = 0; var_45EDAC = 0; diff --git a/engines/bladerunner/script/ai/mccoy.cpp b/engines/bladerunner/script/ai/mccoy.cpp index faecdf9ac1..add613e299 100644 --- a/engines/bladerunner/script/ai/mccoy.cpp +++ b/engines/bladerunner/script/ai/mccoy.cpp @@ -1313,7 +1313,7 @@ bool AIScriptMcCoy::ChangeAnimationMode(int mode) { } } break; - case 3: + case kAnimationModeTalk: if (_animationState < 3 || _animationState > 12) { _animationState = 13; _animationStateNext = 3; @@ -1362,7 +1362,7 @@ bool AIScriptMcCoy::ChangeAnimationMode(int mode) { break; } break; - case 5: + case kAnimationModeCombatAim: switch (_animationState) { case 17: case 18: @@ -1571,19 +1571,19 @@ bool AIScriptMcCoy::ChangeAnimationMode(int mode) { _animationFrame = 0; Player_Loses_Control(); break; - case 44: + case kAnimationModeWalkUp: _animationState = 38; _animationFrame = 0; break; - case 45: + case kAnimationModeWalkDown: _animationState = 39; _animationFrame = 0; break; - case 46: + case kAnimationModeCombatWalkUp: _animationState = 40; _animationFrame = 0; break; - case 47: + case kAnimationModeCombatWalkDown: _animationState = 41; _animationFrame = 0; break; @@ -1631,13 +1631,13 @@ bool AIScriptMcCoy::ChangeAnimationMode(int mode) { _animationState = 70; } break; - case 64: - case 66: + case kAnimationModeClimbUp: + case kAnimationModeCombatClimbUp: _animationState = 42; _animationFrame = 0; break; - case 65: - case 67: + case kAnimationModeClimbDown: + case kAnimationModeCombatClimbDown: _animationState = 43; _animationFrame = 0; break; diff --git a/engines/bladerunner/script/ai/officer_leary.cpp b/engines/bladerunner/script/ai/officer_leary.cpp index d51b7d8b16..b18ba0869f 100644 --- a/engines/bladerunner/script/ai/officer_leary.cpp +++ b/engines/bladerunner/script/ai/officer_leary.cpp @@ -941,7 +941,7 @@ bool AIScriptOfficerLeary::ChangeAnimationMode(int mode) { _animationState = 4; _animationFrame = 0; break; - case 3: + case kAnimationModeTalk: if (_animationState == 1) { _animationState = 2; _animationStateNext = 11; @@ -979,7 +979,7 @@ bool AIScriptOfficerLeary::ChangeAnimationMode(int mode) { break; } break; - case 6: + case kAnimationModeCombatShoot: _animationState = 24; _animationFrame = 0; break; @@ -1140,19 +1140,19 @@ bool AIScriptOfficerLeary::ChangeAnimationMode(int mode) { case 28: Game_Flag_Set(199); break; - case 44: + case kAnimationModeWalkUp: _animationState = 5; _animationFrame = 0; break; - case 45: + case kAnimationModeWalkDown: _animationState = 6; _animationFrame = 0; break; - case 46: + case kAnimationModeCombatWalkUp: _animationState = 9; _animationFrame = 0; break; - case 47: + case kAnimationModeCombatWalkDown: _animationState = 10; _animationFrame = 0; break; diff --git a/engines/bladerunner/script/ai/runciter.cpp b/engines/bladerunner/script/ai/runciter.cpp index 18b7ae97a0..afefa43c60 100644 --- a/engines/bladerunner/script/ai/runciter.cpp +++ b/engines/bladerunner/script/ai/runciter.cpp @@ -500,7 +500,7 @@ bool AIScriptRunciter::ChangeAnimationMode(int mode) { _animationNext = 526; } break; - case 3: + case kAnimationModeTalk: if (_animationState != 0) { _animationState = 2; _animationFrame = 0; |