feat(Player): Added toxic option blame explode
This commit is contained in:
parent
79afcf444e
commit
caf0deeab1
@ -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();
|
||||||
};
|
};
|
||||||
}
|
}
|
25
BigBaseV2/src/gui/window/player/player_toxic.cpp
Normal file
25
BigBaseV2/src/gui/window/player/player_toxic.cpp
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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();
|
||||||
|
Reference in New Issue
Block a user