Mario drop held object: Difference between revisions

m
link does not work bc lowercase? seriously?
(page on algorithm within code)
 
m (link does not work bc lowercase? seriously?)
 
Line 3: Line 3:


The [https://github.com/n64decomp/sm64/blob/1372ae1bb7cbedc03df366393188f4f05dcfc422/src/game/interaction.c#L295 function] goes as follows:
The [https://github.com/n64decomp/sm64/blob/1372ae1bb7cbedc03df366393188f4f05dcfc422/src/game/interaction.c#L295 function] goes as follows:
 
# If holding a [[Water Shell|water shell]], <code>stop_shell_music()</code>
# If holding a [[water shell]], <code>stop_shell_music()</code>
# The object's held state becomes <code>bhvCarrySomething4</code> which I assume means "dropped"
# The object's held state becomes <code>bhvCarrySomething4</code> which I assume means "dropped"
# The object's position is at the [[HOLP]] but at Mario's y position
# The object's position is at the [[HOLP]] but at Mario's y position
# The object's <code>moveAngleYaw</code> becomes Mario's facing angle
# The object's <code>moveAngleYaw</code> becomes Mario's facing angle
# Mario's <code>heldObj</code> is <code>NULL</code>
# Mario's <code>heldObj</code> is <code>NULL</code>
246

edits