From 7dad45476e68d6c00e4ddc5cc4181d1f287e09e6 Mon Sep 17 00:00:00 2001 From: Yimura Date: Wed, 26 Jan 2022 21:37:08 +0100 Subject: [PATCH] feat(ScriptEventHandler): Forgot to block rotate cam --- BigBaseV2/src/core/globals.hpp | 3 +++ BigBaseV2/src/gui/window/main/tab_settings.cpp | 1 + BigBaseV2/src/hooks/script_event_handler.cpp | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/BigBaseV2/src/core/globals.hpp b/BigBaseV2/src/core/globals.hpp index c82ee645..10f00968 100644 --- a/BigBaseV2/src/core/globals.hpp +++ b/BigBaseV2/src/core/globals.hpp @@ -39,6 +39,7 @@ struct globals { bool network_bail = true; bool personal_vehicle_destroyed = true; bool remote_off_radar = true; + bool rotate_cam = true; bool send_to_cutscene = true; bool send_to_island = true; bool sound_spam = true; @@ -162,6 +163,7 @@ struct globals { this->protections.script_events.network_bail = j["protections"]["script_events"]["network_bail"]; this->protections.script_events.personal_vehicle_destroyed = j["protections"]["script_events"]["personal_vehicle_destroyed"]; this->protections.script_events.remote_off_radar = j["protections"]["script_events"]["remote_off_radar"]; + this->protections.script_events.rotate_cam = j["protections"]["script_events"]["rotate_cam"]; this->protections.script_events.send_to_cutscene = j["protections"]["script_events"]["send_to_cutscene"]; this->protections.script_events.send_to_island = j["protections"]["script_events"]["send_to_island"]; this->protections.script_events.sound_spam = j["protections"]["script_events"]["sound_spam"]; @@ -238,6 +240,7 @@ struct globals { { "network_bail", this->protections.script_events.network_bail }, { "personal_vehicle_destroyed", this->protections.script_events.personal_vehicle_destroyed }, { "remote_off_radar", this->protections.script_events.remote_off_radar }, + { "rotate_cam", this->protections.script_events.rotate_cam }, { "send_to_cutscene", this->protections.script_events.send_to_cutscene }, { "send_to_island", this->protections.script_events.send_to_island }, { "sound_spam", this->protections.script_events.sound_spam }, diff --git a/BigBaseV2/src/gui/window/main/tab_settings.cpp b/BigBaseV2/src/gui/window/main/tab_settings.cpp index 0eff8c34..f9b220c8 100644 --- a/BigBaseV2/src/gui/window/main/tab_settings.cpp +++ b/BigBaseV2/src/gui/window/main/tab_settings.cpp @@ -42,6 +42,7 @@ namespace big ImGui::Checkbox("Network Bail", &g.protections.script_events.network_bail); ImGui::Checkbox("Destroy Personal Vehicle", &g.protections.script_events.personal_vehicle_destroyed); ImGui::Checkbox("Remote Off Radar", &g.protections.script_events.remote_off_radar); + ImGui::Checkbox("Rotate Cam", &g.protections.script_events.rotate_cam); ImGui::Checkbox("Send to Cutscene", &g.protections.script_events.send_to_cutscene); ImGui::Checkbox("Send to Island", &g.protections.script_events.send_to_island); ImGui::Checkbox("Sound Spam", &g.protections.script_events.sound_spam); diff --git a/BigBaseV2/src/hooks/script_event_handler.cpp b/BigBaseV2/src/hooks/script_event_handler.cpp index e6568e06..ffebaafe 100644 --- a/BigBaseV2/src/hooks/script_event_handler.cpp +++ b/BigBaseV2/src/hooks/script_event_handler.cpp @@ -69,6 +69,11 @@ namespace big if (g.protections.script_events.remote_off_radar) strcpy(type, "Remote Off Radar"); + break; + case eRemoteEvent::RotateCam: + if (g.protections.script_events.rotate_cam) + strcpy(type, "Rotate Cam"); + break; case eRemoteEvent::SendToCutscene: if (g.protections.script_events.send_to_cutscene)