Hangable ceiling: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 9: Line 9:


Notice that if Mario hits a ceiling from the side, and a ceiling far above him is hangable, the game will consider him to be hanging on the high ceiling and will then move him there. This is the cause of the [[Hangable Ceiling Upwarp]].
Notice that if Mario hits a ceiling from the side, and a ceiling far above him is hangable, the game will consider him to be hanging on the high ceiling and will then move him there. This is the cause of the [[Hangable Ceiling Upwarp]].
Being pushed off of a hangable ceiling while idling will cause the game to crash due to a null pointer exception.


==Locations==
==Locations==
Line 27: Line 29:


[https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/mario_step.c#L446 Code]
[https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/mario_step.c#L446 Code]
[https://www.youtube.com/watch?v=_FPQHW3Zeg0 "Null Ceiling-Triangle Game Freeze" by Pannenkoek2012]


[[Category:Mechanics]]
[[Category:Mechanics]]

Revision as of 03:57, 7 March 2021

A Hangable Ceiling is a ceiling Mario can hang on. Any ceiling with the hangable surface type is hangable. Mario will grab onto a ceiling if all of the following conditions are satisfied:

  • Mario is not hitting out-of-bounds
  • Mario is not landing on a floor
  • Mario is hitting a ceiling
  • Mario is moving upwards
  • Mario is single jumping or double jumping
  • The first ceiling above Mario is hangable

Notice that if Mario hits a ceiling from the side, and a ceiling far above him is hangable, the game will consider him to be hanging on the high ceiling and will then move him there. This is the cause of the Hangable Ceiling Upwarp.

Being pushed off of a hangable ceiling while idling will cause the game to crash due to a null pointer exception.

Locations

The following courses have hangable ceilings:

References

"All Hangable Ceilings" by Pannenkoek2012

Code

"Null Ceiling-Triangle Game Freeze" by Pannenkoek2012