Eaten By Bubba: Difference between revisions

Jump to navigation Jump to search
add intangible note
(what an amazing suggestion)
 
(add intangible note)
Line 13: Line 13:
|related=
|related=
}}
}}
'''Eaten by Bubba''' is an action that happens when Mario is eaten by [[Bubba]]. Interacting with Bubba (i.e. being eaten by Bubba) is the only way to enter this action.
'''Eaten by Bubba''' is an action that happens when Mario is eaten by [[Bubba]]. Interacting with Bubba (i.e. being eaten by Bubba) is the only way to enter this action.
== Interactions ==
== Interactions ==
When interacting with Bubba, the following happens:
When interacting with Bubba, the following happens:
* Bubba's interaction state becomes <code>INT_STATUS_INTERACTED</code>
* Bubba's interaction state becomes <code>INT_STATUS_INTERACTED</code>
* Mario's <code>interactObj</code> property becomes Bubba
* Mario's <code>interactObj</code> property becomes Bubba
* Mario's action is set to ''Eaten by Bubba''
* Mario's action is set to ''Eaten by Bubba''
== Standard cutscene action cancel ==
== Standard cutscene action cancel ==
Like all Cutscene actions<ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_cutscene.c#L2689</ref>,
Like all Cutscene actions<ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_cutscene.c#L2689</ref>,
if Mario's floor type is <code>SURFACE_INSTANT_QUICKSAND</code> and <span style="color:green;">Mario's action has the <code>INVULNERABLE</code> flag</span> and <span style="color:green;">Mario's action is not [[Quicksand Death]]</span>, the action is cancelled to [[Quicksand Death]].
if Mario's floor type is <code>SURFACE_INSTANT_QUICKSAND</code> and <span style="color:green;">Mario's action has the <code>INVULNERABLE</code> flag</span> and <span style="color:green;">Mario's action is not [[Quicksand Death]]</span>, the action is cancelled to [[Quicksand Death]].


Needless to say this cannot happen in vanilla SM64 because Bubba is not near quicksand.
Needless to say this cannot happen in vanilla SM64 because Bubba is not near quicksand.
== Behavior ==
== Behavior ==
The <code>act_eaten_by_bubba</code> function does the following: <ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_cutscene.c#L751</ref>
The <code>act_eaten_by_bubba</code> function does the following: <ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_cutscene.c#L751</ref>
* If Mario does not have the <code>MARIO_ACTION_SOUND_PLAYED</code> flag, then add the flag to Mario and play <code>SOUND_MARIO_DYING</code>
* If Mario does not have the <code>MARIO_ACTION_SOUND_PLAYED</code> flag, then add the flag to Mario and play <code>SOUND_MARIO_DYING</code>
* Mario's animation becomes <code>MARIO_ANIM_A_POSE</code>
* Mario's animation becomes <code>MARIO_ANIM_A_POSE</code>
Line 39: Line 31:
* Set Mario's [[health]] to <code>0xFF</code> (makes Mario die)
* Set Mario's [[health]] to <code>0xFF</code> (makes Mario die)
* If the <code>actionTimer</code> is 60, <code>level_trigger_warp(m, WARP_OP_DEATH)</code> (basically black screen and bowser laugh and warp)
* If the <code>actionTimer</code> is 60, <code>level_trigger_warp(m, WARP_OP_DEATH)</code> (basically black screen and bowser laugh and warp)
 
The function returns <code>false</code> in all cases, exiting the action loop. Basically it cannot be cancelled into any other action, except for the quicksand possibility mentioned earlier. Note that Mario can't escape from this action by interacting with an object either, since this action has the "intangible" flag. (See https://ukikipedia.net/wiki/Action#Frame step 8)
The function returns <code>false</code> in all cases, exiting the action loop. Basically it cannot be cancelled into any other action, except for the quicksand possibility mentioned earlier. (See https://ukikipedia.net/wiki/Action#Frame step 8)
 
{{actions}}
{{actions}}
246

edits

Navigation menu