2022-12-06 16:12:02 +00:00
|
|
|
#include "util/teleport.hpp"
|
|
|
|
#include "util/toxic.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_kick()
|
|
|
|
{
|
2024-06-27 08:32:17 +00:00
|
|
|
ImGui::SeparatorText("KICKS"_T.data());
|
2022-12-29 20:43:31 -05:00
|
|
|
|
2024-06-27 08:32:17 +00:00
|
|
|
if (!g_player_service->get_self()->is_host())
|
|
|
|
ImGui::Text("VIEW_PLAYER_KICK_HOST_AND_BREAKUP_KICK_REQUIRE_SESSION_HOST"_T.data());
|
2023-06-23 06:43:44 +00:00
|
|
|
|
2024-06-27 08:32:17 +00:00
|
|
|
ImGui::BeginDisabled(!g_player_service->get_self()->is_host());
|
|
|
|
components::player_command_button<"hostkick">(g_player_service->get_selected());
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::player_command_button<"breakup">(g_player_service->get_selected());
|
|
|
|
ImGui::EndDisabled();
|
|
|
|
ImGui::SameLine();
|
2023-06-22 10:11:56 +02:00
|
|
|
|
2024-06-27 08:32:17 +00:00
|
|
|
components::command_checkbox<"breakupcheating">();
|
2024-05-06 14:11:35 -06:00
|
|
|
|
2024-06-27 08:32:17 +00:00
|
|
|
components::player_command_button<"smartkick">(g_player_service->get_selected());
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::player_command_button<"oomkick">(g_player_service->get_selected());
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::player_command_button<"shkick">(g_player_service->get_selected());
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::player_command_button<"endkick">(g_player_service->get_selected());
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::player_command_button<"desync">(g_player_service->get_selected());
|
2022-12-06 16:12:02 +00:00
|
|
|
}
|
2024-05-06 14:11:35 -06:00
|
|
|
}
|