From b128b8cacb1cd57d4245d0bbb31db5a66be78aff Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 3 Feb 2014 21:04:32 +0200 Subject: FULLPIPE: Implement sceneHandler27_startAiming() --- engines/fullpipe/scenes/scene27.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'engines/fullpipe/scenes') diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp index 870cff9ece..63b4964fc5 100644 --- a/engines/fullpipe/scenes/scene27.cpp +++ b/engines/fullpipe/scenes/scene27.cpp @@ -189,7 +189,24 @@ void sceneHandler27_startBat(StaticANIObject *bat) { } void sceneHandler27_startAiming() { - warning("STUB: sceneHandler27_startAiming()"); + g_vars->scene27_var08 = 0; + g_vars->scene27_var09 = 0; + + g_fp->_aniMan->_callback2 = 0; + + g_vars->scene27_launchPhase = g_fp->_aniMan->_movement->_currDynamicPhaseIndex - 6; + + int phase = 21 - g_vars->scene27_launchPhase; + + if (phase < 14) + phase = 14; + + if (phase > 20) + phase = 20; + + g_fp->playSound(SND_27_044, 0); + + g_fp->_aniMan->_movement->setDynamicPhaseIndex(phase); } void sceneHandler27_sub04(ExCommand *cmd) { -- cgit v1.2.3