feat(nearby): add riot mode (#1043)
This commit is contained in:
parent
10bbf1f4bb
commit
43fcc4cf6e
@ -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);
|
||||
|
||||
}
|
@ -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
|
||||
|
@ -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">();
|
||||
|
Reference in New Issue
Block a user