diff options
author | Nipun Garg | 2019-06-21 21:29:55 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:54 +0200 |
commit | 16d6c638e820178e2a0bc78aa3d87a4615cc7603 (patch) | |
tree | 0ef30114629dc9665af81ab064f60f0ff2b7d6b6 | |
parent | c12d1a2cec905df6c1c0496ff11760e27d556924 (diff) | |
download | scummvm-rg350-16d6c638e820178e2a0bc78aa3d87a4615cc7603.tar.gz scummvm-rg350-16d6c638e820178e2a0bc78aa3d87a4615cc7603.tar.bz2 scummvm-rg350-16d6c638e820178e2a0bc78aa3d87a4615cc7603.zip |
HDB: Unstub aiSergeantInit/2 and aiSergeantAction
-rw-r--r-- | engines/hdb/ai-player.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/hdb/ai-player.cpp b/engines/hdb/ai-player.cpp index ff49b56b7e..4cace98e76 100644 --- a/engines/hdb/ai-player.cpp +++ b/engines/hdb/ai-player.cpp @@ -215,15 +215,21 @@ void aiDollyInit2(AIEntity *e) { } void aiSergeantInit(AIEntity *e) { - warning("STUB: AI: aiSergeantInit required"); + e->moveSpeed = kPlayerMoveSpeed >> 1; + if (e->value1) + e->aiAction = aiSergeantAction; } void aiSergeantInit2(AIEntity *e) { - warning("STUB: AI: aiSergeantInit2 required"); + e->draw = g_hdb->_ai->getStandFrameDir(e); } void aiSergeantAction(AIEntity *e) { - warning("STUB: AI: aiSergeantAction required"); + if (e->goalX) { + warning("AI-PLAYER: aiSergeantAction: Play SND_FOOTSTEPS sounds"); + g_hdb->_ai->animateEntity(e); + } else + g_hdb->_ai->animEntFrames(e); } void aiSpacedudeInit(AIEntity *e) { |