New Structs and Symbols

This commit is contained in:
Joelrau 2021-01-09 21:20:53 +02:00
parent 788be82f2f
commit 1b185727e5
3 changed files with 40 additions and 44 deletions

View File

@ -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

View File

@ -8,6 +8,8 @@ namespace game
* Functions
**************************************************************/
WEAK symbol<void(void*, void*)> AimAssist_AddToTargetList{ 0, 0x140001730 };
WEAK symbol<void(errorParm code, const char* message, ...)> Com_Error{ 0x1402F7570, 0x1403CE480 };
WEAK symbol<void()> Com_Frame_Try_Block_Function{ 0x1402F7E10, 0x1403CEF30 };
WEAK symbol<CodPlayMode()> Com_GetCurrentCoDPlayMode{ 0, 0x1404C9690 };
@ -56,8 +58,20 @@ namespace game
WEAK symbol<dvar_t* (const char* dvarName, float x, float y, float z, float w, float min, float max,
unsigned int flags, const char* description)> Dvar_RegisterVec4{ 0x140372430, 0x1404C1800 };
WEAK symbol<DWOnlineStatus()> dwGetLogOnStatus{ 0, 0x14053CCB0 };
WEAK symbol<long long(const char* qpath, char** buffer)> FS_ReadFile{ 0x140362390, 0x1404AF380 };
WEAK symbol<void(void* buffer)> FS_FreeFile{ 0x140362380, 0x1404AF370 };
WEAK symbol<void()> G_Glass_Update{ 0x14021D540, 0x1402EDEE0 };
WEAK symbol<unsigned int(const char* name)> G_GetWeaponForName{ 0x140274590, 0x14033FF60 };
WEAK symbol<int(playerState_s* ps, unsigned int weapon, int dualWield, int startInAltMode, int, int, int, char, ...)>
G_GivePlayerWeapon{ 0x1402749B0, 0x140340470 };
WEAK symbol<void(playerState_s* ps, unsigned int weapon, int hadWeapon)> G_InitializeAmmo{ 0x1402217F0, 0x1402F22B0 };
WEAK symbol<void(int clientNum, unsigned int weapon)> G_SelectWeapon{ 0x140275380, 0x140340D50 };
WEAK symbol<int(playerState_s* ps, unsigned int weapon)> G_TakePlayerWeapon{ 0x1402754E0, 0x1403411D0 };
WEAK symbol<const char* (int, int, int)> Key_KeynumToString{ 0x14013F380, 0x140207C50 };
WEAK symbol<unsigned int(int)> Live_SyncOnlineDataFlags{ 0x1404459A0, 0x140562830 };

View File

@ -1,48 +1,13 @@
#include <std_include.hpp>
#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;
}
}