Idle: Difference between revisions

222 bytes added ,  4 June 2023
no edit summary
(add start sleeping and sleeping to related)
No edit summary
Line 7: Line 7:
|group= Stationary
|group= Stationary
|id= 0x001
|id= 0x001
|into=[[Water Plunge]], [[Squished]], [[Standing Death]], [[Quicksand Death]], [[In Quicksand]], [[Coughing]], [[Panting]], [[Freefall]], [[Shockwave Bounce]], [[Hold Quicksand Jump Land]], [[Quicksand Jump Land]], [[Steep Jump]], [[Jump]], [[Begin Sliding]], [[First Person Action]], [[Walking]], [[Punching]], [[Start Crouching]], [[Shivering]], [[Start Sleeping]]
|into=stationary cancels: [[Water Plunge]], [[Squished]], [[Standing Death]], [[Quicksand Death]]; other idle cancels: [[In Quicksand]], [[Coughing]], [[Panting]]; common idle cancels: [[Freefall]], [[Shockwave Bounce]], [[Hold Quicksand Jump Land]], [[Quicksand Jump Land]], [[Steep Jump]], [[Jump]], [[Begin Sliding]], [[First Person Action]], [[Walking]], [[Punching]], [[Start Crouching]]; non cancel: [[Shivering]], [[Start Sleeping]]
|out of=
|out of=
|animation= 0xC3, 0xC4, 0xC5
|animation= 0x75 (standing against wall), 0xC3 (idle head left), 0xC4 (idle head right), 0xC5 (idle head center)
|related= [[Panting]], [[Standing Against Wall]], [[Coughing]], [[Shivering]], [[Start Sleeping]], [[Sleeping]]
|related= [[Panting]], [[Standing Against Wall]], [[Coughing]], [[Shivering]], [[Start Sleeping]], [[Sleeping]]
}}
}}
Line 20: Line 20:
When performing the Idle action, the following happens:
When performing the Idle action, the following happens:
# If Mario has sunk more than 30 units into quicksand, his action is set to [[In Quicksand|in quicksand]].
# If Mario has sunk more than 30 units into quicksand, his action is set to [[In Quicksand|in quicksand]].
# If Mario is in poison gas, his action is set to [[coughing]].
# If Mario is in poison gas AND he is not standing against the wall, 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]].
# [[Idle#Check%20common%20idle%20cancels|check_common_idle_cancels]]
# [[Idle#Check%20common%20idle%20cancels|check_common_idle_cancels]]
Line 26: Line 26:
## 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.
# stationary_ground_step
== Stationary cancels ==
== Stationary cancels ==
A variety of "cancels" are checked prior to actually performing any stationary action. These checks are as follows:<ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_stationary.c#L1083-L1115</ref>
A variety of "cancels" are checked prior to actually performing any stationary action. These checks are as follows:<ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_stationary.c#L1083-L1115</ref>
192

edits