This repository has been archived on 2026-11-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-11-05 02:19:09 +01:00

116 lines
2.7 KiB
C++

#pragma once
namespace g::p
{
struct ac_scan_t
{
ulong id;
float time;
};
inline r5::context_t* context = nullptr;
namespace acc
{
inline hvi::acc::eac::Context_t* eac = nullptr;
}
inline respawn::game_modes game_mode{};
inline c_render render{};
inline math::dimension_t<int> screen{};
inline respawn::cached_data_t cache{};
inline c_input_manager input_mgr{};
inline window::c_manager window_mgr{};
inline c_entity_cache ent_cache{};
inline c_config config{};
inline math::Angle3 eye_angles{ };
inline math::Angle3 sway_angles{ };
inline stl::c_linked_list<ac_scan_t> acs_history{};
__forceinline auto on_ac_event(ulong code)
{
acs_history.insert({ 0xEAC + code, curtime });
}
}
namespace ix
{
inline respawn::c_base_client* base_client = nullptr;
inline respawn::c_shared_client* shared_client = nullptr;
inline respawn::c_engine_client* engine_client = nullptr;
inline respawn::c_engine_vgui* engine_vgui = nullptr;
inline respawn::c_engine_trace* engine_trace = nullptr;
inline respawn::c_entity_list* entity_list = nullptr;
inline respawn::c_input* input = nullptr;
inline respawn::c_input_system* input_system = nullptr;
inline respawn::c_view_render* view_render = nullptr;
inline respawn::c_model_info* model_info = nullptr;
inline respawn::c_global_vars* global_vars = nullptr;
inline respawn::c_game_movement* game_movement = nullptr;
inline respawn::c_mat_system_surface* mat_system_surface = nullptr;
inline respawn::c_convar_mgr* cvar_mgr = nullptr;
inline respawn::c_file_system* file_system = nullptr;
inline respawn::c_player** local_player_ptr = nullptr;
inline respawn::c_net_chan** net_chan = nullptr;
}
namespace gv
{
inline float* engine_time = nullptr;
inline int* crosshair_state = nullptr;
inline bool* input_disable = nullptr;
}
namespace f
{
inline features::c_movement movement{};
inline features::c_glow glow{};
inline features::c_aim aim{};
inline features::c_esp esp{};
inline features::c_logger logger{};
inline features::c_skin_changer skin_changer{};
}
namespace si
{
inline c_synced_input paint{};
inline c_synced_input create_move{};
}
namespace respawn
{
__forceinline auto net_chan() -> respawn::c_net_chan*
{
if (ix::net_chan == nullptr)
return nullptr;
return *ix::net_chan;
}
__forceinline auto last_out_cmd_nr() -> int
{
const auto address = dyn_addr::get_dynamic_address(_XS("ptr_last_out_cmd"));
return *reinterpret_cast<int*>(address);
}
}
namespace netvar
{
inline ulong life_state{};
inline ulong bleedout_state{};
}
namespace cvar
{
inline respawn::c_convar* time_scale{ };
inline respawn::c_convar* third_person{ };
inline respawn::c_convar* draw_view_model{ };
inline respawn::c_convar* move_use_dt{ };
}