2019-03-21 20:18:31 +01:00
|
|
|
#include "features.hpp"
|
2021-02-05 02:38:56 +01:00
|
|
|
#include "features/custom_guns.hpp"
|
|
|
|
#include "features/protections.hpp"
|
|
|
|
#include "features/self.hpp"
|
|
|
|
#include "features/sys.hpp"
|
|
|
|
#include "features/tunables.hpp"
|
|
|
|
#include "features/util.hpp"
|
|
|
|
#include "features/vehicle.hpp"
|
|
|
|
#include "features/world.hpp"
|
2021-02-21 00:19:15 +01:00
|
|
|
#include "pointers.hpp"
|
2019-03-21 20:18:31 +01:00
|
|
|
#include "script.hpp"
|
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void features::run_tick()
|
|
|
|
{
|
2021-01-15 23:16:50 +01:00
|
|
|
// System
|
2021-02-05 02:38:56 +01:00
|
|
|
sys::loop();
|
2020-12-26 19:26:10 +01:00
|
|
|
|
2021-02-05 02:38:56 +01:00
|
|
|
// Protections
|
|
|
|
protections::loop();
|
2021-01-15 23:16:50 +01:00
|
|
|
|
2021-02-21 00:19:15 +01:00
|
|
|
if (*g_pointers->m_game_state == eGameState::Playing)
|
|
|
|
{
|
|
|
|
// Custom Guns
|
|
|
|
custom_guns::loop();
|
|
|
|
|
|
|
|
// Self
|
|
|
|
self::loop();
|
2021-01-15 23:16:50 +01:00
|
|
|
|
2021-02-21 00:19:15 +01:00
|
|
|
// Tunable
|
|
|
|
tunables::loop();
|
2021-01-15 23:16:50 +01:00
|
|
|
|
2021-02-21 00:19:15 +01:00
|
|
|
// Util
|
|
|
|
util::loop();
|
2021-01-15 23:16:50 +01:00
|
|
|
|
2021-02-21 00:19:15 +01:00
|
|
|
// Vehicle
|
|
|
|
vehicle::loop();
|
2021-02-05 02:38:56 +01:00
|
|
|
|
2021-02-21 00:19:15 +01:00
|
|
|
// World
|
|
|
|
world::loop();
|
|
|
|
}
|
2019-03-21 20:18:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void features::script_func()
|
|
|
|
{
|
|
|
|
while (true)
|
|
|
|
{
|
2020-02-22 18:37:42 -05:00
|
|
|
TRY_CLAUSE
|
|
|
|
{
|
|
|
|
run_tick();
|
|
|
|
}
|
|
|
|
EXCEPT_CLAUSE
|
2019-03-21 20:18:31 +01:00
|
|
|
script::get_current()->yield();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|