diff --git a/src/client/component/auth.cpp b/src/client/component/auth.cpp index 74115b2..54f0ac1 100644 --- a/src/client/component/auth.cpp +++ b/src/client/component/auth.cpp @@ -82,7 +82,7 @@ namespace auth return key; } - int send_connect_data_stub(game::netsrc_t sock, game::netadr_s* adr, const char* format, const int len) + int send_connect_data_stub(game::netsrc_t sock, game::netadr_t* adr, const char* format, const int len) { std::string connect_string(format, len); game::SV_Cmd_TokenizeString(connect_string.data()); @@ -116,7 +116,7 @@ namespace auth return true; } - void direct_connect(game::netadr_s* from, game::msg_t* msg) + void direct_connect(game::netadr_t* from, game::msg_t* msg) { const auto offset = sizeof("connect") + 4; diff --git a/src/client/component/bots.cpp b/src/client/component/bots.cpp index 21ba876..dd4f2ec 100644 --- a/src/client/component/bots.cpp +++ b/src/client/component/bots.cpp @@ -144,7 +144,7 @@ namespace bots { bot_names_received = false; - game::netadr_s master{}; + game::netadr_t master{}; if (server_list::get_master_server(master)) { console::info("Getting bots...\n"); @@ -198,9 +198,9 @@ namespace bots parse_bot_names_from_file(); } - network::on("getbotsResponse", [](const game::netadr_s& target, const std::string& data) + network::on("getbotsResponse", [](const game::netadr_t& target, const std::string& data) { - game::netadr_s master{}; + game::netadr_t master{}; if (server_list::get_master_server(master) && !bot_names_received && target == master) { bot_names = utils::string::split(data, '\n'); diff --git a/src/client/component/command.cpp b/src/client/component/command.cpp index 32127b6..4ecd32f 100644 --- a/src/client/component/command.cpp +++ b/src/client/component/command.cpp @@ -194,7 +194,7 @@ namespace command void add_raw(const char* name, void (*callback)()) { - game::Cmd_AddCommandInternal(name, callback, utils::memory::get_allocator()->allocate()); + game::Cmd_AddCommandInternal(name, callback, utils::memory::get_allocator()->allocate()); } void add(const char* name, const std::function& callback) @@ -318,7 +318,7 @@ namespace command } console::info("================================ COMMAND DUMP =====================================\n"); - game::cmd_function_s* cmd = *game::cmd_functions; + game::cmd_function_t* cmd = *game::cmd_functions; auto i = 0; while (cmd) { diff --git a/src/client/component/dedicated.cpp b/src/client/component/dedicated.cpp index 03b951b..8734002 100644 --- a/src/client/component/dedicated.cpp +++ b/src/client/component/dedicated.cpp @@ -110,7 +110,7 @@ namespace dedicated return; } - game::netadr_s target{}; + game::netadr_t target{}; if (server_list::get_master_server(target)) { network::send(target, "heartbeat", "IW6"); diff --git a/src/client/component/discord.cpp b/src/client/component/discord.cpp index 97960c1..32bd91f 100644 --- a/src/client/component/discord.cpp +++ b/src/client/component/discord.cpp @@ -71,7 +71,7 @@ namespace discord discord_presence.state = host_name; discord_presence.partyMax = party::server_client_count(); - std::hash hash_fn; + std::hash hash_fn; static const auto nonce = utils::cryptography::random::get_integer(); const auto& address = party::get_target(); diff --git a/src/client/component/dvar_cheats.cpp b/src/client/component/dvar_cheats.cpp index 19450f2..bda4b71 100644 --- a/src/client/component/dvar_cheats.cpp +++ b/src/client/component/dvar_cheats.cpp @@ -110,7 +110,7 @@ namespace dvar_cheats a.jmp(0x1404F0D74); }); - void cg_set_client_dvar_from_server(const int local_client_num, game::mp::cg_s* cg, const char* dvar_id, const char* value) + void cg_set_client_dvar_from_server(const int local_client_num, game::mp::cg_t* cg, const char* dvar_id, const char* value) { if (dvar_id == "cg_fov"s || dvar_id == "com_maxfps"s) { diff --git a/src/client/component/game_console.cpp b/src/client/component/game_console.cpp index 5b8fe91..be9f95c 100644 --- a/src/client/component/game_console.cpp +++ b/src/client/component/game_console.cpp @@ -674,7 +674,7 @@ namespace game_console } } - game::cmd_function_s* cmd = (*game::cmd_functions); + game::cmd_function_t* cmd = (*game::cmd_functions); while (cmd) { if (cmd->name) diff --git a/src/client/component/gameplay.cpp b/src/client/component/gameplay.cpp index db4c8da..73422e3 100644 --- a/src/client/component/gameplay.cpp +++ b/src/client/component/gameplay.cpp @@ -133,7 +133,7 @@ namespace gameplay return jump_height; } - void jump_apply_slowdown_stub(game::mp::playerState_s* ps) + void jump_apply_slowdown_stub(game::mp::playerState_t* ps) { assert(ps->pm_flags & game::PMF_JUMPING); @@ -163,7 +163,7 @@ namespace gameplay } } - float jump_get_slowdown_friction(game::mp::playerState_s* ps) + float jump_get_slowdown_friction(game::mp::playerState_t* ps) { assert(ps->pm_flags & game::PMF_JUMPING); assert(ps->pm_time <= game::JUMP_LAND_SLOWDOWN_TIME); @@ -181,7 +181,7 @@ namespace gameplay return 2.5f; } - float jump_reduce_friction_stub(game::mp::playerState_s* ps) + float jump_reduce_friction_stub(game::mp::playerState_t* ps) { float control; @@ -199,7 +199,7 @@ namespace gameplay return control; } - float jump_get_land_factor(game::mp::playerState_s* ps) + float jump_get_land_factor(game::mp::playerState_t* ps) { assert(ps->pm_flags & game::PMF_JUMPING); assert(ps->pm_time <= game::JUMP_LAND_SLOWDOWN_TIME); @@ -219,9 +219,9 @@ namespace gameplay void jump_start_stub(game::pmove_t* pm, game::pml_t* pml, float height) { - static_assert(offsetof(game::mp::playerState_s, groundEntityNum) == 0x70); - static_assert(offsetof(game::mp::playerState_s, pm_time) == 0x8); - static_assert(offsetof(game::mp::playerState_s, sprintState.sprintButtonUpRequired) == 0x240); + static_assert(offsetof(game::mp::playerState_t, groundEntityNum) == 0x70); + static_assert(offsetof(game::mp::playerState_t, pm_time) == 0x8); + static_assert(offsetof(game::mp::playerState_t, sprintState.sprintButtonUpRequired) == 0x240); static_assert(offsetof(game::pml_t, frametime) == 0x24); static_assert(offsetof(game::pml_t, walking) == 0x2C); static_assert(offsetof(game::pml_t, groundPlane) == 0x30); @@ -229,9 +229,9 @@ namespace gameplay float factor; float velocity_sqrd; - game::mp::playerState_s* ps; + game::mp::playerState_t* ps; - ps = static_cast(pm->ps); + ps = static_cast(pm->ps); assert(ps); @@ -295,7 +295,7 @@ namespace gameplay } } - void pm_weapon_use_ammo_stub(game::playerState_s* ps, game::Weapon weapon, + void pm_weapon_use_ammo_stub(game::playerState_t* ps, game::Weapon weapon, bool is_alternate, int amount, game::PlayerHandIndex hand) { if (!dvars::player_sustainAmmo->current.enabled) @@ -304,10 +304,10 @@ namespace gameplay } } - game::mp::gentity_s* weapon_rocket_launcher_fire_stub(game::mp::gentity_s* ent, game::Weapon weapon, float spread, game::weaponParms* wp, + game::mp::gentity_t* weapon_rocket_launcher_fire_stub(game::mp::gentity_t* ent, game::Weapon weapon, float spread, game::weaponParms* wp, const float* gun_vel, game::mp::missileFireParms* fire_parms, bool magic_bullet) { - auto* result = utils::hook::invoke(0x1403DB8A0, ent, weapon, spread, wp, gun_vel, fire_parms, magic_bullet); + auto* result = utils::hook::invoke(0x1403DB8A0, ent, weapon, spread, wp, gun_vel, fire_parms, magic_bullet); if (ent->client != nullptr && wp->weapDef->inventoryType != game::WEAPINVENTORY_EXCLUSIVE) { diff --git a/src/client/component/network.cpp b/src/client/component/network.cpp index 0222a44..2ccf6a9 100644 --- a/src/client/component/network.cpp +++ b/src/client/component/network.cpp @@ -20,7 +20,7 @@ namespace network return callbacks; } - bool handle_command(game::netadr_s* address, const char* command, game::msg_t* message) + bool handle_command(game::netadr_t* address, const char* command, game::msg_t* message) { const auto cmd_string = utils::string::to_lower(command); auto& callbacks = get_callbacks(); @@ -61,7 +61,7 @@ namespace network a.jmp(0x1402C64EE); } - int net_compare_base_address(const game::netadr_s* a1, const game::netadr_s* a2) + int net_compare_base_address(const game::netadr_t* a1, const game::netadr_t* a2) { if (a1->type == a2->type) { @@ -83,12 +83,12 @@ namespace network return false; } - int net_compare_address(const game::netadr_s* a1, const game::netadr_s* a2) + int net_compare_address(const game::netadr_t* a1, const game::netadr_t* a2) { return net_compare_base_address(a1, a2) && a1->port == a2->port; } - void reconnect_migrated_client(game::mp::client_t*, game::netadr_s* from, const int, const int, const char*, const char*, bool) + void reconnect_migrated_client(game::mp::client_t*, game::netadr_t* from, const int, const int, const char*, const char*, bool) { // This happens when a client tries to rejoin after being recently disconnected, OR by a duplicated guid // We don't want this to do anything. It decides to crash seemingly randomly @@ -107,14 +107,14 @@ namespace network get_callbacks()[utils::string::to_lower(command)] = callback; } - int dw_send_to_stub(const int size, const char* src, game::netadr_s* addr) + int dw_send_to_stub(const int size, const char* src, game::netadr_t* addr) { sockaddr s = {}; game::NetadrToSockadr(addr, &s); return sendto(*game::query_socket, src, size, 0, &s, 16) >= 0; } - void send(const game::netadr_s& address, const std::string& command, const std::string& data, const char separator) + void send(const game::netadr_t& address, const std::string& command, const std::string& data, const char separator) { std::string packet = "\xFF\xFF\xFF\xFF"; packet.append(command); @@ -124,7 +124,7 @@ namespace network send_data(address, packet); } - void send_data(const game::netadr_s& address, const std::string& data) + void send_data(const game::netadr_t& address, const std::string& data) { if (address.type == game::NA_LOOPBACK) { @@ -136,12 +136,12 @@ namespace network } } - bool are_addresses_equal(const game::netadr_s& a, const game::netadr_s& b) + bool are_addresses_equal(const game::netadr_t& a, const game::netadr_t& b) { return net_compare_address(&a, &b); } - const char* net_adr_to_string(const game::netadr_s& a) + const char* net_adr_to_string(const game::netadr_t& a) { if (a.type == game::NA_LOOPBACK) { @@ -286,7 +286,7 @@ namespace network if (!game::environment::is_dedi()) { // we need this on the client for RCon - on("print", [](const game::netadr_s& address, const std::string& message) + on("print", [](const game::netadr_t& address, const std::string& message) { if (address != party::get_target()) { diff --git a/src/client/component/network.hpp b/src/client/component/network.hpp index 4e6ae49..03cc87f 100644 --- a/src/client/component/network.hpp +++ b/src/client/component/network.hpp @@ -2,23 +2,23 @@ namespace network { - using callback = std::function; + using callback = std::function; void on(const std::string& command, const callback& callback); - void send(const game::netadr_s& address, const std::string& command, const std::string& data = {}, char separator = ' '); - void send_data(const game::netadr_s& address, const std::string& data); + void send(const game::netadr_t& address, const std::string& command, const std::string& data = {}, char separator = ' '); + void send_data(const game::netadr_t& address, const std::string& data); - bool are_addresses_equal(const game::netadr_s& a, const game::netadr_s& b); + bool are_addresses_equal(const game::netadr_t& a, const game::netadr_t& b); - const char* net_adr_to_string(const game::netadr_s& a); + const char* net_adr_to_string(const game::netadr_t& a); } -inline bool operator==(const game::netadr_s& a, const game::netadr_s& b) +inline bool operator==(const game::netadr_t& a, const game::netadr_t& b) { return network::are_addresses_equal(a, b); // } -inline bool operator!=(const game::netadr_s& a, const game::netadr_s& b) +inline bool operator!=(const game::netadr_t& a, const game::netadr_t& b) { return !(a == b); // } @@ -26,20 +26,20 @@ inline bool operator!=(const game::netadr_s& a, const game::netadr_s& b) namespace std { template <> - struct equal_to + struct equal_to { using result_type = bool; - bool operator()(const game::netadr_s& lhs, const game::netadr_s& rhs) const + bool operator()(const game::netadr_t& lhs, const game::netadr_t& rhs) const { return network::are_addresses_equal(lhs, rhs); } }; template <> - struct hash + struct hash { - size_t operator()(const game::netadr_s& x) const noexcept + size_t operator()(const game::netadr_t& x) const noexcept { return hash()(*reinterpret_cast(&x.ip[0])) ^ hash()(x.port); } diff --git a/src/client/component/party.cpp b/src/client/component/party.cpp index bc073e6..5266941 100644 --- a/src/client/component/party.cpp +++ b/src/client/component/party.cpp @@ -26,7 +26,7 @@ namespace party { struct { - game::netadr_s host{}; + game::netadr_t host{}; std::string challenge{}; bool hostDefined{false}; } connect_state; @@ -37,7 +37,7 @@ namespace party int sv_maxclients; - void connect_to_party(const game::netadr_s& target, const std::string& mapname, const std::string& gametype) + void connect_to_party(const game::netadr_t& target, const std::string& mapname, const std::string& gametype) { if (game::environment::is_sp()) { @@ -58,7 +58,7 @@ namespace party // CL_ConnectFromParty char session_info[0x100] = {}; - reinterpret_cast(0x1402C5700)( + reinterpret_cast(0x1402C5700)( 0, session_info, &target, mapname.data(), gametype.data()); } @@ -146,7 +146,7 @@ namespace party return count; } - game::netadr_s& get_target() + game::netadr_t& get_target() { return connect_state.host; } @@ -175,7 +175,7 @@ namespace party return -1; } - void connect(const game::netadr_s& target) + void connect(const game::netadr_t& target) { if (game::environment::is_sp()) { @@ -252,7 +252,7 @@ namespace party return; } - game::netadr_s target{}; + game::netadr_t target{}; if (game::NET_StringToAdr(params[1], &target)) { connect(target); @@ -405,7 +405,7 @@ namespace party console::info("%s\n", message.data()); }); - network::on("getInfo", [](const game::netadr_s& target, const std::string& data) + network::on("getInfo", [](const game::netadr_t& target, const std::string& data) { utils::info_string info; info.set("challenge", data); @@ -430,7 +430,7 @@ namespace party return; } - network::on("infoResponse", [](const game::netadr_s& target, const std::string& data) + network::on("infoResponse", [](const game::netadr_t& target, const std::string& data) { const utils::info_string info(data); server_list::handle_info_response(target, info); diff --git a/src/client/component/party.hpp b/src/client/component/party.hpp index fd32ce5..85d1a82 100644 --- a/src/client/component/party.hpp +++ b/src/client/component/party.hpp @@ -7,7 +7,7 @@ namespace party void reset_connect_state(); - void connect(const game::netadr_s& target); + void connect(const game::netadr_t& target); void map_restart(); [[nodiscard]] int server_client_count(); @@ -15,5 +15,5 @@ namespace party [[nodiscard]] int get_client_count(); [[nodiscard]] int get_bot_count(); - [[nodiscard]] game::netadr_s& get_target(); + [[nodiscard]] game::netadr_t& get_target(); } diff --git a/src/client/component/patches.cpp b/src/client/component/patches.cpp index 59afda4..3afc21a 100644 --- a/src/client/component/patches.cpp +++ b/src/client/component/patches.cpp @@ -150,7 +150,7 @@ namespace patches return 0; } - game::Font_s* get_chat_font_handle() + game::Font_t* get_chat_font_handle() { return game::R_RegisterFont("fonts/bigFont"); } @@ -187,7 +187,7 @@ namespace patches } utils::hook::detour cmd_lui_notify_server_hook; - void cmd_lui_notify_server_stub(game::mp::gentity_s* ent) + void cmd_lui_notify_server_stub(game::mp::gentity_t* ent) { command::params_sv params{}; const auto menu_id = atoi(params.get(1)); diff --git a/src/client/component/rcon.cpp b/src/client/component/rcon.cpp index 52dff19..0371a68 100644 --- a/src/client/component/rcon.cpp +++ b/src/client/component/rcon.cpp @@ -14,11 +14,11 @@ namespace rcon namespace { bool is_redirecting_ = false; - game::netadr_s redirect_target_ = {}; + game::netadr_t redirect_target_ = {}; std::string redirect_buffer = {}; std::recursive_mutex redirect_lock; - void setup_redirect(const game::netadr_s& target) + void setup_redirect(const game::netadr_t& target) { std::lock_guard $(redirect_lock); @@ -92,7 +92,7 @@ namespace rcon if (*reinterpret_cast(0x1419E1AE0) >= 5) //clientUIActive.connectionState >= CA_CONNECTED { - const auto target = *reinterpret_cast(0x141CB535C); + const auto target = *reinterpret_cast(0x141CB535C); const auto buffer = password + " " + data; network::send(target, "rcon", buffer); } @@ -170,7 +170,7 @@ namespace rcon } else { - network::on("rcon", [](const game::netadr_s& addr, const std::string& data) + network::on("rcon", [](const game::netadr_t& addr, const std::string& data) { const auto pos = data.find_first_of(" "); if (pos == std::string::npos) diff --git a/src/client/component/server_list.cpp b/src/client/component/server_list.cpp index b8abc61..34ea29f 100644 --- a/src/client/component/server_list.cpp +++ b/src/client/component/server_list.cpp @@ -33,14 +33,14 @@ namespace server_list std::string map_name; std::string game_type; char in_game; - game::netadr_s address; + game::netadr_t address; }; struct { - game::netadr_s address{}; + game::netadr_t address{}; volatile bool requesting = false; - std::unordered_map queued_servers{}; + std::unordered_map queued_servers{}; } master_state; volatile bool update_server_list = false; @@ -307,12 +307,12 @@ namespace server_list } } - bool get_master_server(game::netadr_s& address) + bool get_master_server(game::netadr_t& address) { return game::NET_StringToAdr("server.alterware.dev:20810", &address); } - void handle_info_response(const game::netadr_s& address, const utils::info_string& info) + void handle_info_response(const game::netadr_t& address, const utils::info_string& info) { int start_time{}; const auto now = game::Sys_Milliseconds(); @@ -436,7 +436,7 @@ namespace server_list scheduler::loop(do_frame_work, scheduler::pipeline::main); - network::on("getServersResponse", [](const game::netadr_s& target, const std::string& data) + network::on("getServersResponse", [](const game::netadr_t& target, const std::string& data) { { std::lock_guard _(mutex); @@ -469,7 +469,7 @@ namespace server_list break; } - game::netadr_s address{}; + game::netadr_t address{}; address.type = game::NA_IP; address.localNetID = game::NS_CLIENT1; std::memcpy(&address.ip[0], data.data() + i + 0, 4); diff --git a/src/client/component/server_list.hpp b/src/client/component/server_list.hpp index 09f62b2..76e260a 100644 --- a/src/client/component/server_list.hpp +++ b/src/client/component/server_list.hpp @@ -3,8 +3,8 @@ namespace server_list { - bool get_master_server(game::netadr_s& address); - void handle_info_response(const game::netadr_s& address, const utils::info_string& info); + bool get_master_server(game::netadr_t& address); + void handle_info_response(const game::netadr_t& address, const utils::info_string& info); bool sl_key_event(int key, int down); } diff --git a/src/client/game/structs.hpp b/src/client/game/structs.hpp index 87e6847..d097247 100644 --- a/src/client/game/structs.hpp +++ b/src/client/game/structs.hpp @@ -181,7 +181,7 @@ namespace game static_assert(sizeof(db_internal_state) == 0x20); - struct db_z_stream_s + struct db_z_stream_t { unsigned char* next_in; unsigned int avail_in; @@ -216,7 +216,7 @@ namespace game unsigned char* start_in; _OVERLAPPED overlapped; unsigned int readError; - db_z_stream_s stream; + db_z_stream_t stream; int readingResident; }; @@ -1064,7 +1064,7 @@ namespace game float t1; }; - struct Font_s + struct Font_t { const char* fontName; int pixelHeight; @@ -1182,9 +1182,9 @@ namespace game const char** argv[8]; }; - struct cmd_function_s + struct cmd_function_t { - cmd_function_s* next; + cmd_function_t* next; const char* name; void (__cdecl* function)(); }; @@ -1235,7 +1235,7 @@ namespace game WEAPON_HAND_DEFAULT = 0x0, }; - struct usercmd_s + struct usercmd_t { int serverTime; unsigned int buttons; @@ -1311,7 +1311,7 @@ namespace game bool hybridScope; }; - struct compressedAnimData_s + struct compressedAnimData_t { int flags; int animRate; @@ -1330,7 +1330,7 @@ namespace game int flags; int startTime; float startPosition[3]; - compressedAnimData_s compressedAnimData; + compressedAnimData_t compressedAnimData; }; struct SlideState @@ -1339,7 +1339,7 @@ namespace game int noFricTime; }; - struct SprintState_s + struct SprintState_t { int sprintButtonUpRequired; int sprintDelay; @@ -1398,7 +1398,7 @@ namespace game NS_INVALID_NETSRC = 0x4, }; - struct netadr_s + struct netadr_t { netadrtype_t type; unsigned char ip[4]; @@ -1463,7 +1463,7 @@ namespace game unsigned int rgba; }; - struct hudelem_s + struct hudelem_t { he_type_t type; float x; @@ -1509,9 +1509,9 @@ namespace game int flags; }; - struct game_hudelem_s + struct game_hudelem_t { - hudelem_s elem; + hudelem_t elem; int clientNum; int team; int archived; @@ -1939,7 +1939,7 @@ namespace game FxWorld *fxWorld; GfxWorld *gfxWorld; GfxLightDef *lightDef;*/ - Font_s* font; + Font_t* font; /*MenuList *menuList; menuDef_t *menu; AnimationClass *animClass; @@ -2018,21 +2018,21 @@ namespace game namespace sp { // very shit structures for the moment cuz i cba mapping the whole thing out right now... - struct gclient_s + struct gclient_t { char __0x00[0xB6DC]; int flags; }; - struct gentity_s + struct gentity_t { char __0x00[0x110]; - gclient_s* client; + gclient_t* client; char __0x118[0x4C]; int flags; }; - struct playerState_s + struct playerState_t { }; @@ -2049,7 +2049,7 @@ namespace game namespace mp { #pragma pack(push, 4) - struct playerState_s + struct playerState_t { int commandTime; int pm_type; @@ -2101,7 +2101,7 @@ namespace game vec3_t viewangles; char _0x190[0xAC]; int locationSelectionInfo; - SprintState_s sprintState; + SprintState_t sprintState; float holdBreathScale; int holdBreathTimer; float moveSpeedScaleMultiplier; @@ -2179,7 +2179,7 @@ namespace game TEAM_NUM_TEAMS = 0x4, }; - struct clientState_s + struct clientState_t { int clientIndex; team_t team; @@ -2203,21 +2203,21 @@ namespace game int killCamEntity; int isInKillcam; char __0x332C[0x14]; - usercmd_s cmd; - usercmd_s oldcmd; + usercmd_t cmd; + usercmd_t oldcmd; int localClient; char __0x33C4[0x24]; float moveSpeedScaleMultiplier; int viewmodelIndex; int noSpectate; - clientState_s cs; + clientState_t cs; ScoreInfo scores; char __pad[0x1B0]; }; - struct gclient_s + struct gclient_t { - playerState_s ps; + playerState_t ps; clientSession_t sess; int flags; int spectatorClient; @@ -2266,11 +2266,11 @@ namespace game char _0x14C[0xC]; }; - struct gentity_s + struct gentity_t { EntityState s; EntityShared r; - gclient_s* client; + gclient_t* client; char _0x170[0x50]; int flags; char _0x1C4[0x18]; @@ -2279,7 +2279,7 @@ namespace game char _0x1E4[0x10C]; }; - struct snapshot_s + struct snapshot_t { char _0x0[0x3C78]; int ping; @@ -2288,12 +2288,12 @@ namespace game int numClients; }; - struct cg_s + struct cg_t { - playerState_s ps; + playerState_t ps; char _0x3324[0x64]; - snapshot_s* snap; - snapshot_s* nextSnap; // theres alot after this cba rn + snapshot_t* snap; + snapshot_t* nextSnap; // theres alot after this cba rn }; struct netProfilePacket_t @@ -2328,7 +2328,7 @@ namespace game netsrc_t sock; int dropped; int incomingSequence; - netadr_s remoteAddress; + netadr_t remoteAddress; int fragmentSequence; int fragmentLength; char* fragmentBuffer; @@ -2378,7 +2378,7 @@ namespace game int reliableSent; int messageAcknowledge; char _0xC30[0x41238]; - gentity_s* gentity; + gentity_t* gentity; char name[16]; int lastPacketTime; int lastConnectTime; @@ -2411,7 +2411,7 @@ namespace game struct missileFireParms { - gentity_s* target; + gentity_t* target; float targetPosOrOffset[3]; float autoDetonateTime; bool lockon; @@ -2423,10 +2423,10 @@ namespace game static_assert(sizeof(mp::client_t) == 0x83570); - union playerState_s + union playerState_t { - sp::playerState_s* sp; - mp::playerState_s* mp; + sp::playerState_t* sp; + mp::playerState_t* mp; }; enum GfxDrawSceneMethod @@ -2457,7 +2457,7 @@ namespace game TECHNIQUE_NONE = 0x137, }; - struct GfxDrawMethod_s + struct GfxDrawMethod_t { int drawScene; int baseTechType; @@ -2509,8 +2509,8 @@ namespace game struct pmove_t { void* ps; - usercmd_s cmd; - usercmd_s oldcmd; + usercmd_t cmd; + usercmd_t oldcmd; int tracemask; int numtouch; int touchents[32]; diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index 69b3007..770cb0b 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -39,9 +39,9 @@ namespace game WEAK symbol CL_IsCgameInitialized{0x140234DA0, 0x1402B9A70}; WEAK symbol CG_GameMessage{0x1401F2E20, 0x140271320}; - WEAK symbol CG_SetClientDvarFromServer{0x0, 0x14028A2C0}; + WEAK symbol CG_SetClientDvarFromServer{0x0, 0x14028A2C0}; - WEAK symbol Cmd_AddCommandInternal{0x1403B3570, 0x1403F7070}; + WEAK symbol Cmd_AddCommandInternal{0x1403B3570, 0x1403F7070}; WEAK symbol Cmd_ExecuteSingleCommand{0x1403B3B10, 0x1403F7680}; WEAK symbol DB_EnumXAssets_FastFile{0x140271F50, 0x14031EF90}; @@ -94,17 +94,17 @@ namespace game WEAK symbol FS_AddLocalizedGameDirectory{0x14041A2F0, 0x1404DC760}; WEAK symbol G_FindItem{0x140462490, 0x14021B7E0}; - WEAK symbol G_GivePlayerWeapon{0x140359E20, 0x1403DA5E0}; + WEAK symbol G_GivePlayerWeapon{0x140359E20, 0x1403DA5E0}; WEAK symbol G_GetWeaponForName{0x140359890, 0x1403DA060}; WEAK symbol G_Glass_Update{0x14030E680, 0x140397450}; - WEAK symbol G_InitializeAmmo{0x140311F00, 0x14039AEA0}; + WEAK symbol G_InitializeAmmo{0x140311F00, 0x14039AEA0}; WEAK symbol G_SelectWeapon{0x14035A200, 0x1403DA880}; - WEAK symbol G_TakePlayerWeapon{0x14035A350, 0x1403DA9C0}; + WEAK symbol G_TakePlayerWeapon{0x14035A350, 0x1403DA9C0}; WEAK symbol G_FindConfigstringIndex{0x0, 0x140161F90}; WEAK symbol G_RunFrame{0x0, 0x1403A05E0}; - WEAK symbol HudElem_Alloc{0x0, 0x1403997E0}; + WEAK symbol HudElem_Alloc{0x0, 0x1403997E0}; WEAK symbol I_CleanStr{0x140432460, 0x1404F63C0}; @@ -144,18 +144,18 @@ namespace game WEAK symbol Material_RegisterHandle{0x140523D90, 0x1405F0E20}; - WEAK symbol NET_OutOfBandPrint{0, 0x14041D5C0}; - WEAK symbol NET_SendLoopPacket{0, 0x14041D780}; - WEAK symbol NET_StringToAdr{0, 0x14041D870}; - WEAK symbol NetadrToSockadr{0, 0x1404E53D0}; + WEAK symbol NET_OutOfBandPrint{0, 0x14041D5C0}; + WEAK symbol NET_SendLoopPacket{0, 0x14041D780}; + WEAK symbol NET_StringToAdr{0, 0x14041D870}; + WEAK symbol NetadrToSockadr{0, 0x1404E53D0}; WEAK symbol R_AddCmdDrawStretchPic{0x140234460, 0x140600BE0}; - WEAK symbol R_AddCmdDrawText{0x140533E40, 0x140601070}; - WEAK symbol R_AddCmdDrawTextWithCursor{0x140534170, 0x1406013A0}; - WEAK symbol R_RegisterFont{0x1405130B0, 0x1405DFAC0}; + WEAK symbol R_AddCmdDrawText{0x140533E40, 0x140601070}; + WEAK symbol R_AddCmdDrawTextWithCursor{0x140534170, 0x1406013A0}; + WEAK symbol R_RegisterFont{0x1405130B0, 0x1405DFAC0}; WEAK symbol R_SyncRenderThread{0x140535AF0, 0x140602D30}; - WEAK symbol R_TextWidth{0x140513390, 0x1405DFDB0}; + WEAK symbol R_TextWidth{0x140513390, 0x1405DFDB0}; WEAK symbol ScrPlace_GetViewPlacement{0x14024D150, 0x1402F6D40}; @@ -203,20 +203,20 @@ namespace game WEAK symbol SV_Cmd_EndTokenizedString{0, 0x1403F8110}; WEAK symbol SV_MatchEnd{0x0, 0x14047A090}; - WEAK symbol SV_DirectConnect{0, 0x140471390}; + WEAK symbol SV_DirectConnect{0, 0x140471390}; WEAK symbol SV_GameSendServerCommand{0x140490F40, 0x1404758C0}; WEAK symbol SV_Loaded{0x140491820, 0x1404770C0}; WEAK symbol SV_StartMap{0, 0x140470170}; WEAK symbol SV_StartMapForParty{0, 0x1404702F0}; - WEAK symbol SV_AddBot{0, 0x140470920}; + WEAK symbol SV_AddBot{0, 0x140470920}; WEAK symbol SV_BotIsBot{0, 0x140461340}; WEAK symbol SV_BotGetRandomName{0, 0x140460B80}; - WEAK symbol SV_SpawnTestClient{0, 0x1404740A0}; + WEAK symbol SV_SpawnTestClient{0, 0x1404740A0}; WEAK symbol SV_ExecuteClientCommand{0, 0x140472430}; WEAK symbol SV_FastRestart{0x14048B890, 0x14046F440}; - WEAK symbol SV_GetPlayerstateForClientNum{0x140490F80, 0x140475A10}; + WEAK symbol SV_GetPlayerstateForClientNum{0x140490F80, 0x140475A10}; WEAK symbol SV_GetGuid{0, 0x140475990}; WEAK symbol SV_KickClientNum{0, 0x14046F730}; WEAK symbol SV_SetConfigstring{0, 0x140477450}; @@ -225,7 +225,7 @@ namespace game WEAK symbol Sys_IsDatabaseReady2{0x1403C2D40, 0x140423920}; WEAK symbol Sys_Milliseconds{0x14043D2A0, 0x140501CA0}; WEAK symbol Sys_ShowConsole{0x14043E650, 0x140503130}; - WEAK symbol Sys_SendPacket{0x14043D000, 0x140501A00}; + WEAK symbol Sys_SendPacket{0x14043D000, 0x140501A00}; WEAK symbol Sys_GetValue{0x1403C2C30, 0x1404237D0}; WEAK symbol Sys_IsMainThread{0x1478FC470, 0x140423950}; WEAK symbol Sys_CreateFile{0x140434B10, 0x1404F8FD0}; @@ -257,7 +257,7 @@ namespace game WEAK symbol cmd_args{0x144CE7F70, 0x144518480}; WEAK symbol sv_cmd_args{0x144CE8020, 0x144518530}; - WEAK symbol cmd_functions{0x144CE80C8, 0x1445185D8}; + WEAK symbol cmd_functions{0x144CE80C8, 0x1445185D8}; WEAK symbol dvarCount{0x1458CBA3C, 0x1478EADF4}; WEAK symbol sortedDvars{0x1458CBA60, 0x1478EAE10}; @@ -300,20 +300,20 @@ namespace game WEAK symbol threadIds{0x144DE6640, 0x1446B4960}; - WEAK symbol gfxDrawMethod{0x145F525A8, 0x1480350D8}; + WEAK symbol gfxDrawMethod{0x145F525A8, 0x1480350D8}; namespace sp { - WEAK symbol g_entities{0x143C91600, 0}; + WEAK symbol g_entities{0x143C91600, 0}; WEAK symbol g_zones_0{0x1434892D8, 0}; } namespace mp { - WEAK symbol cgArray{0, 0x14176EC00}; + WEAK symbol cgArray{0, 0x14176EC00}; - WEAK symbol g_entities{0, 0x14427A0E0}; + WEAK symbol g_entities{0, 0x14427A0E0}; WEAK symbol svs_clientCount{0, 0x14647B28C}; WEAK symbol svs_clients{0, 0x14647B290};