feat(Session): Added local time modifiers
This commit is contained in:
parent
4ed4ce0ee3
commit
30847d05cb
@ -49,6 +49,11 @@ namespace big
|
|||||||
looped::self_super_run();
|
looped::self_super_run();
|
||||||
}QUEUE_JOB_END_CLAUSE
|
}QUEUE_JOB_END_CLAUSE
|
||||||
|
|
||||||
|
QUEUE_JOB_BEGIN_CLAUSE()
|
||||||
|
{
|
||||||
|
looped::session_local_time();
|
||||||
|
}QUEUE_JOB_END_CLAUSE
|
||||||
|
|
||||||
QUEUE_JOB_BEGIN_CLAUSE()
|
QUEUE_JOB_BEGIN_CLAUSE()
|
||||||
{
|
{
|
||||||
looped::player_never_wanted();
|
looped::player_never_wanted();
|
||||||
|
@ -27,6 +27,8 @@ namespace big
|
|||||||
static void self_police();
|
static void self_police();
|
||||||
static void self_super_run();
|
static void self_super_run();
|
||||||
|
|
||||||
|
static void session_local_time();
|
||||||
|
|
||||||
static void system_update_players();
|
static void system_update_players();
|
||||||
static void system_update_pointers();
|
static void system_update_pointers();
|
||||||
static void system_screen_size();
|
static void system_screen_size();
|
||||||
|
24
BigBaseV2/src/backend/looped/session/local_time.cpp
Normal file
24
BigBaseV2/src/backend/looped/session/local_time.cpp
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#include "backend/looped/looped.hpp"
|
||||||
|
#include "natives.hpp"
|
||||||
|
|
||||||
|
namespace big
|
||||||
|
{
|
||||||
|
static bool lastOverride = true;
|
||||||
|
|
||||||
|
void looped::session_local_time()
|
||||||
|
{
|
||||||
|
if (lastOverride && !g->session.override_time)
|
||||||
|
{
|
||||||
|
NETWORK::NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK(&g->session.custom_time.hour, &g->session.custom_time.minute, &g->session.custom_time.second);
|
||||||
|
NETWORK::NETWORK_OVERRIDE_CLOCK_TIME(g->session.custom_time.hour, g->session.custom_time.minute, g->session.custom_time.second);
|
||||||
|
NETWORK::NETWORK_CLEAR_CLOCK_TIME_OVERRIDE();
|
||||||
|
lastOverride = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (g->session.override_time)
|
||||||
|
{
|
||||||
|
NETWORK::NETWORK_OVERRIDE_CLOCK_TIME(g->session.custom_time.hour, g->session.custom_time.minute, g->session.custom_time.second);
|
||||||
|
lastOverride = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -71,6 +71,15 @@ namespace big
|
|||||||
int wanted_level = 0;
|
int wanted_level = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct session
|
||||||
|
{
|
||||||
|
bool override_time = {};
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
int hour{}, minute{}, second{};
|
||||||
|
} custom_time;
|
||||||
|
};
|
||||||
|
|
||||||
struct settings {
|
struct settings {
|
||||||
struct hotkeys
|
struct hotkeys
|
||||||
{
|
{
|
||||||
@ -178,6 +187,7 @@ namespace big
|
|||||||
player player{};
|
player player{};
|
||||||
protections protections{};
|
protections protections{};
|
||||||
self self{};
|
self self{};
|
||||||
|
session session{};
|
||||||
settings settings{};
|
settings settings{};
|
||||||
spawn spawn{};
|
spawn spawn{};
|
||||||
spoofing spoofing{};
|
spoofing spoofing{};
|
||||||
|
@ -49,8 +49,19 @@ namespace big
|
|||||||
{
|
{
|
||||||
g->esp.friend_color = ImGui::ColorConvertFloat4ToU32(col_friend);
|
g->esp.friend_color = ImGui::ColorConvertFloat4ToU32(col_friend);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
ImGui::TreePop();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ImGui::TreeNode("Local Time"))
|
||||||
|
{
|
||||||
|
ImGui::Checkbox("Override Time", &g->session.override_time);
|
||||||
|
|
||||||
|
if (g->session.override_time)
|
||||||
|
{
|
||||||
|
ImGui::SliderInt("Hour", &g->session.custom_time.hour, 0, 23);
|
||||||
|
ImGui::SliderInt("Minute", &g->session.custom_time.minute, 0, 59);
|
||||||
|
ImGui::SliderInt("Second", &g->session.custom_time.second, 0, 59);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
|
Reference in New Issue
Block a user