You've already forked HackerSM64
mirror of
https://github.com/HackerN64/HackerSM64.git
synced 2026-01-21 10:35:32 -08:00
added toggle to disable fall damage
This commit is contained in:
@@ -69,6 +69,8 @@
|
||||
#define NO_FALSE_LEDGEGRABS
|
||||
// Allows Mario to jump kick on steep surfaces that are set to be non slippery, instead of being forced to dive
|
||||
#define JUMP_KICK_FIX
|
||||
// Disables fall damage
|
||||
#define NO_FALL_DAMAGE
|
||||
// Uncomment this if you want global star IDs (useful for creating an open world hack ala MVC)
|
||||
//#define GLOBAL_STAR_IDS
|
||||
// Uncomment this if you want to skip the title screen (Super Mario 64 logo)
|
||||
|
||||
@@ -59,6 +59,7 @@ s32 lava_boost_on_wall(struct MarioState *m) {
|
||||
}
|
||||
|
||||
s32 check_fall_damage(struct MarioState *m, u32 hardFallAction) {
|
||||
#ifndef NO_FALL_DAMAGE
|
||||
f32 fallHeight;
|
||||
f32 damageHeight;
|
||||
|
||||
@@ -97,7 +98,7 @@ s32 check_fall_damage(struct MarioState *m, u32 hardFallAction) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user