Idle: Difference between revisions

12 bytes removed ,  26 February 2023
Ahhh, these are totally different, I understand now
(→‎Behavior: Apparently someone decided to detail start crouching inside of idle)
(Ahhh, these are totally different, I understand now)
Line 16: Line 16:
''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 idle action. These checks are as follows:
As with all stationary actions, a variety of "cancels" are checked prior to actually performing the idle action. These checks are as follows:<ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_stationary.c#L1083-L1115</ref>
# If Mario is on a steep cliff, he is pushed off (into [[freefall]]).
# Water - If Mario's height is lower than 100 units below the water height:
# If Mario is hit by a shockwave, his action is set to the [[shockwave bounce]] action.
#* The camera preset is updated.
# If A is pressed, Mario's action is set to [[jump]].
#* Mario's action is set to [[Water Plunge|water plunge]].
# If Mario is off the floor, Mario's action is set to [[freefall]].
# Squish - If Mario is supposed to be squished:
# If Mario is above a slide, he [[Begin Sliding|begins sliding]].
#* The camera preset is updated.
# If Mario goes into first-person mode, his action is set to [[first person]].
#* Mario's action is set to [[squished]].
# If the joystick is held in a direction, Mario's action is set to [[walking]].
# If the action is not the unused [[0x0E action]] (always true) and Mario has less than 0x100 health:
# If B is pressed, Mario's action is set to [[punching]].
#* The camera preset is updated.
# 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>
#* Mario's action is changed to the [[Standing Death|standing death]] action.
## Water - If Mario's height is lower than 100 units below the water height:
# Lastly, Mario interacts with [[quicksand]] if his floor is a quicksand floor.
##* The camera preset is updated.
##* Mario's action is set to [[Water Plunge|water plunge]].
##* This stops the crouching action.
## Squish - If Mario is supposed to be squished:
##* The camera preset is updated.
##* Mario's action is set to [[squished]].
##* 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 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]].
# If Mario is in poison gas, his action is set to [[coughing]].
# If Mario is in poison gas, his action is set to [[coughing]].
# If Mario is not against a wall and has low health, his action is set to the [[panting action]].
# If Mario is not against a wall and has low health, his action is set to the [[panting action]].
# Common stationary cancels are checked.
#  
## If Mario is on a steep cliff, he is pushed off (into [[freefall]]).
## If Mario is hit by a shockwave, his action is set to the [[shockwave bounce]] action.
## If A is pressed, Mario's action is set to [[jump]].
## If Mario is off the floor, Mario's action is set to [[freefall]].
## If Mario is above a slide, he [[Begin Sliding|begins sliding]].
## If Mario goes into first-person mode, his action is set to [[first person]].
## 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 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>
# If Mario's animation has just ended, his head has turned 10 times, and there is ground behind him (that is not an object)
# If Mario's animation has just ended, his head has turned 10 times, and there is ground behind him (that is not an object)
## If Mario is in a cold environment, he starts to [[Shivering|shiver]], else he goes into the [[Start Sleeping|start sleeping]] action.
## If Mario is in a cold environment, he starts to [[Shivering|shiver]], else he goes into the [[Start Sleeping|start sleeping]] action.
# If Mario is against a wall, Mario has his animation changed to be standing against the wall. Otherwise, Mario's animation is set depending on which way he is turning his head.
# If Mario is against a wall, Mario has his animation changed to be standing against the wall. Otherwise, Mario's animation is set depending on which way he is turning his head.
{{actions}}
{{actions}}
192

edits