mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-26 14:03:01 +00:00
Allow bubbled players to go through vanish cap walls
This commit is contained in:
parent
4ab4a109da
commit
149859e5ab
2 changed files with 3 additions and 0 deletions
|
@ -397,6 +397,8 @@ void mario_set_bubbled(struct MarioState* m) {
|
|||
gCamera->cutscene = 0;
|
||||
m->statusForCamera->action = m->action;
|
||||
m->statusForCamera->cameraEvent = 0;
|
||||
m->marioObj->activeFlags |= ACTIVE_FLAG_MOVE_THROUGH_GRATE;
|
||||
|
||||
extern s16 gCutsceneTimer;
|
||||
gCutsceneTimer = 0;
|
||||
|
||||
|
|
|
@ -942,6 +942,7 @@ s32 act_bubbled(struct MarioState* m) {
|
|||
|
||||
// pop bubble
|
||||
if (m->playerIndex == 0 && distanceToPlayer < 120 && is_player_active(targetMarioState) && m->numLives != -1) {
|
||||
m->marioObj->activeFlags &= ~ACTIVE_FLAG_MOVE_THROUGH_GRATE;
|
||||
m->hurtCounter = 0;
|
||||
m->healCounter = 31;
|
||||
m->health = 0x100;
|
||||
|
|
Loading…
Reference in a new issue