* feat(Toxic): add send to island
* feat(mobile): add helicopter backup
* refractor(mobile): update seperator
* feat(Troll): add set bounty

* tps
tp all to island
tp all to eclipse
tp to eclipse

* working hijack &, delete. + placeholders
* speed, derail
* drive train, working derail
* improved drive train
* exit train, rework delete
* using CReplayInterface
This commit is contained in:
Rimmuru
2023-01-06 23:25:16 +00:00
committed by GitHub
parent 7ac66e099b
commit 8c1093c491
17 changed files with 246 additions and 9 deletions

View File

@ -287,8 +287,10 @@ namespace big
components::button("TP All To Skydive", [] { g_player_service->iterate([](auto& plyr) { toxic::start_activity(plyr.second, eActivityType::Skydive); }); });
ImGui::SameLine();
components::command_button<"interiortpall">({ 81 }, "TP All To MOC");
ImGui::SameLine();
components::command_button<"interiortpall">({ 123 }, "TP All To Casino");
ImGui::SameLine();
components::command_button<"interiortpall">({ 124 }, "TP All To Penthouse");

View File

@ -103,7 +103,8 @@ namespace big
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 160 }, "TP To Freakshop");
ImGui::SameLine();
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 161 }, "TP To Multi Floor Garage");
ImGui::SameLine();
components::player_command_button<"giveweaps">(g_player_service->get_selected(), { });
ImGui::SameLine();
components::player_command_button<"remweaps">(g_player_service->get_selected(), { });

View File

@ -1,6 +1,7 @@
#include "views/view.hpp"
#include "util/teleport.hpp"
#include "util/vehicle.hpp"
#include "util/troll.hpp"
namespace big
{
@ -12,10 +13,15 @@ namespace big
ImGui::SameLine();
components::player_command_button<"bring">(g_player_service->get_selected());
components::player_command_button<"playervehtp">(g_player_service->get_selected());
components::player_command_button<"rcplayer">(g_player_service->get_selected());
static int bounty_value = 0;
ImGui::SliderInt("Bounty", &bounty_value, 0, 10000);
ImGui::SameLine();
components::button("Set", [] { troll::set_bounty_on_player(g_player_service->get_selected(), bounty_value);});
ImGui::TreePop();
}
}

View File

@ -7,7 +7,7 @@ namespace big
{
void view::mobile() {
ImGui::SetWindowSize({ 0.f, (float)*g_pointers->m_resolution_y }, ImGuiCond_Always);
components::sub_title("Merryweather");
ImGui::Separator();
@ -45,4 +45,4 @@ namespace big
});
}
}
}

View File

@ -47,6 +47,7 @@ namespace big
static void context_menu();
static void gta_data();
static void creator();
static void train();
static void player_info();
static void player_troll();

View File

@ -0,0 +1,46 @@
#include "views/view.hpp"
#include "util/train.hpp"
#include <imgui_internal.h>
namespace big
{
void view::train()
{
components::button("Hijack Train", []
{
train::hijack_train();
});
ImGui::SameLine();
components::button("Delete Train", []
{
train::delete_train();
});
if (ImGui::IsItemHovered())
ImGui::SetTooltip("You cant delete the train while in it.");
ImGui::SameLine();
components::button("Exit Train", []
{
train::exit_train();
});
static float train_speed = 0;
ImGui::SliderFloat("Train Speed", &train_speed, -500.f, 500.f);
ImGui::SameLine();
components::button("Set", [] { train::set_train_speed(train_speed); });
ImGui::Checkbox("Drive Train", &g.train.drive_train);
ImGui::SameLine();
ImGui::Checkbox("Derail Train", &g.train.derail_train);
}
}