Enhancement Toggle - Disable Automatic First Person Mode for Bombchus (#2471)

* Update z_camera.c

* Revert "Update z_camera.c"

* Update GameMenuBar.cpp

Added tickbox for NoFPChus

* Update z_player.c

Added check for Disable First Person Bomchus enhancement

* Update z_player.c

Removed comment as statement is clear on its own

* Update GameMenuBar.cpp
This commit is contained in:
Bigs 2023-02-15 17:17:38 +10:30 committed by GitHub
parent 3a4a260e21
commit b19c72070d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -411,6 +411,8 @@ namespace GameMenuBar {
UIWidgets::Tooltip("Helps FW persist between ages, gives child and adult separate FW points, and can be used in more places.");
UIWidgets::PaddedEnhancementCheckbox("Static Explosion Radius", "gStaticExplosionRadius", true, false);
UIWidgets::Tooltip("Explosions are now a static size, like in Majora's Mask and OoT3D. Makes bombchu hovering much easier.");
UIWidgets::PaddedEnhancementCheckbox("Prevent Bombchus Forcing First-Person", "gDisableFirstPersonChus", true, false);
UIWidgets::Tooltip("Prevent bombchus from forcing the camera into first-person mode when released.");
ImGui::EndMenu();
}

View File

@ -9374,7 +9374,7 @@ void func_808464B0(Player* this, PlayState* play) {
heldActor->velocity.y = 0.0f;
heldActor->speedXZ = 0.0f;
func_80834644(play, this);
if (heldActor->id == ACTOR_EN_BOM_CHU) {
if (heldActor->id == ACTOR_EN_BOM_CHU && !CVarGetInteger("gDisableFirstPersonChus", 0)) {
func_8083B8F4(this, play);
}
}