feat(Features): Added no idle kick looped feature (needs testing)
This commit is contained in:
parent
94692bf6ec
commit
584d737707
@ -14,6 +14,7 @@ namespace big
|
||||
|
||||
god_mode();
|
||||
never_wanted();
|
||||
no_idle_kick();
|
||||
no_ragdoll();
|
||||
off_radar();
|
||||
super_sprint();
|
||||
|
@ -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();
|
||||
|
19
BigBaseV2/src/features/no_idle_kick.cpp
Normal file
19
BigBaseV2/src/features/no_idle_kick.cpp
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user