mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-18 00:00:35 -05:00
Add cheat for extending hookshot reach (#2178)
* Add cheat for extending hookshot reach * Adjust cvar usage
This commit is contained in:
parent
2422c94f6b
commit
beb414eb0a
@ -1001,6 +1001,7 @@ namespace GameMenuBar {
|
|||||||
UIWidgets::Tooltip("Makes every surface in the game climbable");
|
UIWidgets::Tooltip("Makes every surface in the game climbable");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Hookshot Everything", "gHookshotEverything", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Hookshot Everything", "gHookshotEverything", true, false);
|
||||||
UIWidgets::Tooltip("Makes every surface in the game hookshot-able");
|
UIWidgets::Tooltip("Makes every surface in the game hookshot-able");
|
||||||
|
UIWidgets::EnhancementSliderFloat("Hookshot Reach Multiplier: %.1fx", "##gCheatHookshotReachMultiplier", "gCheatHookshotReachMultiplier", 1.0f, 5.0f, "", 1.0f, false);
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Moon Jump on L", "gMoonJumpOnL", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Moon Jump on L", "gMoonJumpOnL", true, false);
|
||||||
UIWidgets::Tooltip("Holding L makes you float into the air");
|
UIWidgets::Tooltip("Holding L makes you float into the air");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Super Tunic", "gSuperTunic", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Super Tunic", "gSuperTunic", true, false);
|
||||||
|
@ -1510,7 +1510,7 @@ void func_80090D20(PlayState* play, s32 limbIndex, Gfx** dList, Vec3s* rot, void
|
|||||||
if (func_8002DD78(this) != 0) {
|
if (func_8002DD78(this) != 0) {
|
||||||
Matrix_Translate(500.0f, 300.0f, 0.0f, MTXMODE_APPLY);
|
Matrix_Translate(500.0f, 300.0f, 0.0f, MTXMODE_APPLY);
|
||||||
Player_DrawHookshotReticle(
|
Player_DrawHookshotReticle(
|
||||||
play, this, (this->heldItemAction == PLAYER_IA_HOOKSHOT) ? 38600.0f : 77600.0f);
|
play, this, ((this->heldItemAction == PLAYER_IA_HOOKSHOT) ? 38600.0f : 77600.0f) * CVarGetFloat("gCheatHookshotReachMultiplier", 1.0f));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ void ArmsHook_Wait(ArmsHook* this, PlayState* play) {
|
|||||||
if (this->actor.parent == NULL) {
|
if (this->actor.parent == NULL) {
|
||||||
Player* player = GET_PLAYER(play);
|
Player* player = GET_PLAYER(play);
|
||||||
// get correct timer length for hookshot or longshot
|
// get correct timer length for hookshot or longshot
|
||||||
s32 length = (player->heldItemAction == PLAYER_IA_HOOKSHOT) ? 13 : 26;
|
s32 length = ((player->heldItemAction == PLAYER_IA_HOOKSHOT) ? 13 : 26) * CVarGetFloat("gCheatHookshotReachMultiplier", 1.0f);
|
||||||
|
|
||||||
ArmsHook_SetupAction(this, ArmsHook_Shoot);
|
ArmsHook_SetupAction(this, ArmsHook_Shoot);
|
||||||
func_8002D9A4(&this->actor, 20.0f);
|
func_8002D9A4(&this->actor, 20.0f);
|
||||||
|
Loading…
Reference in New Issue
Block a user