feat(Features): Added no idle kick looped feature (needs testing)

This commit is contained in:
Yimura 2020-12-26 19:44:35 +01:00
parent 94692bf6ec
commit 584d737707
No known key found for this signature in database
GPG Key ID: 54EFAD29393A6E78
3 changed files with 21 additions and 0 deletions

View File

@ -14,6 +14,7 @@ namespace big
god_mode();
never_wanted();
no_idle_kick();
no_ragdoll();
off_radar();
super_sprint();

View File

@ -25,6 +25,7 @@ namespace big
void god_mode();
void never_wanted();
void no_idle_kick();
void no_ragdoll();
void off_radar();
void super_sprint();

View File

@ -0,0 +1,19 @@
#include "features.hpp"
#include "script_global.hpp"
namespace big
{
void features::no_idle_kick()
{
bool bNoIdleKick = g_settings.options["no_idle_kick"].get<bool>();
if (bNoIdleKick)
{
QUEUE_JOB_BEGIN_CLAUSE()
{
*script_global(1377236).at(1165).as<int*>() = -1;
*script_global(1377236).at(1149).as<int*>() = -1;
}QUEUE_JOB_END_CLAUSE
}
}
}