From 5a1674881ef81ec235303768be1c57e5eca3ed91 Mon Sep 17 00:00:00 2001 From: Yimura Date: Sat, 26 Dec 2020 19:18:29 +0100 Subject: [PATCH] feat(Features): Added off radar looped feature --- BigBaseV2/src/features.cpp | 3 +++ BigBaseV2/src/features.hpp | 1 + BigBaseV2/src/features/off_radar.cpp | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 BigBaseV2/src/features/off_radar.cpp diff --git a/BigBaseV2/src/features.cpp b/BigBaseV2/src/features.cpp index b0d24dfc..fa595322 100644 --- a/BigBaseV2/src/features.cpp +++ b/BigBaseV2/src/features.cpp @@ -7,7 +7,10 @@ namespace big { void features::run_tick() { + g_playerId = PLAYER::PLAYER_ID(); + god_mode(); + off_radar(); no_ragdoll(); } diff --git a/BigBaseV2/src/features.hpp b/BigBaseV2/src/features.hpp index e81615b9..c46637ca 100644 --- a/BigBaseV2/src/features.hpp +++ b/BigBaseV2/src/features.hpp @@ -24,6 +24,7 @@ namespace big void script_func(); void god_mode(); + void off_radar(); void no_ragdoll(); } } diff --git a/BigBaseV2/src/features/off_radar.cpp b/BigBaseV2/src/features/off_radar.cpp new file mode 100644 index 00000000..a20268c5 --- /dev/null +++ b/BigBaseV2/src/features/off_radar.cpp @@ -0,0 +1,20 @@ +#include "features.hpp" +#include "script_global.hpp" + +namespace big +{ + void features::off_radar() + { + if (g_settings.options["off_radar"].get()) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + if (PLAYER::IS_PLAYER_ONLINE()) + { + *script_global(2425869).at(1 + (g_playerId * 443)).at(204).as() = 1; + *script_global(2440049).at(70).as() = NETWORK::GET_NETWORK_TIME() + 999; + } + }QUEUE_JOB_END_CLAUSE + } + } +} \ No newline at end of file