Подписывайтесь на наш Telegram и не пропускайте важные новости! Перейти

Вопрос IGlobalVars

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
19 Сен 2025
Сообщения
21
Реакции
0
как получить m_client_tick
[08-05-2026 13:15:43] [info] Tick: 0
[08-05-2026 13:15:45] [info] Tick: 0
[08-05-2026 13:15:45] [info] Tick: 0
[08-05-2026 13:15:45] [info] Tick: 0
IGlobalVars:
Expand Collapse Copy
    GlobalVars = *reinterpret_cast<IGlobalVars**>(MEM::ResolveRelativeAddress(MEM::FindPattern(CLIENT_DLL, CS_XOR("48 8B 0D ? ? ? ? 4C 8D 05 ? ? ? ? 48 85 D2")), 0x3, 0x7));
    bSuccess &= (GlobalVars != nullptr);
#pragma once

// used: mem_pad
#include "../../utilities/memory.h"
class IGlobalVars
{
public:
    float m_real_time; //0x0000
    int32_t m_frame_count; //0x0004
    float m_frame_time; //0x0008
    float m_frame_advance; //0x000C
    int32_t m_max_clients; //0x0010
    bool m_supress_simulation; //0x0014
    char pad_0015[27]; //0x0015
    float m_curtime; //0x0030
    float m_render_time; // 0x0034
    float m_client_tick_fraction; // 0x0038
    float m_next_tick_fraction; // 0x003C
    float m_client_fraction; //0x0040
    int32_t m_client_tick; //0x0044
    int32_t m_tick_count; //0x0048
    float m_tick_fraction; //0x004C
    MEM_PAD(8); //0x0050

    MEM_PAD(280); //0x0060
    const char* m_map_name; //0x0178
    const char* m_map_name_short; //0x0180
};
 
как получить m_client_tick
[08-05-2026 13:15:43] [info] Tick: 0
[08-05-2026 13:15:45] [info] Tick: 0
[08-05-2026 13:15:45] [info] Tick: 0
[08-05-2026 13:15:45] [info] Tick: 0
IGlobalVars:
Expand Collapse Copy
    GlobalVars = *reinterpret_cast<IGlobalVars**>(MEM::ResolveRelativeAddress(MEM::FindPattern(CLIENT_DLL, CS_XOR("48 8B 0D ? ? ? ? 4C 8D 05 ? ? ? ? 48 85 D2")), 0x3, 0x7));
    bSuccess &= (GlobalVars != nullptr);
#pragma once

// used: mem_pad
#include "../../utilities/memory.h"
class IGlobalVars
{
public:
    float m_real_time; //0x0000
    int32_t m_frame_count; //0x0004
    float m_frame_time; //0x0008
    float m_frame_advance; //0x000C
    int32_t m_max_clients; //0x0010
    bool m_supress_simulation; //0x0014
    char pad_0015[27]; //0x0015
    float m_curtime; //0x0030
    float m_render_time; // 0x0034
    float m_client_tick_fraction; // 0x0038
    float m_next_tick_fraction; // 0x003C
    float m_client_fraction; //0x0040
    int32_t m_client_tick; //0x0044
    int32_t m_tick_count; //0x0048
    float m_tick_fraction; //0x004C
    MEM_PAD(8); //0x0050

    MEM_PAD(280); //0x0060
    const char* m_map_name; //0x0178
    const char* m_map_name_short; //0x0180
};
всегда возврощает 0
 
как получить m_client_tick
[08-05-2026 13:15:43] [info] Tick: 0
[08-05-2026 13:15:45] [info] Tick: 0
[08-05-2026 13:15:45] [info] Tick: 0
[08-05-2026 13:15:45] [info] Tick: 0
IGlobalVars:
Expand Collapse Copy
    GlobalVars = *reinterpret_cast<IGlobalVars**>(MEM::ResolveRelativeAddress(MEM::FindPattern(CLIENT_DLL, CS_XOR("48 8B 0D ? ? ? ? 4C 8D 05 ? ? ? ? 48 85 D2")), 0x3, 0x7));
    bSuccess &= (GlobalVars != nullptr);
#pragma once

// used: mem_pad
#include "../../utilities/memory.h"
class IGlobalVars
{
public:
    float m_real_time; //0x0000
    int32_t m_frame_count; //0x0004
    float m_frame_time; //0x0008
    float m_frame_advance; //0x000C
    int32_t m_max_clients; //0x0010
    bool m_supress_simulation; //0x0014
    char pad_0015[27]; //0x0015
    float m_curtime; //0x0030
    float m_render_time; // 0x0034
    float m_client_tick_fraction; // 0x0038
    float m_next_tick_fraction; // 0x003C
    float m_client_fraction; //0x0040
    int32_t m_client_tick; //0x0044
    int32_t m_tick_count; //0x0048
    float m_tick_fraction; //0x004C
    MEM_PAD(8); //0x0050

    MEM_PAD(280); //0x0060
    const char* m_map_name; //0x0178
    const char* m_map_name_short; //0x0180
};
структура вронг
 
Назад
Сверху Снизу