Lava Boost: Difference between revisions

(lava boost on wall)
 
Line 22: Line 22:


== Lava Boost on Wall ==
== Lava Boost on Wall ==
Many Airborne actions cancel into [[Lava Boost]] upon hitting a lava wall. This utility function is used for such transitions. (The only lava wall in [[SM64]] is the one in [[Lethal Lava Land]]).
Many Airborne actions cancel into [[Lava Boost]] upon hitting a lava wall. This utility function is used for such transitions. (The only lava wall in [[SM64]] is the one in the volcano in [[Lethal Lava Land]]).


The following steps happen before [[Lava Boost#Transition In|Transition In]]:
The following steps happen before [[Lava Boost#Transition In|Transition In]]:


# Update Mario's-facing-angle[1] based on the wall (atan z x normal)
# Mario's yaw is set perpendicular to the wall.
# If forward velocity is less than 24, set it to 24
# If forward velocity is '''less''' than 24, set it to 24 (inverse cap)
# Take 12 or 18 hurt counter damage, depending on if Mario has his cap.
# If Mario is not wearing a metal cap, take 12 (or 18 without Mario's cap) hurt counter damage.
# Play the Mario on fire sound
# Play the Mario on fire sound
# update_mario_sound_and_camera (todo)
# update_mario_sound_and_camera (todo)
# [[Lava Boost]](actionArg 1)
# [[Lava Boost]](actionArg 1) (dropping any held objects and no longer riding a shell)


==Transition In==
==Transition In==
269

edits