From c95dbf578bff83864a65c608cfcfc309c7a1550d Mon Sep 17 00:00:00 2001 From: PurpleHato Date: Sun, 22 May 2022 16:13:39 +0200 Subject: [PATCH] Added a Toggle for Kokiri NPC since they are mystics --- libultraship/libultraship/SohImGuiImpl.cpp | 4 ++++ soh/src/overlays/actors/ovl_En_Ko/z_en_ko.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libultraship/libultraship/SohImGuiImpl.cpp b/libultraship/libultraship/SohImGuiImpl.cpp index 88327b0b7..8ec8e76a2 100644 --- a/libultraship/libultraship/SohImGuiImpl.cpp +++ b/libultraship/libultraship/SohImGuiImpl.cpp @@ -764,6 +764,10 @@ namespace SohImGui { Tooltip("Turns off the level of detail setting, making models always use their higher poly variants"); EnhancementCheckbox("Disable Draw Distance", "gDisableDrawDistance"); Tooltip("Turns off the objects draw distance, making objects being visible from a longer range"); + if (CVar_GetS32("gDisableDrawDistance", 0) == 1) { + EnhancementCheckbox("Kokiri Draw Distance", "gDisableKokiriDrawDistance"); + Tooltip("Kokiris are mystical being that appear from a certain distance\nEnable this will remove their draw distance"); + } ImGui::EndMenu(); } diff --git a/soh/src/overlays/actors/ovl_En_Ko/z_en_ko.c b/soh/src/overlays/actors/ovl_En_Ko/z_en_ko.c index 0e633b94d..27b118879 100644 --- a/soh/src/overlays/actors/ovl_En_Ko/z_en_ko.c +++ b/soh/src/overlays/actors/ovl_En_Ko/z_en_ko.c @@ -1053,7 +1053,7 @@ void func_80A98CD8(EnKo* this) { this->actor.targetMode = info->targetMode; this->lookDist = info->lookDist; this->lookDist += this->collider.dim.radius; - this->appearDist = CVar_GetS32("gDisableDrawDistance", 0) != 0 ? 32767 : info->appearDist; + this->appearDist = CVar_GetS32("gDisableKokiriDrawDistance", 0) != 0 ? 32767 : info->appearDist; } // Used to fetch actor animation?