From 2a1145785eaef8d9ab52cc3ef3293e4fe77fb0bd Mon Sep 17 00:00:00 2001 From: PurpleHato Date: Mon, 13 Jun 2022 22:57:08 +0200 Subject: [PATCH] Tweak: Draw Distance Kokiri menu behavior (#459) * ADDED: Draw Distance toggle under Experimental enhancement * FIXED: Dark Link Apparition + Kokiri NPC spawn * Added a Toggle for Kokiri NPC since they are mystics * TWKEA: Desciription got the Kokiri draw distance * FIXED: Horses behavior Fixed Epona shout on title screen + Epona call from songFixed Zelda and Ganon horses that could still be seen on camera pan on the castle escape cinematic * Tweak: Draw Distance: Kokiris menu behavior Force the Kokiri Draw Distance to be set to 0 if the Draw Distance is disabled --- libultraship/libultraship/SohImGuiImpl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libultraship/libultraship/SohImGuiImpl.cpp b/libultraship/libultraship/SohImGuiImpl.cpp index 3c7f046fb..587e17e9b 100644 --- a/libultraship/libultraship/SohImGuiImpl.cpp +++ b/libultraship/libultraship/SohImGuiImpl.cpp @@ -1007,7 +1007,9 @@ 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) { + if (CVar_GetS32("gDisableDrawDistance", 0) == 0) { + CVar_SetS32("gDisableKokiriDrawDistance", 0); + } else 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\nNeeds to reload the map to take effect"); }