diff options
author | Treeki <treeki@gmail.com> | 2013-02-14 23:37:13 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-02-14 23:37:13 +0100 |
commit | 91cfbdaa8cba3d6b671d67fb435ce49dc3ef4dd5 (patch) | |
tree | dc216b8dfca3a0ea90a6ec52dd617efed69770fd /src/boss.cpp | |
parent | d7ee15837bd760bbfefb3d40ffa2b0cab54960be (diff) | |
download | kamek-91cfbdaa8cba3d6b671d67fb435ce49dc3ef4dd5.tar.gz kamek-91cfbdaa8cba3d6b671d67fb435ce49dc3ef4dd5.zip |
added the boss victory anim, hopefully it works in MP too, I have no idea
Diffstat (limited to 'src/boss.cpp')
-rw-r--r-- | src/boss.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
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);*/ } |