aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/ai-player.cpp12
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) {