diff --git a/src/client/game/structs.hpp b/src/client/game/structs.hpp index 2e5fa9c..27b8419 100644 --- a/src/client/game/structs.hpp +++ b/src/client/game/structs.hpp @@ -749,6 +749,21 @@ namespace game dvar_limits domain; }; + enum connstate_t + { + CA_DISCONNECTED = 0x0, + CA_CINEMATIC = 0x1, + CA_LOGO = 0x2, + CA_CONNECTING = 0x3, + CA_CHALLENGING = 0x4, + CA_CONNECTED = 0x5, + CA_SENDINGSTATS = 0x6, + CA_SYNCHRONIZING_DATA = 0x7, + CA_LOADING = 0x8, + CA_PRIMED = 0x9, + CA_ACTIVE = 0xA, + }; + enum DBSyncMode { DB_LOAD_ASYNC = 0x0, @@ -896,13 +911,14 @@ namespace game struct EntityState { - - }; + int entityNum; + }; // size = ? struct gentity_s { - - }; + EntityState s; + char __pad[88]; + }; // size = 92 struct playerState_s { @@ -911,13 +927,14 @@ namespace game struct clientHeader_t { - - }; + int state; + }; // /size = ? struct client_t { - - }; + clientHeader_t header; + char __pad[661300]; + }; // size = 661304 } namespace sp diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index 7744d9d..a0a3dfa 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -8,6 +8,8 @@ namespace game * Functions **************************************************************/ + WEAK symbol AimAssist_AddToTargetList{ 0, 0x140001730 }; + WEAK symbol Com_Error{ 0x1402F7570, 0x1403CE480 }; WEAK symbol Com_Frame_Try_Block_Function{ 0x1402F7E10, 0x1403CEF30 }; WEAK symbol Com_GetCurrentCoDPlayMode{ 0, 0x1404C9690 }; @@ -56,8 +58,20 @@ namespace game WEAK symbol Dvar_RegisterVec4{ 0x140372430, 0x1404C1800 }; + WEAK symbol dwGetLogOnStatus{ 0, 0x14053CCB0 }; + + WEAK symbol FS_ReadFile{ 0x140362390, 0x1404AF380 }; + WEAK symbol FS_FreeFile{ 0x140362380, 0x1404AF370 }; + WEAK symbol G_Glass_Update{ 0x14021D540, 0x1402EDEE0 }; + WEAK symbol G_GetWeaponForName{ 0x140274590, 0x14033FF60 }; + WEAK symbol + G_GivePlayerWeapon{ 0x1402749B0, 0x140340470 }; + WEAK symbol G_InitializeAmmo{ 0x1402217F0, 0x1402F22B0 }; + WEAK symbol G_SelectWeapon{ 0x140275380, 0x140340D50 }; + WEAK symbol G_TakePlayerWeapon{ 0x1402754E0, 0x1403411D0 }; + WEAK symbol Key_KeynumToString{ 0x14013F380, 0x140207C50 }; WEAK symbol Live_SyncOnlineDataFlags{ 0x1404459A0, 0x140562830 }; diff --git a/src/client/std_include.cpp b/src/client/std_include.cpp index 8b0ec03..aebc4ae 100644 --- a/src/client/std_include.cpp +++ b/src/client/std_include.cpp @@ -1,48 +1,13 @@ #include -#pragma comment(linker, "/merge:.data=.cld") -#pragma comment(linker, "/merge:.rdata=.clr") -#pragma comment(linker, "/merge:.cl=.main") -#pragma comment(linker, "/merge:.text=.main") -#pragma comment(linker, "/stack:0x1000000") - #ifdef INJECT_HOST_AS_LIB -#pragma comment(linker, "/base:0x152000000") +#pragma comment(linker, "/base:0x160000000") #else #pragma comment(linker, "/base:0x140000000") #endif -#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language=''\"") - #ifndef INJECT_HOST_AS_LIB #pragma bss_seg(".payload") char payload_data[BINARY_PAYLOAD_SIZE]; #endif -extern "C" -{ - __declspec(dllexport) DWORD NvOptimusEnablement = 1; - __declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 1; -}; - -extern "C" { -int s_read_arc4random(void*, size_t) -{ - return -1; -} - -int s_read_getrandom(void*, size_t) -{ - return -1; -} - -int s_read_urandom(void*, size_t) -{ - return -1; -} - -int s_read_ltm_rng(void*, size_t) -{ - return -1; -} -}