diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/constants.h | 3 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene04.cpp | 14 |
2 files changed, 15 insertions, 2 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index fd1a0112b0..0ca1dd503d 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -118,6 +118,7 @@ namespace Fullpipe { #define MV_MAN_TOLADDER 448 #define MV_MAN_TOLADDER2 2841 #define MV_MAN_TURN_LU 486 +#define MV_PNK_WEIGHTRIGHT 502 #define MV_SPK4_PLAY 3276 #define PIC_CMN_EVAL 3468 #define PIC_CSR_DEFAULT 4891 @@ -180,6 +181,7 @@ namespace Fullpipe { #define QU_INTR_FINISH 5138 #define QU_INTR_GETUPMAN 5136 #define QU_INTR_STARTINTRO 5133 +#define QU_PNK_CLICK 550 #define QU_SC3_ENTERLIFT 2779 #define QU_SC3_EXITLIFT 2808 #define SC_1 301 @@ -236,6 +238,7 @@ namespace Fullpipe { #define SC_TITLES 5166 #define SND_4_010 3125 #define SND_4_012 3127 +#define SND_4_033 4990 #define SND_CMN_031 3516 #define SND_CMN_070 5199 #define SND_INTR_019 5220 diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp index 119fed5041..6db3359bd7 100644 --- a/engines/fullpipe/scenes/scene04.cpp +++ b/engines/fullpipe/scenes/scene04.cpp @@ -217,7 +217,8 @@ void sceneHandlers_sub01(ExCommand *ex) { } void sceneHandler04_clickBottle() { - warning("sceneHandler04_clickBottle()"); + if (!g_vars->scene04_var02) + g_vars->scene04_var20 += 5; } void sceneHandler04_clickButton() { @@ -228,8 +229,17 @@ void sceneHandler04_clickLadder() { warning("sceneHandler04_clickLadder()"); } +void sceneHandler04_sub13() { + warning("sceneHandler04_sub13()"); +} + void sceneHandler04_clickPlank() { - warning("sceneHandler04_clickPlank()"); + if (sceneHandler04_friesAreWalking()) + sceneHandler04_sub13(); + else if (g_vars->scene04_var01) + g_fullpipe->playSound(SND_4_033, 0); + else if (!g_vars->scene04_soundPlaying) + chainQueue(QU_PNK_CLICK, 0); } void sceneHandler04_dropBottle() { |