feat(Player): Added toxic option blame explode

This commit is contained in:
Yimura 2021-10-15 11:32:46 +02:00
parent 79afcf444e
commit caf0deeab1
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
3 changed files with 27 additions and 0 deletions

View File

@ -9,5 +9,6 @@ namespace big
public: public:
static void tab_info(); static void tab_info();
static void tab_teleport(); static void tab_teleport();
static void tab_toxic();
}; };
} }

View File

@ -0,0 +1,25 @@
#include "fiber_pool.hpp"
#include "gta_util.hpp"
#include "player_tabs.hpp"
#include "natives.hpp"
#include "script.hpp"
#include "util/toxic.hpp"
namespace big
{
void tab_player::tab_toxic()
{
if (ImGui::BeginTabItem("Toxic"))
{
if (ImGui::Button("Explode Self"))
{
QUEUE_JOB_BEGIN_CLAUSE()
{
toxic::blame_explode_player(g.selected_player.id, g.selected_player.id, eExplosionType::PLANE, 1000, false, true, 0.f);
}QUEUE_JOB_END_CLAUSE
}
ImGui::EndTabItem();
}
}
}

View File

@ -24,6 +24,7 @@ namespace big
ImGui::BeginTabBar("tabbar_player"); ImGui::BeginTabBar("tabbar_player");
tab_player::tab_info(); tab_player::tab_info();
tab_player::tab_teleport(); tab_player::tab_teleport();
tab_player::tab_toxic();
ImGui::EndTabBar(); ImGui::EndTabBar();
ImGui::End(); ImGui::End();