Files
TmpMenu/src/views/players/player/player_toxic.cpp

124 lines
4.9 KiB
C++
Raw Normal View History

2022-12-06 16:12:02 +00:00
#include "core/data/apartment_names.hpp"
#include "core/data/warehouse_names.hpp"
#include "util/teleport.hpp"
#include "util/toxic.hpp"
#include "util/troll.hpp"
#include "views/view.hpp"
2022-12-06 16:12:02 +00:00
namespace big
{
void view::player_toxic()
{
ImGui::BeginGroup();
components::sub_title("TOXIC"_T);
if (ImGui::BeginListBox("##toxic", get_listbox_dimensions()))
2022-12-06 16:12:02 +00:00
{
components::player_command_button<"kill">(g_player_service->get_selected(), {});
ImGui::SameLine();
components::player_command_button<"explode">(g_player_service->get_selected(), {});
components::player_command_button<"ceokick">(g_player_service->get_selected(), {});
2022-12-06 16:12:02 +00:00
ImGui::SameLine();
components::player_command_button<"ragdoll">(g_player_service->get_selected(), {});
2022-12-06 16:12:02 +00:00
components::player_command_button<"beast">(g_player_service->get_selected(), {});
ImGui::SameLine();
components::player_command_button<"mission">(g_player_service->get_selected(), {});
components::player_command_button<"error">(g_player_service->get_selected(), {});
ImGui::SameLine();
components::player_command_button<"ceoraid">(g_player_service->get_selected(), {});
components::button("TRIGGER_MC_RAID"_T, [] {
toxic::start_activity(g_player_service->get_selected(), eActivityType::BikerDefend);
});
ImGui::SameLine();
components::button("TRIGGER_BUNKER_RAID"_T, [] {
toxic::start_activity(g_player_service->get_selected(), eActivityType::GunrunningDefend);
});
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;
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();
components::player_command_button<"wanted">(g_player_service->get_selected(), {(uint64_t)wanted_level}, "Set");
2023-06-27 14:05:44 +02:00
components::player_command_button<"remweaps">(g_player_service->get_selected(), {});
2022-12-06 16:12:02 +00:00
components::player_command_button<"tutorial">(g_player_service->get_selected(), {});
ImGui::SameLine();
components::player_command_button<"golf">(g_player_service->get_selected(), {});
ImGui::SameLine();
components::player_command_button<"flightschool">(g_player_service->get_selected(), {});
ImGui::SameLine();
components::player_command_button<"darts">(g_player_service->get_selected(), {});
components::player_command_button<"badlands">(g_player_service->get_selected(), {});
ImGui::SameLine();
components::player_command_button<"spacemonkey">(g_player_service->get_selected(), {});
ImGui::SameLine();
components::player_command_button<"wizard">(g_player_service->get_selected(), {});
components::player_command_button<"qub3d">(g_player_service->get_selected(), {});
ImGui::SameLine();
components::player_command_button<"camhedz">(g_player_service->get_selected(), {});
components::small_text("WARP_TIME"_T);
components::button("PLUS_1_MINUTE"_T, [] {
toxic::warp_time_forward(g_player_service->get_selected(), 60 * 1000);
});
ImGui::SameLine();
components::button("PLUS_5_MINUTES"_T, [] {
toxic::warp_time_forward(g_player_service->get_selected(), 5 * 60 * 1000);
});
ImGui::SameLine();
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);
});
ImGui::SameLine();
components::button("PLUS_200_MINUTES"_T, [] {
toxic::warp_time_forward(g_player_service->get_selected(), 200 * 60 * 1000);
});
ImGui::SameLine();
components::button("STOP_TIME"_T, [] {
toxic::set_time(g_player_service->get_selected(), INT_MAX - 3000);
});
if (ImGui::IsItemHovered())
ImGui::SetTooltip("PLAYER_TOXIC_NO_WAY_BACK"_T.data());
ImGui::Checkbox("KILL_LOOP"_T.data(), &g_player_service->get_selected()->kill_loop);
ImGui::SameLine();
ImGui::Checkbox("EXPLOSION_LOOP"_T.data(), &g_player_service->get_selected()->explosion_loop);
ImGui::SameLine();
ImGui::Checkbox("FREEZE_LOOP"_T.data(), &g_player_service->get_selected()->freeze_loop);
ImGui::Checkbox("RAGDOLL_LOOP"_T.data(), &g_player_service->get_selected()->ragdoll_loop);
ImGui::SameLine();
ImGui::Checkbox("ROT_CAM_LOOP"_T.data(), &g_player_service->get_selected()->rotate_cam_loop);
if (ImGui::IsItemHovered())
ImGui::SetTooltip("PLAYER_TOXIC_BRING_PLAYER_OUT_GOD"_T.data());
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);
});
ImGui::EndListBox();
2022-12-06 16:12:02 +00:00
}
ImGui::EndGroup();
2022-12-06 16:12:02 +00:00
}
}