Idle: Difference between revisions

120 bytes added ,  26 February 2023
→‎Behavior: Apparently someone decided to detail start crouching inside of idle
(transitions --> into based on https://github.com/n64decomp/sm64/blob/master/src/game/mario_actions_stationary.c#L105)
(→‎Behavior: Apparently someone decided to detail start crouching inside of idle)
Line 25: Line 25:
# If the joystick is held in a direction, Mario's action is set to [[walking]].
# If the joystick is held in a direction, Mario's action is set to [[walking]].
# If B is pressed, Mario's action is set to [[punching]].
# If B is pressed, Mario's action is set to [[punching]].
# If Z is pressed, Mario's action is set to [[crouching]].
# If Z is pressed, Mario's action is set to [[start crouching]].<ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_stationary.c#L20-L60</ref>
# Water - If Mario's height is lower than 100 units below the water height:
## Water - If Mario's height is lower than 100 units below the water height:
#* The camera preset is updated.
##* The camera preset is updated.
#* The action is transitioned into the [[Water Plunge|water plunge]] action.
##* Mario's action is set to [[Water Plunge|water plunge]].
#* This stops the crouching action.
##* This stops the crouching action.
# Squish - If Mario is supposed to be squished:
## Squish - If Mario is supposed to be squished:
#* The camera preset is updated.
##* The camera preset is updated.
#* Mario's action is changed to the [[squished]] action.
##* Mario's action is set to [[squished]].
#* This stops the crouching action.
##* This stops the crouching action.
# If the action is not the unused [[0x0E action]] (always true) and Mario has less than 0x100 health:
## If the action is not the unused [[0x0E action]] (always true) and Mario has less than 0x100 health:
#* The camera preset is updated.
##* The camera preset is updated.
#* Mario's action is changed to the [[Standing Death|standing death]] action.
##* Mario's action is changed to the [[Standing Death|standing death]] action.
#* This stops the crouching action.
##* This stops the crouching action.
# Lastly, Mario interacts with [[quicksand]] if his floor is a quicksand floor.
## Lastly, Mario interacts with [[quicksand]] if his floor is a quicksand floor.
With the Idle action occurring, the following happens:
With the Idle action occurring, the following happens:
# If Mario has sunk more than 30 units into quicksand, his action is set to the [[quicksand action]].
# If Mario has sunk more than 30 units into quicksand, his action is set to the [[quicksand action]].
192

edits