feat(nearby): add riot mode (#1043)

This commit is contained in:
TheGreenBandit 2023-03-12 13:38:27 -04:00 committed by GitHub
parent 10bbf1f4bb
commit 43fcc4cf6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,25 @@
#include "backend/looped_command.hpp"
#include "natives.hpp"
namespace big
{
class combative : looped_command
{
using looped_command::looped_command;
virtual void on_enable() override
{
MISC::SET_RIOT_MODE_ENABLED(true);
}
virtual void on_tick() override {}
virtual void on_disable() override
{
MISC::SET_RIOT_MODE_ENABLED(false);
}
};
combative g_combative("riotmode", "Riot Mode", "Make nearby peds attack eachother", g.world.nearby.combative);
}

View File

@ -468,8 +468,9 @@ namespace big
bool veh_rain = false;
bool high_alert = false;
bool ped_rush = false;
bool combative = false;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(nearby, ignore, ped_rain, veh_rain, high_alert, ped_rush)
NLOHMANN_DEFINE_TYPE_INTRUSIVE(nearby, ignore, ped_rain, veh_rain, high_alert, ped_rush, combative)
} nearby{};
struct model_swapper

View File

@ -37,6 +37,8 @@ namespace big
components::command_checkbox<"pedsignore">();
ImGui::SameLine(140.f);
components::command_checkbox<"pedrain">();
ImGui::SameLine(265.f);
components::command_checkbox<"pedscombat">();
components::command_checkbox<"highalert">();
ImGui::SameLine(140.f);
components::command_checkbox<"pedrush">();