Start Sleeping

From Ukikipedia
Revision as of 00:19, 7 March 2023 by Icecream17 (talk | contribs) (more details)
Jump to navigation Jump to search
Start Sleeping
Properties
Hex 0x0C400202
Action Flags Stationary, Idle, Allow First Person, Pause Exit
Action Group Stationary
ID 0x002
Transitions
Into Water Plunge, Squished, Standing Death (theoretically), Quicksand Death, In Quicksand, Freefall, Shockwave Bounce (theoretically), Jump, Begin Sliding, First Person, Walking, Punching, Start Crouching, Sleeping
Out of Idle
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 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:
  • 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:

  • 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