Permalink
Browse files

BLADERUNNER: Fixed Gordo animation change

He will stop properly after running
  • Loading branch information...
peterkohaut committed Feb 9, 2019
1 parent a0e9b09 commit fe25ad1a830a85a8644034c81f2d152f59f33591
Showing with 22 additions and 15 deletions.
  1. +1 −1 engines/bladerunner/game_constants.h
  2. +21 −14 engines/bladerunner/script/ai/gordo.cpp
@@ -38,7 +38,7 @@ enum Actors {
kActorCrazylegs = 9,
kActorLuther = 10,
kActorGrigorian = 11,
kActorTransient = 12,
kActorTransient = 12, // Homeless
kActorLance = 13,
kActorBulletBob = 14,
kActorRunciter = 15,
@@ -253,8 +253,8 @@ bool AIScriptGordo::ShotAtAndHit() {

// Shot as a human
if (Actor_Query_Goal_Number(kActorGordo) > 239
&& Actor_Query_Goal_Number(kActorGordo) < 245)
{
&& Actor_Query_Goal_Number(kActorGordo) < 245
) {
Actor_Set_Goal_Number(kActorGordo, kGoalGordoNR01Die);
Delay(1500);
Actor_Voice_Over(2410, kActorVoiceOver);
@@ -1217,22 +1217,29 @@ bool AIScriptGordo::ChangeAnimationMode(int mode) {
switch (_animationState) {
case 0:
break;
case 1:
case 3:
case 38:
case 39:
_animationState = 0;
_animationFrame = 0;
_state = 0;
_counterTarget = 0;
break;
case 2:
case 13:
Actor_Change_Animation_Mode(kActorGordo, 53);
Actor_Change_Animation_Mode(kActorGordo, kAnimationModeSit);
break;
default:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 36:
case 37:
var_45B078 = 1;
break;
default:
_animationState = 0;
_animationFrame = 0;
_state = 0;
_counterTarget = 0;
break;
}
break;

@@ -1496,7 +1503,7 @@ bool AIScriptGordo::ChangeAnimationMode(int mode) {
_animationFrame = 0;
break;

case 53:
case kAnimationModeSit:
_animationState = 2;
_animationFrame = 0;
break;

0 comments on commit fe25ad1

Please sign in to comment.