mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-08 18:33:37 +08:00
feat(Session): Added local time modifiers
This commit is contained in:
parent
dbcd74c49a
commit
b77668694e
@ -49,6 +49,11 @@ namespace big
|
||||
looped::self_super_run();
|
||||
}QUEUE_JOB_END_CLAUSE
|
||||
|
||||
QUEUE_JOB_BEGIN_CLAUSE()
|
||||
{
|
||||
looped::session_local_time();
|
||||
}QUEUE_JOB_END_CLAUSE
|
||||
|
||||
QUEUE_JOB_BEGIN_CLAUSE()
|
||||
{
|
||||
looped::player_never_wanted();
|
||||
|
@ -27,6 +27,8 @@ namespace big
|
||||
static void self_police();
|
||||
static void self_super_run();
|
||||
|
||||
static void session_local_time();
|
||||
|
||||
static void system_update_players();
|
||||
static void system_update_pointers();
|
||||
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;
|
||||
};
|
||||
|
||||
struct session
|
||||
{
|
||||
bool override_time = {};
|
||||
struct
|
||||
{
|
||||
int hour{}, minute{}, second{};
|
||||
} custom_time;
|
||||
};
|
||||
|
||||
struct settings {
|
||||
struct hotkeys
|
||||
{
|
||||
@ -178,6 +187,7 @@ namespace big
|
||||
player player{};
|
||||
protections protections{};
|
||||
self self{};
|
||||
session session{};
|
||||
settings settings{};
|
||||
spawn spawn{};
|
||||
spoofing spoofing{};
|
||||
|
@ -38,7 +38,7 @@ namespace big
|
||||
ImGui::Checkbox("Show Player Godmode", &g->esp.god);
|
||||
ImGui::Checkbox("Show Player Health", &g->esp.health);
|
||||
ImGui::Checkbox("Show Player Name", &g->esp.name);
|
||||
|
||||
|
||||
static ImVec4 col_esp = ImGui::ColorConvertU32ToFloat4(g->esp.color);
|
||||
static ImVec4 col_friend = ImGui::ColorConvertU32ToFloat4(g->esp.friend_color);
|
||||
if (ImGui::ColorEdit4("ESP Color##esp_picker", (float*)&col_esp, ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_NoSidePreview))
|
||||
@ -49,10 +49,21 @@ namespace big
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user