From 91cfbdaa8cba3d6b671d67fb435ce49dc3ef4dd5 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 14 Feb 2013 23:37:13 +0100 Subject: added the boss victory anim, hopefully it works in MP too, I have no idea --- src/boss.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/boss.cpp') diff --git a/src/boss.cpp b/src/boss.cpp index 22553ff..9ec7ad3 100644 --- a/src/boss.cpp +++ b/src/boss.cpp @@ -136,13 +136,23 @@ void BossExplode(daBoss *actor, Vec *pos) { nw4r::snd::SoundHandle handle; PlaySoundWithFunctionB4(SoundRelatedClass, &handle, STRM_BGM_SHIRO_BOSS_CLEAR, 1); - MakeMarioEnterDemoMode(); + + //MakeMarioEnterDemoMode(); + BossGoalForAllPlayers(); +} + +void BossGoalForAllPlayers() { + for (int i = 0; i < 4; i++) { + daPlBase_c *player = GetPlayerOrYoshi(i); + if (player) + player->setAnimePlayStandardType(2); + } } void PlayerVictoryCries(daBoss *actor) { UpdateGameMgr(); - nw4r::snd::SoundHandle handle1, handle2, handle3, handle4; + /*nw4r::snd::SoundHandle handle1, handle2, handle3, handle4; dAcPy_c *players[4]; for (int i = 0; i < 4; i++) @@ -155,5 +165,5 @@ void PlayerVictoryCries(daBoss *actor) { if (players[2] && strcmp(players[2]->states2.getCurrentState()->getName(), "dAcPy_c::StateID_Balloon")) PlaySoundWithFunctionB4(SoundRelatedClass, &handle3, SE_VOC_KO_CLEAR_BOSS, 1); if (players[3] && strcmp(players[3]->states2.getCurrentState()->getName(), "dAcPy_c::StateID_Balloon")) - PlaySoundWithFunctionB4(SoundRelatedClass, &handle4, SE_VOC_KO2_CLEAR_BOSS, 1); + PlaySoundWithFunctionB4(SoundRelatedClass, &handle4, SE_VOC_KO2_CLEAR_BOSS, 1);*/ } -- cgit v1.2.3