Start Sleeping: Difference between revisions
Jump to navigation
Jump to search
m (changed behavior) |
Icecream17 (talk | contribs) (there's a fourth one) |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Action_infobox | ||
The '''start sleeping''' actions the occurs when Mario has performed ten head turn cycles successively. The start sleeping action transitions | |title= Start Sleeping | ||
== Conditions for Action to Occur == | |image= | ||
|official name= | |||
|hex= 0x0C400202 | |||
|flags= Stationary, Idle, Allow First Person, Pause Exit | |||
|group= Stationary | |||
|id= 0x002 | |||
|into= stationary cancels: [[Water Plunge]], [[Squished]], [[Standing Death]] (theoretically), [[Quicksand Death]], common idle cancels: [[Freefall]], [[Shockwave Bounce]] (theoretically), [[Jump]], [[Begin Sliding]], [[First Person]], [[Walking]], [[Punching]], [[Start Crouching]], non cancel: [[In Quicksand]], [[Sleeping]] | |||
|out of= [[Idle]] | |||
|animation=0x81 START_SLEEP_IDLE, 0x82 START_SLEEP_SCRATCH, 0x83 START_SLEEP_YAWN, 0x84 START_SLEEP_SITTING | |||
|related= [[Sleeping]], [[Waking up]] | |||
}} | |||
The '''start sleeping''' actions the occurs when [[Mario]] has performed ten head turn cycles successively whilst [[idle]]. The start sleeping action transitions to [[sleeping]] after Mario has finished the nodding animation. | |||
==Conditions for Action to Occur== | |||
In order for Mario to start sleeping, he has to fulfill the following requirements. | In order for Mario to start sleeping, he has to fulfill the following requirements. | ||
* Mario has to not | *Mario has to not: | ||
** | **Be in [[poison gas]] (he will [[Coughing|cough]]) | ||
** | **Have [[quicksand]] depth above 30.0f (he will do [[In Quicksand|in quicksand]]) | ||
** | **Be in [[snowy terrain]] (he will [[shiver]]) | ||
* Mario has to: | *Mario has to: | ||
** Have health above 0x300 | **Have [[health]] above 0x300 (else he will [[Panting action|pant]]) | ||
** Completed 10 head turn cycles whilst [[idle]] without being interrupted | **Completed 10 head turn cycles whilst [[idle]] without being interrupted. | ||
== Behavior == | **Have a floor 60 units behind him (whose height is within 24 units of Mario's y position, or which has the SURFACE_FLAG_DYNAMIC flag). Objects are not floors. If there is no floor 60 units behind Mario, the height of -11000 is used. | ||
Mario performs the | Also, before performing the action, [[Idle#Stationary%20cancels|stationary cancels]] are checked. | ||
==Behavior== | |||
When Mario performs the start sleeping action, the following can be observed: | |||
*The game performs the following checks on Mario | |||
**[[Idle#Check%20common%20idle%20cancels|check_common_idle_cancels]] | |||
**If Mario has quicksand depth above 30.0f, he will do [[In Quicksand|in quicksand]] | |||
*Mario plays the following [[animations]]: | |||
**MARIO_ANIM_START_SLEEP_IDLE | |||
**MARIO_ANIM_START_SLEEP_SCRATCH | |||
**MARIO_ANIM_START_SLEEP_YAWN | |||
**MARIO_ANIM_START_SLEEP_SITTING | |||
*Mario's eye state is set to "MARIO_EYES_HALF_CLOSED" | |||
*The following [[sounds]] play: | |||
**SOUND_ACTION_PAT_BACK | |||
**SOUND_ACTION_TERRAIN_BODY_HIT_GROUND | |||
**SOUND_MARIO_IMA_TIRED (JP only) | |||
**SOUND_MARIO_YAWNING | |||
* After the SLEEP_SITTING animation has finished, Mario will [[sleeping|sleep]]. | |||
{{actions}} |
Latest revision as of 23:54, 8 July 2023
Start Sleeping | |
Properties | |
Hex | 0x0C400202 |
Action Flags | Stationary, Idle, Allow First Person, Pause Exit |
Action Group | Stationary |
ID | 0x002 |
Transitions | |
Into | stationary cancels: Water Plunge, Squished, Standing Death (theoretically), Quicksand Death, common idle cancels: Freefall, Shockwave Bounce (theoretically), Jump, Begin Sliding, First Person, Walking, Punching, Start Crouching, non cancel: In Quicksand, Sleeping |
Out of | Idle |
Other | |
Animation | 0x81 START_SLEEP_IDLE, 0x82 START_SLEEP_SCRATCH, 0x83 START_SLEEP_YAWN, 0x84 START_SLEEP_SITTING |
Related Actions | |
Related | Sleeping, Waking up |
The start sleeping actions the occurs when Mario has performed ten head turn cycles successively whilst idle. The start sleeping action transitions to sleeping after Mario has finished the nodding animation.
Conditions for Action to Occur
In order for Mario to start sleeping, he has to fulfill the following requirements.
- Mario has to not:
- Be in poison gas (he will cough)
- Have quicksand depth above 30.0f (he will do in quicksand)
- Be in snowy terrain (he will shiver)
- Mario has to:
- Have health above 0x300 (else he will pant)
- Completed 10 head turn cycles whilst idle without being interrupted.
- Have a floor 60 units behind him (whose height is within 24 units of Mario's y position, or which has the SURFACE_FLAG_DYNAMIC flag). Objects are not floors. If there is no floor 60 units behind Mario, the height of -11000 is used.
Also, before performing the action, stationary cancels are checked.
Behavior
When Mario performs the start sleeping action, the following can be observed:
- The game performs the following checks on Mario
- check_common_idle_cancels
- If Mario has quicksand depth above 30.0f, he will do in quicksand
- Mario plays the following animations:
- MARIO_ANIM_START_SLEEP_IDLE
- MARIO_ANIM_START_SLEEP_SCRATCH
- MARIO_ANIM_START_SLEEP_YAWN
- MARIO_ANIM_START_SLEEP_SITTING
- Mario's eye state is set to "MARIO_EYES_HALF_CLOSED"
- The following sounds play:
- SOUND_ACTION_PAT_BACK
- SOUND_ACTION_TERRAIN_BODY_HIT_GROUND
- SOUND_MARIO_IMA_TIRED (JP only)
- SOUND_MARIO_YAWNING
- After the SLEEP_SITTING animation has finished, Mario will sleep.