forked from alterware/iw6-mod
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			v0.0.1
			...
			clean_agen
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 27d1f61789 | ||
|  | d0003da606 | 
| @@ -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; | ||||
|  | ||||
|   | ||||
| @@ -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'); | ||||
|   | ||||
| @@ -98,6 +98,16 @@ namespace colors | ||||
| 			return result; | ||||
| 		} | ||||
|  | ||||
| 		int clean_agent_name_stub(char* out, int max_size, const char* fmt, const char* in) | ||||
| 		{ | ||||
| 			// format agent overhead name like [%s] | ||||
| 			const auto length = sprintf_s(out, max_size, fmt, in); | ||||
|  | ||||
| 			utils::string::strip(in, out, std::min(static_cast<size_t>(length), static_cast<size_t>(max_size))); | ||||
|  | ||||
| 			return length; | ||||
| 		} | ||||
|  | ||||
| 		void rb_lookup_color_stub(const char index, DWORD* color) | ||||
| 		{ | ||||
| 			*color = RGB(255, 255, 255); | ||||
| @@ -143,6 +153,9 @@ namespace colors | ||||
| 				// don't apply colors to overhead names | ||||
| 				utils::hook::call(0x14025CE79, get_client_name_stub); | ||||
|  | ||||
| 				// don't apply colors to overhead names of agents (like dogs or juggernauts) | ||||
| 				utils::hook::call(0x1402CF760, clean_agent_name_stub); | ||||
|  | ||||
| 				// patch I_CleanStr | ||||
| 				utils::hook::jump(0x1404F63C0, i_clean_str_stub); | ||||
| 			} | ||||
|   | ||||
| @@ -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_function_s>()); | ||||
| 		game::Cmd_AddCommandInternal(name, callback, utils::memory::get_allocator()->allocate<game::cmd_function_t>()); | ||||
| 	} | ||||
|  | ||||
| 	void add(const char* name, const std::function<void(const params&)>& 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) | ||||
| 				{ | ||||
|   | ||||
| @@ -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"); | ||||
|   | ||||
| @@ -71,7 +71,7 @@ namespace discord | ||||
| 					discord_presence.state = host_name; | ||||
| 					discord_presence.partyMax = party::server_client_count(); | ||||
|  | ||||
| 					std::hash<game::netadr_s> hash_fn; | ||||
| 					std::hash<game::netadr_t> hash_fn; | ||||
| 					static const auto nonce = utils::cryptography::random::get_integer(); | ||||
|  | ||||
| 					const auto& address = party::get_target(); | ||||
|   | ||||
| @@ -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) | ||||
| 		{ | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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<game::mp::playerState_s*>(pm->ps); | ||||
| 			ps = static_cast<game::mp::playerState_t*>(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<game::mp::gentity_s*>(0x1403DB8A0, ent, weapon, spread, wp, gun_vel, fire_parms, magic_bullet); | ||||
| 			auto* result = utils::hook::invoke<game::mp::gentity_t*>(0x1403DB8A0, ent, weapon, spread, wp, gun_vel, fire_parms, magic_bullet); | ||||
|  | ||||
| 			if (ent->client != nullptr && wp->weapDef->inventoryType != game::WEAPINVENTORY_EXCLUSIVE) | ||||
| 			{ | ||||
|   | ||||
| @@ -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()) | ||||
| 						{ | ||||
|   | ||||
| @@ -2,23 +2,23 @@ | ||||
|  | ||||
| namespace network | ||||
| { | ||||
| 	using callback = std::function<void(const game::netadr_s&, const std::string&)>; | ||||
| 	using callback = std::function<void(const game::netadr_t&, const std::string&)>; | ||||
|  | ||||
| 	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<game::netadr_s> | ||||
| 	struct equal_to<game::netadr_t> | ||||
| 	{ | ||||
| 		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<game::netadr_s> | ||||
| 	struct hash<game::netadr_t> | ||||
| 	{ | ||||
| 		size_t operator()(const game::netadr_s& x) const noexcept | ||||
| 		size_t operator()(const game::netadr_t& x) const noexcept | ||||
| 		{ | ||||
| 			return hash<uint32_t>()(*reinterpret_cast<const uint32_t*>(&x.ip[0])) ^ hash<uint16_t>()(x.port); | ||||
| 		} | ||||
|   | ||||
| @@ -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<void(*)(int, char*, const game::netadr_s*, const char*, const char*)>(0x1402C5700)( | ||||
| 			reinterpret_cast<void(*)(int, char*, const game::netadr_t*, const char*, const char*)>(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); | ||||
|   | ||||
| @@ -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(); | ||||
| } | ||||
|   | ||||
| @@ -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)); | ||||
|   | ||||
| @@ -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<std::recursive_mutex> $(redirect_lock); | ||||
|  | ||||
| @@ -92,7 +92,7 @@ namespace rcon | ||||
|  | ||||
| 			if (*reinterpret_cast<std::int32_t*>(0x1419E1AE0) >= 5) //clientUIActive.connectionState >= CA_CONNECTED | ||||
| 			{ | ||||
| 				const auto target = *reinterpret_cast<game::netadr_s*>(0x141CB535C); | ||||
| 				const auto target = *reinterpret_cast<game::netadr_t*>(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) | ||||
|   | ||||
| @@ -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<game::netadr_s, int> queued_servers{}; | ||||
| 			std::unordered_map<game::netadr_t, int> 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<std::mutex> _(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); | ||||
|   | ||||
| @@ -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); | ||||
| } | ||||
|   | ||||
| @@ -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]; | ||||
|   | ||||
| @@ -39,9 +39,9 @@ namespace game | ||||
| 	WEAK symbol<bool()> CL_IsCgameInitialized{0x140234DA0, 0x1402B9A70}; | ||||
|  | ||||
| 	WEAK symbol<void(int localClientNum, const char* message)> CG_GameMessage{0x1401F2E20, 0x140271320}; | ||||
| 	WEAK symbol<void(int localClientNum, mp::cg_s* cg, const char* dvar, const char* value)> CG_SetClientDvarFromServer{0x0, 0x14028A2C0}; | ||||
| 	WEAK symbol<void(int localClientNum, mp::cg_t* cg, const char* dvar, const char* value)> CG_SetClientDvarFromServer{0x0, 0x14028A2C0}; | ||||
|  | ||||
| 	WEAK symbol<void(const char* cmdName, void (), cmd_function_s* allocedCmd)> Cmd_AddCommandInternal{0x1403B3570, 0x1403F7070}; | ||||
| 	WEAK symbol<void(const char* cmdName, void (), cmd_function_t* allocedCmd)> Cmd_AddCommandInternal{0x1403B3570, 0x1403F7070}; | ||||
| 	WEAK symbol<void(int localClientNum, int controllerIndex, const char* text)> Cmd_ExecuteSingleCommand{0x1403B3B10, 0x1403F7680}; | ||||
|  | ||||
| 	WEAK symbol<void (XAssetType type, void (__cdecl *func)(XAssetHeader, void*), void* inData, bool includeOverride)> DB_EnumXAssets_FastFile{0x140271F50, 0x14031EF90}; | ||||
| @@ -94,17 +94,17 @@ namespace game | ||||
| 	WEAK symbol<void(const char *path, const char *dir)> FS_AddLocalizedGameDirectory{0x14041A2F0, 0x1404DC760}; | ||||
|  | ||||
| 	WEAK symbol<Weapon(const char* pickupName, int model)> G_FindItem{0x140462490, 0x14021B7E0}; | ||||
| 	WEAK symbol<int(playerState_s* ps, Weapon weapon, int dualWield, int startInAltMode, int usedBefore)> G_GivePlayerWeapon{0x140359E20, 0x1403DA5E0}; | ||||
| 	WEAK symbol<int(playerState_t* ps, Weapon weapon, int dualWield, int startInAltMode, int usedBefore)> G_GivePlayerWeapon{0x140359E20, 0x1403DA5E0}; | ||||
| 	WEAK symbol<Weapon(const char* name)> G_GetWeaponForName{0x140359890, 0x1403DA060}; | ||||
| 	WEAK symbol<void()> G_Glass_Update{0x14030E680, 0x140397450}; | ||||
| 	WEAK symbol<void (playerState_s* ps, Weapon weapon, int hadWeapon)> G_InitializeAmmo{0x140311F00, 0x14039AEA0}; | ||||
| 	WEAK symbol<void (playerState_t* ps, Weapon weapon, int hadWeapon)> G_InitializeAmmo{0x140311F00, 0x14039AEA0}; | ||||
| 	WEAK symbol<void(int clientNum, Weapon weapon)> G_SelectWeapon{0x14035A200, 0x1403DA880}; | ||||
| 	WEAK symbol<int(playerState_s* ps, Weapon weapon)> G_TakePlayerWeapon{0x14035A350, 0x1403DA9C0}; | ||||
| 	WEAK symbol<int(playerState_t* ps, Weapon weapon)> G_TakePlayerWeapon{0x14035A350, 0x1403DA9C0}; | ||||
| 	WEAK symbol<unsigned int (const char* name, /*ConfigString*/ unsigned int start, unsigned int max, int create, | ||||
| 	                          const char* errormsg)> G_FindConfigstringIndex{0x0, 0x140161F90}; | ||||
| 	WEAK symbol<int(int server_time)> G_RunFrame{0x0, 0x1403A05E0}; | ||||
|  | ||||
| 	WEAK symbol<game_hudelem_s*(int clientNum, int teamNum)> HudElem_Alloc{0x0, 0x1403997E0}; | ||||
| 	WEAK symbol<game_hudelem_t*(int clientNum, int teamNum)> HudElem_Alloc{0x0, 0x1403997E0}; | ||||
|  | ||||
| 	WEAK symbol<char*(char* string)> I_CleanStr{0x140432460, 0x1404F63C0}; | ||||
|  | ||||
| @@ -144,18 +144,18 @@ namespace game | ||||
|  | ||||
| 	WEAK symbol<Material*(const char* material)> Material_RegisterHandle{0x140523D90, 0x1405F0E20}; | ||||
|  | ||||
| 	WEAK symbol<void(netsrc_t, netadr_s*, const char*)> NET_OutOfBandPrint{0, 0x14041D5C0}; | ||||
| 	WEAK symbol<void(netsrc_t sock, int length, const void* data, const netadr_s* to)> NET_SendLoopPacket{0, 0x14041D780}; | ||||
| 	WEAK symbol<bool(const char* s, netadr_s* a)> NET_StringToAdr{0, 0x14041D870}; | ||||
| 	WEAK symbol<void(netadr_s*, sockaddr*)> NetadrToSockadr{0, 0x1404E53D0}; | ||||
| 	WEAK symbol<void(netsrc_t, netadr_t*, const char*)> NET_OutOfBandPrint{0, 0x14041D5C0}; | ||||
| 	WEAK symbol<void(netsrc_t sock, int length, const void* data, const netadr_t* to)> NET_SendLoopPacket{0, 0x14041D780}; | ||||
| 	WEAK symbol<bool(const char* s, netadr_t* a)> NET_StringToAdr{0, 0x14041D870}; | ||||
| 	WEAK symbol<void(netadr_t*, sockaddr*)> NetadrToSockadr{0, 0x1404E53D0}; | ||||
|  | ||||
| 	WEAK symbol<void(float x, float y, float width, float height, float s0, float t0, float s1, float t1, | ||||
| 	                  float* color, Material* material)> R_AddCmdDrawStretchPic{0x140234460, 0x140600BE0}; | ||||
| 	WEAK symbol<void(const char*, int, Font_s*, float, float, float, float, float, float*, int)> R_AddCmdDrawText{0x140533E40, 0x140601070}; | ||||
| 	WEAK symbol<void(const char*, int, Font_s*, float, float, float, float, float, const float*, int, int, char)> R_AddCmdDrawTextWithCursor{0x140534170, 0x1406013A0}; | ||||
| 	WEAK symbol<Font_s*(const char* font)> R_RegisterFont{0x1405130B0, 0x1405DFAC0}; | ||||
| 	WEAK symbol<void(const char*, int, Font_t*, float, float, float, float, float, float*, int)> R_AddCmdDrawText{0x140533E40, 0x140601070}; | ||||
| 	WEAK symbol<void(const char*, int, Font_t*, float, float, float, float, float, const float*, int, int, char)> R_AddCmdDrawTextWithCursor{0x140534170, 0x1406013A0}; | ||||
| 	WEAK symbol<Font_t*(const char* font)> R_RegisterFont{0x1405130B0, 0x1405DFAC0}; | ||||
| 	WEAK symbol<void()> R_SyncRenderThread{0x140535AF0, 0x140602D30}; | ||||
| 	WEAK symbol<int(const char* text, int maxChars, Font_s* font)> R_TextWidth{0x140513390, 0x1405DFDB0}; | ||||
| 	WEAK symbol<int(const char* text, int maxChars, Font_t* font)> R_TextWidth{0x140513390, 0x1405DFDB0}; | ||||
|  | ||||
| 	WEAK symbol<ScreenPlacement*()> ScrPlace_GetViewPlacement{0x14024D150, 0x1402F6D40}; | ||||
|  | ||||
| @@ -203,20 +203,20 @@ namespace game | ||||
| 	WEAK symbol<void()> SV_Cmd_EndTokenizedString{0, 0x1403F8110}; | ||||
| 	WEAK symbol<void()> SV_MatchEnd{0x0, 0x14047A090}; | ||||
|  | ||||
| 	WEAK symbol<void(netadr_s* from)> SV_DirectConnect{0, 0x140471390}; | ||||
| 	WEAK symbol<void(netadr_t* from)> SV_DirectConnect{0, 0x140471390}; | ||||
| 	WEAK symbol<void(int, int, const char*)> SV_GameSendServerCommand{0x140490F40, 0x1404758C0}; | ||||
| 	WEAK symbol<bool()> SV_Loaded{0x140491820, 0x1404770C0}; | ||||
| 	WEAK symbol<void(int localClientNum, const char* map, bool mapIsPreloaded)> SV_StartMap{0, 0x140470170}; | ||||
| 	WEAK symbol<void(int localClientNum, const char* map, bool mapIsPreloaded, bool migrate)> SV_StartMapForParty{0, 0x1404702F0}; | ||||
|  | ||||
| 	WEAK symbol<mp::gentity_s*(const char*, unsigned int, unsigned int, unsigned int)> SV_AddBot{0, 0x140470920}; | ||||
| 	WEAK symbol<mp::gentity_t*(const char*, unsigned int, unsigned int, unsigned int)> SV_AddBot{0, 0x140470920}; | ||||
| 	WEAK symbol<bool(int clientNum)> SV_BotIsBot{0, 0x140461340}; | ||||
| 	WEAK symbol<const char*()> SV_BotGetRandomName{0, 0x140460B80}; | ||||
| 	WEAK symbol<void(mp::gentity_s*)> SV_SpawnTestClient{0, 0x1404740A0}; | ||||
| 	WEAK symbol<void(mp::gentity_t*)> SV_SpawnTestClient{0, 0x1404740A0}; | ||||
|  | ||||
| 	WEAK symbol<void(mp::client_t*, const char*, int)> SV_ExecuteClientCommand{0, 0x140472430}; | ||||
| 	WEAK symbol<void()> SV_FastRestart{0x14048B890, 0x14046F440}; | ||||
| 	WEAK symbol<playerState_s*(int num)> SV_GetPlayerstateForClientNum{0x140490F80, 0x140475A10}; | ||||
| 	WEAK symbol<playerState_t*(int num)> SV_GetPlayerstateForClientNum{0x140490F80, 0x140475A10}; | ||||
| 	WEAK symbol<const char*(int clientNum)> SV_GetGuid{0, 0x140475990}; | ||||
| 	WEAK symbol<void(int clientNum, const char* reason)> SV_KickClientNum{0, 0x14046F730}; | ||||
| 	WEAK symbol<void(int index, const char* string)> SV_SetConfigstring{0, 0x140477450}; | ||||
| @@ -225,7 +225,7 @@ namespace game | ||||
| 	WEAK symbol<bool()> Sys_IsDatabaseReady2{0x1403C2D40, 0x140423920}; | ||||
| 	WEAK symbol<int()> Sys_Milliseconds{0x14043D2A0, 0x140501CA0}; | ||||
| 	WEAK symbol<void()> Sys_ShowConsole{0x14043E650, 0x140503130}; | ||||
| 	WEAK symbol<bool(int, void const*, const netadr_s*)> Sys_SendPacket{0x14043D000, 0x140501A00}; | ||||
| 	WEAK symbol<bool(int, void const*, const netadr_t*)> Sys_SendPacket{0x14043D000, 0x140501A00}; | ||||
| 	WEAK symbol<void*(int valueIndex)> Sys_GetValue{0x1403C2C30, 0x1404237D0}; | ||||
| 	WEAK symbol<bool()> Sys_IsMainThread{0x1478FC470, 0x140423950}; | ||||
| 	WEAK symbol<HANDLE(Sys_Folder folder, const char* baseFilename)> Sys_CreateFile{0x140434B10, 0x1404F8FD0}; | ||||
| @@ -257,7 +257,7 @@ namespace game | ||||
|  | ||||
| 	WEAK symbol<CmdArgs> cmd_args{0x144CE7F70, 0x144518480}; | ||||
| 	WEAK symbol<CmdArgs> sv_cmd_args{0x144CE8020, 0x144518530}; | ||||
| 	WEAK symbol<cmd_function_s*> cmd_functions{0x144CE80C8, 0x1445185D8}; | ||||
| 	WEAK symbol<cmd_function_t*> cmd_functions{0x144CE80C8, 0x1445185D8}; | ||||
|  | ||||
| 	WEAK symbol<int> dvarCount{0x1458CBA3C, 0x1478EADF4}; | ||||
| 	WEAK symbol<dvar_t*> sortedDvars{0x1458CBA60, 0x1478EAE10}; | ||||
| @@ -300,20 +300,20 @@ namespace game | ||||
|  | ||||
| 	WEAK symbol<DWORD> threadIds{0x144DE6640, 0x1446B4960}; | ||||
|  | ||||
| 	WEAK symbol<GfxDrawMethod_s> gfxDrawMethod{0x145F525A8, 0x1480350D8}; | ||||
| 	WEAK symbol<GfxDrawMethod_t> gfxDrawMethod{0x145F525A8, 0x1480350D8}; | ||||
|  | ||||
| 	namespace sp | ||||
| 	{ | ||||
| 		WEAK symbol<gentity_s> g_entities{0x143C91600, 0}; | ||||
| 		WEAK symbol<gentity_t> g_entities{0x143C91600, 0}; | ||||
|  | ||||
| 		WEAK symbol<XZone> g_zones_0{0x1434892D8, 0}; | ||||
| 	} | ||||
|  | ||||
| 	namespace mp | ||||
| 	{ | ||||
| 		WEAK symbol<cg_s> cgArray{0, 0x14176EC00}; | ||||
| 		WEAK symbol<cg_t> cgArray{0, 0x14176EC00}; | ||||
|  | ||||
| 		WEAK symbol<gentity_s> g_entities{0, 0x14427A0E0}; | ||||
| 		WEAK symbol<gentity_t> g_entities{0, 0x14427A0E0}; | ||||
|  | ||||
| 		WEAK symbol<int> svs_clientCount{0, 0x14647B28C}; | ||||
| 		WEAK symbol<client_t> svs_clients{0, 0x14647B290}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user