mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-22 16:18:50 -05:00
Add cheat: hookshot everything (#1874)
This commit is contained in:
parent
087f42a826
commit
e6150ea8da
@ -1358,6 +1358,8 @@ namespace GameMenuBar {
|
||||
UIWidgets::Tooltip("Allows you to walk through walls");
|
||||
UIWidgets::PaddedEnhancementCheckbox("Climb Everything", "gClimbEverything", true, false);
|
||||
UIWidgets::Tooltip("Makes every surface in the game climbable");
|
||||
UIWidgets::PaddedEnhancementCheckbox("Hookshot Everything", "gHookshotEverything", true, false);
|
||||
UIWidgets::Tooltip("Makes every surface in the game hookshot-able");
|
||||
UIWidgets::PaddedEnhancementCheckbox("Moon Jump on L", "gMoonJumpOnL", true, false);
|
||||
UIWidgets::Tooltip("Holding L makes you float into the air");
|
||||
UIWidgets::PaddedEnhancementCheckbox("Super Tunic", "gSuperTunic", true, false);
|
||||
|
@ -4118,7 +4118,7 @@ u32 SurfaceType_GetEcho(CollisionContext* colCtx, CollisionPoly* poly, s32 bgId)
|
||||
* SurfaceType Is Hookshot Surface
|
||||
*/
|
||||
u32 SurfaceType_IsHookshotSurface(CollisionContext* colCtx, CollisionPoly* poly, s32 bgId) {
|
||||
return SurfaceType_GetData(colCtx, poly, bgId, 1) >> 17 & 1;
|
||||
return CVar_GetS32("gHookshotEverything", 0) || SurfaceType_GetData(colCtx, poly, bgId, 1) >> 17 & 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user