feat(Features): Only loop certain feature groups when playing
This commit is contained in:
parent
758f0f4e19
commit
d81223f8e3
@ -7,6 +7,7 @@
|
|||||||
#include "features/util.hpp"
|
#include "features/util.hpp"
|
||||||
#include "features/vehicle.hpp"
|
#include "features/vehicle.hpp"
|
||||||
#include "features/world.hpp"
|
#include "features/world.hpp"
|
||||||
|
#include "pointers.hpp"
|
||||||
#include "script.hpp"
|
#include "script.hpp"
|
||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
@ -16,26 +17,29 @@ namespace big
|
|||||||
// System
|
// System
|
||||||
sys::loop();
|
sys::loop();
|
||||||
|
|
||||||
// Custom Guns
|
|
||||||
custom_guns::loop();
|
|
||||||
|
|
||||||
// Protections
|
// Protections
|
||||||
protections::loop();
|
protections::loop();
|
||||||
|
|
||||||
// Self
|
if (*g_pointers->m_game_state == eGameState::Playing)
|
||||||
self::loop();
|
{
|
||||||
|
// Custom Guns
|
||||||
|
custom_guns::loop();
|
||||||
|
|
||||||
// Tunable
|
// Self
|
||||||
tunables::loop();
|
self::loop();
|
||||||
|
|
||||||
// Util
|
// Tunable
|
||||||
util::loop();
|
tunables::loop();
|
||||||
|
|
||||||
// Vehicle
|
// Util
|
||||||
vehicle::loop();
|
util::loop();
|
||||||
|
|
||||||
// World
|
// Vehicle
|
||||||
world::loop();
|
vehicle::loop();
|
||||||
|
|
||||||
|
// World
|
||||||
|
world::loop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void features::script_func()
|
void features::script_func()
|
||||||
|
Reference in New Issue
Block a user