2022-12-06 16:12:02 +00:00
|
|
|
#include "views/view.hpp"
|
|
|
|
#include "util/teleport.hpp"
|
|
|
|
#include "util/toxic.hpp"
|
|
|
|
#include "core/data/apartment_names.hpp"
|
|
|
|
#include "core/data/warehouse_names.hpp"
|
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void view::player_toxic()
|
|
|
|
{
|
|
|
|
if (ImGui::TreeNode("Toxic"))
|
|
|
|
{
|
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();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"vehkick">(g_player_service->get_selected(), {});
|
|
|
|
|
|
|
|
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<"intkick">(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();
|
|
|
|
components::button("Trigger MC Raid", [] { toxic::start_activity(g_player_service->get_selected(), eActivityType::BikerDefend); });
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::button("Trigger Bunker Raid", [] { 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;
|
|
|
|
ImGui::SliderInt("Wanted Level", &wanted_level, 0, 5);
|
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"wanted">(g_player_service->get_selected(), { (uint64_t)wanted_level }, "Set");
|
2022-12-06 16:12:02 +00:00
|
|
|
|
|
|
|
components::small_text("Teleports");
|
|
|
|
|
2022-12-18 23:15:52 +01:00
|
|
|
if (ImGui::BeginCombo("##apartment", apartment_names[g.session.send_to_apartment_idx]))
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
|
|
|
for (int i = 1; i < apartment_names.size(); i++)
|
|
|
|
{
|
2022-12-18 23:15:52 +01:00
|
|
|
if (ImGui::Selectable(apartment_names[i], i == g.session.send_to_apartment_idx))
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
2022-12-18 23:15:52 +01:00
|
|
|
g.session.send_to_apartment_idx = i;
|
2022-12-06 16:12:02 +00:00
|
|
|
}
|
|
|
|
|
2022-12-18 23:15:52 +01:00
|
|
|
if (i == g.session.send_to_apartment_idx)
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
|
|
|
ImGui::SetItemDefaultFocus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ImGui::EndCombo();
|
|
|
|
}
|
|
|
|
|
|
|
|
ImGui::SameLine();
|
|
|
|
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"apartmenttp">(g_player_service->get_selected(), { (uint64_t)g.session.send_to_apartment_idx });
|
2022-12-06 16:12:02 +00:00
|
|
|
|
2022-12-18 23:15:52 +01:00
|
|
|
if (ImGui::BeginCombo("##warehouse", warehouse_names[g.session.send_to_warehouse_idx]))
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
|
|
|
for (int i = 1; i < warehouse_names.size(); i++)
|
|
|
|
{
|
2022-12-18 23:15:52 +01:00
|
|
|
if (ImGui::Selectable(warehouse_names[i], i == g.session.send_to_warehouse_idx))
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
2022-12-18 23:15:52 +01:00
|
|
|
g.session.send_to_warehouse_idx = i;
|
2022-12-06 16:12:02 +00:00
|
|
|
}
|
|
|
|
|
2022-12-18 23:15:52 +01:00
|
|
|
if (i == g.session.send_to_warehouse_idx)
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
|
|
|
ImGui::SetItemDefaultFocus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ImGui::EndCombo();
|
|
|
|
}
|
|
|
|
|
|
|
|
ImGui::SameLine();
|
|
|
|
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"warehousetp">(g_player_service->get_selected(), { (uint64_t)g.session.send_to_warehouse_idx });
|
2022-12-06 16:12:02 +00:00
|
|
|
|
|
|
|
components::button("TP To Darts", [] { toxic::start_activity(g_player_service->get_selected(), eActivityType::Darts); });
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::button("TP To Flight School", [] { toxic::start_activity(g_player_service->get_selected(), eActivityType::PilotSchool); });
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::button("TP To Map Center", [] { toxic::start_activity(g_player_service->get_selected(), eActivityType::ArmWresling); });
|
|
|
|
|
|
|
|
components::button("TP To Skydive", [] { toxic::start_activity(g_player_service->get_selected(), eActivityType::Skydive); });
|
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"cayotp">(g_player_service->get_selected(), { });
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 81 }, "TP To MOC");
|
2022-12-06 16:12:02 +00:00
|
|
|
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 123 }, "TP To Casino");
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 124 }, "TP To Penthouse");
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 128 }, "TP To Arcade");
|
2022-12-06 16:12:02 +00:00
|
|
|
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 146 }, "TP To Music Locker");
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 148 }, "TP To Record A Studios");
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 149 }, "TP To Custom Auto Shop");
|
2022-12-06 16:12:02 +00:00
|
|
|
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 155 }, "TP To Agency");
|
2022-12-14 16:27:40 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 160 }, "TP To Freakshop");
|
2022-12-14 16:27:40 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 161 }, "TP To Multi Floor Garage");
|
2023-01-06 23:25:16 +00:00
|
|
|
ImGui::SameLine();
|
|
|
|
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"giveweaps">(g_player_service->get_selected(), { });
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"remweaps">(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<"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(), { });
|
|
|
|
|
2022-12-19 17:39:06 +00:00
|
|
|
components::small_text("Warp Time (requires session host)");
|
|
|
|
|
|
|
|
components::button("+1 Minute", [] { toxic::warp_time_forward(g_player_service->get_selected(), 60 * 1000); });
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::button("+5 Minutes", [] { toxic::warp_time_forward(g_player_service->get_selected(), 5 * 60 * 1000); });
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::button("+48 Minutes", [] { toxic::warp_time_forward(g_player_service->get_selected(), 48 * 60 * 1000); });
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::button("+96 Minutes", [] { toxic::warp_time_forward(g_player_service->get_selected(), 96 * 60 * 1000); });
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::button("+200 Minutes", [] { toxic::warp_time_forward(g_player_service->get_selected(), 200 * 60 * 1000); });
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::button("Stop Time", [] { toxic::set_time(g_player_service->get_selected(), INT_MAX - 3000); });
|
|
|
|
if (ImGui::IsItemHovered())
|
|
|
|
ImGui::SetTooltip("This cannot be reversed. Use with caution");
|
|
|
|
|
2023-01-03 16:48:32 +00:00
|
|
|
ImGui::Checkbox("Kill Loop", &g_player_service->get_selected()->kill_loop);
|
|
|
|
ImGui::SameLine();
|
|
|
|
ImGui::Checkbox("Explosion Loop", &g_player_service->get_selected()->explosion_loop);
|
|
|
|
ImGui::SameLine();
|
|
|
|
ImGui::Checkbox("Freeze Loop", &g_player_service->get_selected()->freeze_loop);
|
|
|
|
|
|
|
|
ImGui::Checkbox("Ragdoll Loop", &g_player_service->get_selected()->ragdoll_loop);
|
|
|
|
ImGui::SameLine();
|
|
|
|
ImGui::Checkbox("Rotate Cam Loop", &g_player_service->get_selected()->rotate_cam_loop);
|
|
|
|
if (ImGui::IsItemHovered())
|
|
|
|
ImGui::SetTooltip("Also brings the player out of godmode if the event isn't blocked");
|
|
|
|
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::TreePop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|