Walking: Difference between revisions
Jump to navigation
Jump to search
Icecream17 (talk | contribs) (even worse basic start than slide kick) |
Icecream17 (talk | contribs) (neutral joystick) |
||
Line 12: | Line 12: | ||
|related= | |related= | ||
}} | }} | ||
When walking<ref>https://github.com/n64decomp/sm64/blob/master/src/game/mario_actions_moving.c#L777</ref>: | When walking<ref>https://github.com/n64decomp/sm64/blob/master/src/game/mario_actions_moving.c#L777</ref>: | ||
# mario_drop_held_object | # mario_drop_held_object | ||
# if should_begin_sliding; [[Begin Sliding]] | # if should_begin_sliding; [[Begin Sliding]] | ||
Line 26: | Line 24: | ||
## if forwardVel >= 29 and stickMag > 48; yVel=20; [[Dive]] | ## if forwardVel >= 29 and stickMag > 48; yVel=20; [[Dive]] | ||
## else; [[Move Punching]] | ## else; [[Move Punching]] | ||
# if INPUT_UNKNOWN_5; (same as INPUT_FIRST_PERSON) | # if INPUT_UNKNOWN_5 (aka neutral joystick: https://ukikipedia.net/mediawiki/index.php?title=Turning_Around&oldid=17030); (same code as INPUT_FIRST_PERSON) | ||
# if analog_stick_held_back and forwardVel >= 16; [[Turning Around]] | # if analog_stick_held_back and forwardVel >= 16; [[Turning Around]] | ||
# if INPUT_Z_PRESSED; [[Crouch Slide]] | # if INPUT_Z_PRESSED; [[Crouch Slide]] | ||
Line 32: | Line 30: | ||
# case GROUND_STEP_LEFT_GROUND; [[Freefall]] | # case GROUND_STEP_LEFT_GROUND; [[Freefall]] | ||
# case GROUND_STEP_HIT_WALL; push_or_sidle_wall | # case GROUND_STEP_HIT_WALL; push_or_sidle_wall | ||
==References== | ==References== | ||
<references /> | <references /> | ||
{{actions}} | {{actions}} |
Revision as of 01:10, 11 August 2022
Walking | |
Properties | |
Hex | todo |
Action Flags | todo |
Action Group | Moving |
ID | todo |
When walking[1]:
- mario_drop_held_object
- if should_begin_sliding; Begin Sliding
- if INPUT_FIRST_PERSON:
- mario_drop_held_object
- if actionState == 1; Standing Against Wall
- if forwardVel >= 16 and m->floor->normal.y >= 0.17364818; Braking
- else; Decelerating
- if INPUT_A_PRESSED; (todo; see ref) [2]
- if INPUT_B_PRESSED;
- if forwardVel >= 29 and stickMag > 48; yVel=20; Dive
- else; Move Punching
- if INPUT_UNKNOWN_5 (aka neutral joystick: https://ukikipedia.net/mediawiki/index.php?title=Turning_Around&oldid=17030); (same code as INPUT_FIRST_PERSON)
- if analog_stick_held_back and forwardVel >= 16; Turning Around
- if INPUT_Z_PRESSED; Crouch Slide
- more code
- case GROUND_STEP_LEFT_GROUND; Freefall
- case GROUND_STEP_HIT_WALL; push_or_sidle_wall