Riding Shell Fall

From Ukikipedia
Revision as of 00:17, 21 July 2023 by Icecream17 (talk | contribs) (Icecream17 moved page Riding Shell Air to Riding Shell Fall: it was renamed: https://github.com/n64decomp/sm64/blob/master/include/sm64.h#L273)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Riding Shell Air
Properties
Hex 0x0081089B
Action Flags Air, Riding Shell, Attacking
Action Group Airborne
ID 0x09B
Other
Animation 0x4A

The riding shell air action is the action Mario enters while in the air while riding a shell.

Behavior

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

As with all airborne actions, a variety of "cancels" are checked prior to actually performing the riding shell air action. These checks are as follows:

  1. Water - If Mario's height is lower than 100 units below the water height, the action is transitioned into the water plunge action.
  2. Squish - If Mario is supposed to be squished, his action is changed to the squished action.

At this point, two more things happen prior to the riding shell air action:

  • Mario's quicksand depth is set to 0.
  • Mario plays a falling noise if he has fallen more than 1150 units from his peak.

With the riding shell air action occurring, the following happens:

  1. Mario plays the movement sounds.
  2. Mario's animation is set to the shell jump animation.
  3. Mario updates his speed/sideways position via straining.
  4. Now, Mario performs the quarter-frame movement via a partial air step with no flags. The action will determine its own reaction.
    • If Mario Lands:
    • If Mario hits a wall:
      • Mario's forward speed is set to 0.
    • If Mario lava wall boosts:
      1. Mario's yaw is set perpendicular to the wall.
      2. Mario's forward speed is capped to 24.
      3. If Mario is not wearing a metal cap, he is hurt 12 (or 18 without his hat).
      4. Mario plays the noise for being burned.
      5. The camera preset is set to the area's default preset.
      6. Mario enters the lava boost action while dropping any held objects and no longer riding a shell.
  5. Mario's visual position is shifted up 42 units.