Start Sleeping: Difference between revisions
Jump to navigation
Jump to search
(Finished, can remove stub now?) |
Icecream17 (talk | contribs) (→Conditions for Action to Occur: link to pant) |
||
Line 13: | Line 13: | ||
|related= Sleep action, [[Waking up]] | |related= Sleep action, [[Waking up]] | ||
}} | }} | ||
The '''start sleeping''' actions the occurs when [[Mario]] has performed ten head turn cycles successively whilst [[idle]]. The start sleeping action transitions into the [[sleeping action]] after Mario has finished the nodding animation. | The '''start sleeping''' actions the occurs when [[Mario]] has performed ten head turn cycles successively whilst [[idle]]. The start sleeping action transitions into the [[sleeping action]] after Mario has finished the nodding animation. | ||
==Conditions for Action to Occur== | ==Conditions for Action to Occur== | ||
Line 22: | Line 21: | ||
**Be in [[snowy terrain]] (he will [[shiver]]) | **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== | ==Behavior== |
Revision as of 01:50, 26 February 2023
Start Sleeping | |
Properties | |
Hex | 0x0C400202 |
Action Flags | Stationary, Idle, Allow First Person, Pause Exit |
Action Group | Stationary |
ID | 0x002 |
Transitions | |
Into | Sleeping action |
Out of | Idle |
Related Actions | |
Related | Sleep action, Waking up |
The start sleeping actions the occurs when Mario has performed ten head turn cycles successively whilst idle. The start sleeping action transitions into the sleeping action 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 quicksand action)
- Be in snowy terrain (he will shiver)
- Mario has to:
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 quicksand action
- Mario plays the following animations:
- MARIO_ANIM_START_SLEEP_IDLE
- MARIO_ANIM_START_SLEEP_SCRATCH
- MARIO_ANIM_START_SLEEP_YAWN
- 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_YAWNING
- SOUND_MARIO_IMA_TIRED
- After this, Mario will begin sleeping.