Crouching: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
No edit summary
(extract stationary cancels, add into)
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
|group= Stationary
|group= Stationary
|id= 0x020
|id= 0x020
|into=
|into=[[Water Plunge]], [[Squished]], [[Standing Death]] (theoretically), [[Quicksand Death]], [[Shockwave Bounce]], [[Backflip]], [[Begin Sliding]], [[Stop Crouching]], [[Punching]]
|out of=
|out of=
|animation= 0x98
|animation= 0x98
Line 13: Line 13:
}}
}}
'''Crouching''' is the action where Mario squats down, making himself shorter. This action leads into other actions like backflips and crawling.
'''Crouching''' is the action where Mario squats down, making himself shorter. This action leads into other actions like backflips and crawling.
 
==Behavior==
== Behavior ==
''Certain things here are more explained on their individual pages. If something lacks detail, check the link for more information.''
''Certain things here are more explained on their individual pages. If something lacks detail, check the link for more information.''


As with all stationary actions, a variety of "cancels" are checked prior to actually performing the crouching action. These checks are as follows:
Before performing the action, [[Idle#Stationary%20cancels|stationary cancels]] are checked.
 
# Water - If Mario's height is lower than 100 units below the water height:
#* The camera preset is updated.
#* The action is transitioned into the [[Water Plunge|water plunge]] action.
#* This stops the crouching action.
# Squish - If Mario is supposed to be squished:
#* The camera preset is updated.
#* Mario's action is changed to the [[squished]] action.
#* This stops the crouching action.
# If the action is not the unused [[0x0E action]] (always true) and Mario has less than 0x100 health:
#* The camera preset is updated.
#* Mario's action is changed to the [[Standing Death|standing death]] action.
#* This stops the crouching action.
# Lastly, Mario interacts with [[quicksand]] if his floor is a quicksand floor.


With the crouching action occurring, the following happens:
With the crouching action occurring, the following happens:
# If Mario is shocked by a Bowser shock wave, his action is set to the [[Shockwave Bounce|shockwave bounce]] action. This exits the crouching action.
#If Mario is shocked by a Bowser shock wave, his action is set to [[Shockwave Bounce|shockwave bounce]].
# If A is pressed, Mario's action is set to the [[backflip]] action. This exits the crouching action.
# If A is pressed, Mario's action is set to [[backflip]].
# If Mario is off the floor (has the "off floor" flag), Mario's action is set to [[freefall]]. This exits the crouching action.
# If Mario is off the floor (has the "off floor" flag), Mario's action is set to [[freefall]].
# If Mario is above a slide floor (has the "above slide" flag), Mario's action is set to the [[Begin Sliding|begin sliding]] action. This exits the crouching action.
# If Mario is above a slide floor (has the "above slide" flag), Mario's action is set to [[Begin Sliding|begin sliding]].
# If Mario enters first person or the Z button is no longer held, Mario's action is set to the [[Stop Crouching|stop crouching]] action. This exits the crouching action.
# If Mario enters first person or the Z button is no longer held, Mario's action is set to [[Stop Crouching|stop crouching]].
# If the joystick is held in any direction, Mario's action is set to the [[crawling]] action. This exits the crouching action.
# If the joystick is held in any direction, Mario's action is set to [[crawling]] action.
# If B is pressed, Mario's action is set to the [[punching]] action with an action argument of 9. This exits the crouching action.
# If B is pressed, Mario's action is set to [[punching]] with an action argument of 9.
# Now, Mario performs the quarter-frame movement via a full [[Movement_Steps#Stationary_Step|common stationary step]].
# Now, Mario performs the quarter-frame movement via a full [[Movement_Steps#Stationary_Step|common stationary step]].
# Mario's animation is set to the crouching animation now.
#Mario's animation is set to the crouching animation now.
{{actions}}
<references />

Latest revision as of 00:24, 7 March 2023

Crouching
Properties
Official Name Squat
Hex 0x0C008220
Action Flags Stationary, Short Hitbox, Allow First Person, Pause Exit
Action Group Stationary
ID 0x020
Transitions
Into Water Plunge, Squished, Standing Death (theoretically), Quicksand Death, Shockwave Bounce, Backflip, Begin Sliding, Stop Crouching, Punching
Other
Animation 0x98

Crouching is the action where Mario squats down, making himself shorter. This action leads into other actions like backflips and crawling.

Behavior

Certain things here are more explained on their individual pages. If something lacks detail, check the link for more information.

Before performing the action, stationary cancels are checked.

With the crouching action occurring, the following happens:

  1. If Mario is shocked by a Bowser shock wave, his action is set to shockwave bounce.
  2. If A is pressed, Mario's action is set to backflip.
  3. If Mario is off the floor (has the "off floor" flag), Mario's action is set to freefall.
  4. If Mario is above a slide floor (has the "above slide" flag), Mario's action is set to begin sliding.
  5. If Mario enters first person or the Z button is no longer held, Mario's action is set to stop crouching.
  6. If the joystick is held in any direction, Mario's action is set to crawling action.
  7. If B is pressed, Mario's action is set to punching with an action argument of 9.
  8. Now, Mario performs the quarter-frame movement via a full common stationary step.
  9. Mario's animation is set to the crouching animation now.