fix: Passive not working correctly (#2040)

This commit is contained in:
Patryk
2023-09-02 20:58:13 +02:00
committed by GitHub
parent c459ccc950
commit 1594ee1f76
2 changed files with 25 additions and 3 deletions

View File

@ -41,7 +41,12 @@ namespace big
if (g.self.invisibility)
components::command_checkbox<"localvis">(); // TODO: does nothing in SP
components::command_checkbox<"passive">();
ImGui::BeginDisabled(scr_globals::gpbd_fm_3.as<GPBD_FM_3*>()->Entries[self::id].BossGoon.Boss != -1
|| gta_util::find_script_thread(RAGE_JOAAT("fm_mission_controller"))
|| gta_util::find_script_thread(RAGE_JOAAT("fm_mission_controller_2020")));
components::command_checkbox<"passive">();
ImGui::EndDisabled();
ImGui::EndGroup();
ImGui::SameLine();