Ledge Grab: Difference between revisions

Jump to navigation Jump to search
(stole from pannen lul, surprised we dont have a page on this yet tbh)
 
m (Bolding title in lead)
Line 2: Line 2:
{{rewrite}}
{{rewrite}}
{{needs_image}}
{{needs_image}}
A ledge grab works as follows: While Mario is falling with non-positive vertical speed, the game checks if there's a wall 30 units above him and that there's no wall 150 units above him. If this passes, then it considers a point 60 units towards the wall from Mario (i.e. 10 units into the wall) and 160 units above Mario. It then checks what the highest floor is from 78 units above that point to 100 units below that point. If a floor is found, then Mario grabs the ledge.
A '''ledge grab''' works as follows: While Mario is falling with non-positive vertical speed, the game checks if there's a wall 30 units above him and that there's no wall 150 units above him. If this passes, then it considers a point 60 units towards the wall from Mario (i.e. 10 units into the wall) and 160 units above Mario. It then checks what the highest floor is from 78 units above that point to 100 units below that point. If a floor is found, then Mario grabs the ledge.


Given these conditions, a ledge grab normally raises Mario between 30 units (inclusive) and 150 units (exclusive). However, it's possible to exploit this logic to do a glitchy ledge grab and raise Mario more than 150 units (though 238 units is the max possible raise).
Given these conditions, a ledge grab normally raises Mario between 30 units (inclusive) and 150 units (exclusive). However, it's possible to exploit this logic to do a glitchy ledge grab and raise Mario more than 150 units (though 238 units is the max possible raise).