feat(Features): Added spoof rank looped feature

This commit is contained in:
Yimura 2020-12-26 19:48:00 +01:00
parent 6b620a45fe
commit 7cf6813c29
3 changed files with 20 additions and 0 deletions

View File

@ -17,6 +17,7 @@ namespace big
no_idle_kick();
no_ragdoll();
off_radar();
spoof_rank();
super_sprint();
}

View File

@ -28,6 +28,7 @@ namespace big
void no_idle_kick();
void no_ragdoll();
void off_radar();
void spoof_rank();
void super_sprint();
void update_screen_sizes();

View File

@ -0,0 +1,18 @@
#include "features.hpp"
#include "script_global.hpp"
namespace big
{
void features::spoof_rank()
{
bool bSpoofRank = g_settings.options["spoof_rank"].get<bool*>();
if (bSpoofRank)
{
QUEUE_JOB_BEGIN_CLAUSE()
{
*script_global(1590682).at(PLAYER::PLAYER_ID(), 883).at(211).at(6).as<int*>() = g_settings.options["rank"].get<int>();
}QUEUE_JOB_END_CLAUSE
}
}
}