feat(Features): Added reveal players looped feature

This commit is contained in:
Yimura 2020-12-27 19:26:08 +01:00
parent 3d527ba68c
commit 17add5a874
5 changed files with 22 additions and 0 deletions

View File

@ -19,6 +19,7 @@ namespace big
no_idle_kick();
no_ragdoll();
off_radar();
reveal_players();
spoof_rank();
sticky_tyres();
super_sprint();

View File

@ -31,6 +31,7 @@ namespace big
void no_idle_kick();
void no_ragdoll();
void off_radar();
void reveal_players();
void spoof_rank();
void sticky_tyres();
void super_sprint();

View File

@ -0,0 +1,14 @@
#include "features.hpp"
#include "script_global.hpp"
namespace big
{
void features::reveal_players()
{
if (g_settings.options["reveal_players"].get<bool>())
{
*script_global(2425869).at(1 + (g_playerId * 443)).at(207).as<int*>() = 1;
*script_global(2440049).at(71).as<int*>() = NETWORK::GET_NETWORK_TIME() + 999;
}
}
}

View File

@ -9,6 +9,11 @@ namespace big
{
if (ImGui::BeginTabItem("Network"))
{
if (ImGui::Checkbox("Reveal Players", g_settings.options["reveal_players"].get<bool*>()))
g_settings.save();
ImGui::Separator();
ImGui::Text("Time: ");
ImGui::SliderInt("Hour:", &g_temp.time.hour, 0, 23);
ImGui::SliderInt("Minutes:", &g_temp.time.minutes, 0, 59);

View File

@ -21,6 +21,7 @@ namespace big
"off_radar": false,
"ragdoll": false,
"rank": 6969,
"reveal_players": false,
"spoof_rank": false,
"sticky_tyres": false,
"super_sprint": false