aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-22 00:57:48 +0200
committerEugene Sandulenko2013-12-22 00:58:42 +0200
commit9ef756e8d7062999052d71e512a996c80c70af4c (patch)
treef59b65789fb4b7f9fc0127fe298e6864b043471d
parentbccb4d8f00b6f5abf404bcabbd53817c4d407a83 (diff)
downloadscummvm-rg350-9ef756e8d7062999052d71e512a996c80c70af4c.tar.gz
scummvm-rg350-9ef756e8d7062999052d71e512a996c80c70af4c.tar.bz2
scummvm-rg350-9ef756e8d7062999052d71e512a996c80c70af4c.zip
FULLPIPE: Implement sceneHandler08_sitDown()
-rw-r--r--engines/fullpipe/constants.h2
-rw-r--r--engines/fullpipe/scenes/scene08.cpp17
2 files changed, 17 insertions, 2 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index a55bfc8c4c..af495eec32 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -208,6 +208,7 @@ namespace Fullpipe {
#define MV_MAN_TURN_SUD 1089
#define MV_MAN6_TAKEBALL 2691
#define MV_MAN6_THROWBALL 2692
+#define MV_MAN8_SITDOWN 2968
#define MV_MANHDL_HANDLEDOWN 630
#define MV_MANHDL_HANDLEUP 631
#define MV_MOM_CYCLEBK 3012
@@ -451,6 +452,7 @@ namespace Fullpipe {
#define ST_MAN_STANDLADDER 453
#define ST_MAN_UP 449
#define ST_MAN6_BALL 2688
+#define ST_MAN8_FLYDOWN 771
#define ST_MOM_SITS 659
#define ST_MOM_STANDS 658
#define ST_NBL_NORM 1076
diff --git a/engines/fullpipe/scenes/scene08.cpp b/engines/fullpipe/scenes/scene08.cpp
index a523dd94c0..1f2d4bc4cc 100644
--- a/engines/fullpipe/scenes/scene08.cpp
+++ b/engines/fullpipe/scenes/scene08.cpp
@@ -32,6 +32,7 @@
#include "fullpipe/motion.h"
#include "fullpipe/gameloader.h"
#include "fullpipe/behavior.h"
+#include "fullpipe/interaction.h"
namespace Fullpipe {
@@ -194,7 +195,10 @@ void sceneHandler08_calcOffset() {
}
void sceneHandler08_finishArcade() {
- warning("STUB: sceneHandler08_finishArcade()");
+ g_vars->scene08_var06 = 0;
+
+ getGameLoaderInteractionController()->enableFlag24();
+ getCurrSceneSc2MotionController()->setEnabled();
}
void sceneHandler08_jumpOff() {
@@ -206,7 +210,16 @@ void sceneHandler08_pushCallback(int *par) {
}
void sceneHandler08_sitDown() {
- warning("STUB: sceneHandler08_sitDown()");
+ g_fp->_aniMan->setOXY(380, g_fp->_aniMan->_oy);
+
+ g_fp->_aniMan->changeStatics2(ST_MAN8_FLYDOWN);
+ g_fp->_aniMan->startAnim(MV_MAN8_SITDOWN, 0, -1);
+
+ g_vars->scene08_vmyats->changeStatics2(ST_VMT_MIN);
+ g_vars->scene08_vmyats->hide();
+
+ g_vars->scene08_var01 = 0;
+ g_vars->scene08_var03 = 1;
}
void sceneHandler08_standUp() {