summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/koopatlas/pathmanager.cpp30
1 files changed, 24 insertions, 6 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp
index 70f3fab..bb6cc52 100644
--- a/src/koopatlas/pathmanager.cpp
+++ b/src/koopatlas/pathmanager.cpp
@@ -4,6 +4,8 @@
#include "koopatlas/player.h"
#include <sfx.h>
+extern "C" void PlaySoundWithFunctionB4(void *spc, void *handle, int id, int unk);
+
static u8 MaybeFinishingLevel[2] = {0xFF,0xFF};
void dWMPathManager_c::setup() {
@@ -329,7 +331,9 @@ void dWMPathManager_c::execute() {
countdownToFadeIn--;
if (countdownToFadeIn <= 0) {
unlockingAlpha = 0;
- MapSoundPlayer(SoundRelatedClass, SE_SYS_NEW_POINT, 1);
+
+ u32 something = 0;
+ PlaySoundWithFunctionB4(SoundRelatedClass, &something, SE_OBJ_GEN_LOAD, 1);
} else {
return;
}
@@ -355,7 +359,8 @@ void dWMPathManager_c::execute() {
if (unlockingAlpha == 255) {
// we've reached the end
unlockingAlpha = -1;
- MapSoundPlayer(SoundRelatedClass, SE_SYS_NEW_POINT_END, 1);
+ u32 something = 0;
+ PlaySoundWithFunctionB4(SoundRelatedClass, &something, SE_OBJ_GEN_NEW_COURSE, 1);
waitAfterUnlock = 15;
for (int i = 0; i < pathLayer->nodeCount; i++) {
@@ -539,8 +544,15 @@ void dWMPathManager_c::startMovementTo(dKPPath_s *path) {
if (Animations[id].initialEffect)
SpawnEffect(Animations[id].initialEffect, 0, &player->pos, 0, &player->scale);
- if (Animations[id].initialSound != SE_NULL)
- MapSoundPlayer(SoundRelatedClass, Animations[id].initialSound, 1);
+ if (Animations[id].initialSound != SE_NULL) {
+ u32 something = 0;
+ PlaySoundWithFunctionB4(SoundRelatedClass, &something, Animations[id].initialSound, 1);
+
+ if (Animations[id].initialSound == SE_PLY_JUMP) {
+ u32 something2 = 0;
+ PlaySoundWithFunctionB4(SoundRelatedClass, &something2, SE_VOC_MA_CS_JUMP, 1);
+ }
+ }
}
void dWMPathManager_c::moveThroughPath() {
@@ -743,11 +755,17 @@ void dWMPathManager_c::activatePoint() {
SpammyReport("Toad House Flags: %x", conds);
if (conds & 0xFF0) {
- MapSoundPlayer(SoundRelatedClass, SE_SYS_INVALID, 1);
+ u32 something = 0;
+ PlaySoundWithFunctionB4(SoundRelatedClass, &something, SE_SYS_INVALID, 1);
return; }
}
- MapSoundPlayer(SoundRelatedClass, SE_SYS_GAME_START, 1);
+ u32 something = 0;
+ PlaySoundWithFunctionB4(SoundRelatedClass, &something, SE_SYS_GAME_START, 1);
+
+ u32 something2 = 0;
+ PlaySoundWithFunctionB4(SoundRelatedClass, &something2, SE_VOC_MA_CS_COURSE_IN_HARD, 1);
+
daWMPlayer_c::instance->startAnimation(170, 1.2, 10.0, 0.0);
daWMPlayer_c::instance->rot.y = 0;