2022-12-06 16:12:02 +00:00
|
|
|
#include "core/data/apartment_names.hpp"
|
|
|
|
#include "core/data/warehouse_names.hpp"
|
2023-03-01 21:27:15 +00:00
|
|
|
#include "util/teleport.hpp"
|
|
|
|
#include "util/toxic.hpp"
|
2023-06-22 10:11:56 +02:00
|
|
|
#include "util/troll.hpp"
|
2023-03-01 21:27:15 +00:00
|
|
|
#include "views/view.hpp"
|
2022-12-06 16:12:02 +00:00
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void view::player_toxic()
|
|
|
|
{
|
2023-06-22 10:11:56 +02:00
|
|
|
ImGui::BeginGroup();
|
|
|
|
components::sub_title("Toxic");
|
2023-06-23 13:44:06 +05:00
|
|
|
if (ImGui::BeginListBox("##toxic", get_listbox_dimensions()))
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"kill">(g_player_service->get_selected(), {});
|
2023-01-03 16:48:32 +00:00
|
|
|
ImGui::SameLine();
|
|
|
|
components::player_command_button<"explode">(g_player_service->get_selected(), {});
|
2022-12-17 14:47:01 +00:00
|
|
|
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"ceokick">(g_player_service->get_selected(), {});
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::SameLine();
|
2023-06-22 10:11:56 +02:00
|
|
|
components::button("Gooch Test", [] {
|
|
|
|
*script_global(1890378).at(289).at(1).as<Player*>() = g_player_service->get_selected()->id();
|
|
|
|
scripts::start_launcher_script(171);
|
|
|
|
});
|
2022-12-22 21:23:32 +00:00
|
|
|
|
|
|
|
components::player_command_button<"ragdoll">(g_player_service->get_selected(), {});
|
2023-01-22 21:57:32 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"beast">(g_player_service->get_selected(), {});
|
2022-12-06 16:12:02 +00:00
|
|
|
|
2023-01-22 21:57:32 +00:00
|
|
|
components::player_command_button<"mission">(g_player_service->get_selected(), {});
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::player_command_button<"error">(g_player_service->get_selected(), {});
|
|
|
|
|
|
|
|
components::player_command_button<"ceoraid">(g_player_service->get_selected(), {});
|
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::button("Trigger MC Raid", [] {
|
|
|
|
toxic::start_activity(g_player_service->get_selected(), eActivityType::BikerDefend);
|
|
|
|
});
|
2023-01-22 21:57:32 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::button("Trigger Bunker Raid", [] {
|
|
|
|
toxic::start_activity(g_player_service->get_selected(), eActivityType::GunrunningDefend);
|
|
|
|
});
|
2023-01-22 21:57:32 +00:00
|
|
|
|
|
|
|
components::player_command_button<"sext">(g_player_service->get_selected(), {});
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::player_command_button<"fakeban">(g_player_service->get_selected(), {});
|
|
|
|
|
2022-12-06 16:12:02 +00:00
|
|
|
static int wanted_level;
|
2023-06-28 11:20:48 +02:00
|
|
|
components::small_text("WANTED_LVL"_T);
|
2023-06-27 14:05:44 +02:00
|
|
|
ImGui::SliderInt("##wantedlevelslider", &wanted_level, 0, 5);
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::player_command_button<"wanted">(g_player_service->get_selected(), {(uint64_t)wanted_level}, "Set");
|
2023-06-27 14:05:44 +02:00
|
|
|
|
2023-03-01 21:27:15 +00:00
|
|
|
components::player_command_button<"remweaps">(g_player_service->get_selected(), {});
|
2022-12-06 16:12:02 +00:00
|
|
|
|
2023-03-01 21:27:15 +00:00
|
|
|
components::player_command_button<"tutorial">(g_player_service->get_selected(), {});
|
2023-01-22 21:57:32 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::player_command_button<"golf">(g_player_service->get_selected(), {});
|
2023-01-22 21:57:32 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::player_command_button<"flightschool">(g_player_service->get_selected(), {});
|
2023-01-22 21:57:32 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::player_command_button<"darts">(g_player_service->get_selected(), {});
|
2023-01-22 21:57:32 +00:00
|
|
|
|
2023-03-01 21:27:15 +00:00
|
|
|
components::player_command_button<"badlands">(g_player_service->get_selected(), {});
|
2023-01-22 21:57:32 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::player_command_button<"spacemonkey">(g_player_service->get_selected(), {});
|
2023-01-22 21:57:32 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::player_command_button<"wizard">(g_player_service->get_selected(), {});
|
2023-01-22 21:57:32 +00:00
|
|
|
|
2023-03-01 21:27:15 +00:00
|
|
|
components::player_command_button<"qub3d">(g_player_service->get_selected(), {});
|
2023-01-22 21:57:32 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::player_command_button<"camhedz">(g_player_service->get_selected(), {});
|
2023-01-22 21:57:32 +00:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
components::small_text("WARP_TIME"_T);
|
2022-12-19 17:39:06 +00:00
|
|
|
|
2023-03-01 21:27:15 +00:00
|
|
|
components::button("PLUS_1_MINUTE"_T, [] {
|
|
|
|
toxic::warp_time_forward(g_player_service->get_selected(), 60 * 1000);
|
|
|
|
});
|
2022-12-19 17:39:06 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::button("PLUS_5_MINUTES"_T, [] {
|
|
|
|
toxic::warp_time_forward(g_player_service->get_selected(), 5 * 60 * 1000);
|
|
|
|
});
|
2022-12-19 17:39:06 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::button("PLUS_48_MINUTES"_T, [] {
|
|
|
|
toxic::warp_time_forward(g_player_service->get_selected(), 48 * 60 * 1000);
|
|
|
|
});
|
|
|
|
components::button("PLUS_96_MINUTES"_T, [] {
|
|
|
|
toxic::warp_time_forward(g_player_service->get_selected(), 96 * 60 * 1000);
|
|
|
|
});
|
2022-12-19 17:39:06 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::button("PLUS_200_MINUTES"_T, [] {
|
|
|
|
toxic::warp_time_forward(g_player_service->get_selected(), 200 * 60 * 1000);
|
|
|
|
});
|
2022-12-19 17:39:06 +00:00
|
|
|
ImGui::SameLine();
|
2023-03-01 21:27:15 +00:00
|
|
|
components::button("STOP_TIME"_T, [] {
|
|
|
|
toxic::set_time(g_player_service->get_selected(), INT_MAX - 3000);
|
|
|
|
});
|
2022-12-19 17:39:06 +00:00
|
|
|
if (ImGui::IsItemHovered())
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::SetTooltip("PLAYER_TOXIC_NO_WAY_BACK"_T.data());
|
2022-12-19 17:39:06 +00:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Checkbox("KILL_LOOP"_T.data(), &g_player_service->get_selected()->kill_loop);
|
2023-01-03 16:48:32 +00:00
|
|
|
ImGui::SameLine();
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Checkbox("EXPLOSION_LOOP"_T.data(), &g_player_service->get_selected()->explosion_loop);
|
2023-01-03 16:48:32 +00:00
|
|
|
ImGui::SameLine();
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Checkbox("FREEZE_LOOP"_T.data(), &g_player_service->get_selected()->freeze_loop);
|
2023-01-03 16:48:32 +00:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Checkbox("RAGDOLL_LOOP"_T.data(), &g_player_service->get_selected()->ragdoll_loop);
|
2023-01-03 16:48:32 +00:00
|
|
|
ImGui::SameLine();
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Checkbox("ROT_CAM_LOOP"_T.data(), &g_player_service->get_selected()->rotate_cam_loop);
|
2023-01-03 16:48:32 +00:00
|
|
|
if (ImGui::IsItemHovered())
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::SetTooltip("PLAYER_TOXIC_BRING_PLAYER_OUT_GOD"_T.data());
|
2023-01-03 16:48:32 +00:00
|
|
|
|
2023-06-22 10:11:56 +02:00
|
|
|
static int bounty_value = 0;
|
|
|
|
ImGui::SetNextItemWidth(300);
|
|
|
|
ImGui::SliderInt("BOUNTY"_T.data(), &bounty_value, 0, 10000);
|
|
|
|
|
|
|
|
components::command_checkbox<"anonbounty">();
|
|
|
|
ImGui::SameLine();
|
|
|
|
|
|
|
|
components::button("SET"_T, [] {
|
|
|
|
troll::set_bounty_on_player(g_player_service->get_selected(), bounty_value, g.session.anonymous_bounty);
|
|
|
|
});
|
|
|
|
|
2023-06-23 13:44:06 +05:00
|
|
|
ImGui::EndListBox();
|
2022-12-06 16:12:02 +00:00
|
|
|
}
|
2023-06-22 10:11:56 +02:00
|
|
|
ImGui::EndGroup();
|
2022-12-06 16:12:02 +00:00
|
|
|
}
|
|
|
|
}
|