98 lines
3.5 KiB
C++
98 lines
3.5 KiB
C++
#include "..\STDInclude.hpp"
|
|
|
|
namespace Game
|
|
{
|
|
Cbuf_AddText_t Cbuf_AddText = (Cbuf_AddText_t)0x404B20;
|
|
|
|
CL_IsCgameInitialized_t CL_IsCgameInitialized = (CL_IsCgameInitialized_t)0x43EB20;
|
|
|
|
Cmd_AddCommand_t Cmd_AddCommand = (Cmd_AddCommand_t)0x470090;
|
|
Cmd_ExecuteSingleCommand_t Cmd_ExecuteSingleCommand = (Cmd_ExecuteSingleCommand_t)0x609540;
|
|
|
|
Com_Error_t Com_Error = (Com_Error_t)0x4B22D0;
|
|
Com_Printf_t Com_Printf = (Com_Printf_t)0x402500;
|
|
Com_Milliseconds_t Com_Milliseconds = (Com_Milliseconds_t)0x42A660;
|
|
|
|
DB_FindXAssetHeader_t DB_FindXAssetHeader = (DB_FindXAssetHeader_t)0x407930;
|
|
DB_GetXAssetSizeHandler_t* DB_GetXAssetSizeHandlers = (DB_GetXAssetSizeHandler_t*)0x799488;
|
|
DB_LoadXAssets_t DB_LoadXAssets = (DB_LoadXAssets_t)0x4E5930;
|
|
|
|
Dvar_RegisterBool_t Dvar_RegisterBool = (Dvar_RegisterBool_t)0x4CE1A0;
|
|
Dvar_RegisterFloat_t Dvar_RegisterFloat = (Dvar_RegisterFloat_t)0x648440;
|
|
Dvar_RegisterFloat2_t Dvar_RegisterFloat2 = (Dvar_RegisterFloat2_t)0x4F6070;
|
|
Dvar_RegisterFloat3_t Dvar_RegisterFloat3 = (Dvar_RegisterFloat3_t)0x4EF8E0;
|
|
Dvar_RegisterFloat4_t Dvar_RegisterFloat4 = (Dvar_RegisterFloat4_t)0x4F28E0;
|
|
Dvar_RegisterInt_t Dvar_RegisterInt = (Dvar_RegisterInt_t)0x479830;
|
|
Dvar_RegisterEnum_t Dvar_RegisterEnum = (Dvar_RegisterEnum_t)0x412E40;
|
|
Dvar_RegisterString_t Dvar_RegisterString = (Dvar_RegisterString_t)0x4FC7E0;
|
|
Dvar_RegisterColor_t Dvar_RegisterColor = (Dvar_RegisterColor_t)0x471500;
|
|
|
|
Dvar_FindVar_t Dvar_FindVar = (Dvar_FindVar_t)0x4D5390;
|
|
Dvar_SetCommand_t Dvar_SetCommand = (Dvar_SetCommand_t)0x4EE430;
|
|
|
|
Field_Clear_t Field_Clear = (Field_Clear_t)0x437EB0;
|
|
|
|
FreeMemory_t FreeMemory = (FreeMemory_t)0x4D6640;
|
|
|
|
FS_FreeFile_t FS_FreeFile = (FS_FreeFile_t)0x4416B0;
|
|
FS_ReadFile_t FS_ReadFile = (FS_ReadFile_t)0x4F4B90;
|
|
|
|
Menus_CloseAll_t Menus_CloseAll = (Menus_CloseAll_t)0x4BA5B0;
|
|
Menus_OpenByName_t Menus_OpenByName = (Menus_OpenByName_t)0x4CCE60;
|
|
|
|
NET_AdrToString_t NET_AdrToString = (NET_AdrToString_t)0x469880;
|
|
NET_CompareAdr_t NET_CompareAdr = (NET_CompareAdr_t)0x4D0AA0;
|
|
NET_StringToAdr_t NET_StringToAdr = (NET_StringToAdr_t)0x409010;
|
|
|
|
LoadModdableRawfile_t LoadModdableRawfile = (LoadModdableRawfile_t)0x61ABC0;
|
|
|
|
sendOOB_t OOBPrint = (sendOOB_t)0x4AEF00;
|
|
|
|
PC_ReadToken_t PC_ReadToken = (PC_ReadToken_t)0x4ACCD0;
|
|
PC_SourceError_t PC_SourceError = (PC_SourceError_t)0x467A00;
|
|
|
|
Script_Alloc_t Script_Alloc = (Script_Alloc_t)0x422E70;
|
|
Script_SetupTokens_t Script_SetupTokens = (Script_SetupTokens_t)0x4E6950;
|
|
Script_CleanString_t Script_CleanString = (Script_CleanString_t)0x498220;
|
|
|
|
Win_GetLanguage_t Win_GetLanguage = (Win_GetLanguage_t)0x45CBA0;
|
|
|
|
void** DB_XAssetPool = (void**)0x7998A8;
|
|
unsigned int* g_poolSize = (unsigned int*)0x7995E8;
|
|
|
|
DWORD* cmd_id = (DWORD*)0x1AAC5D0;
|
|
DWORD* cmd_argc = (DWORD*)0x1AAC614;
|
|
char*** cmd_argv = (char***)0x1AAC634;
|
|
|
|
source_t **sourceFiles = (source_t **)0x7C4A98;
|
|
keywordHash_t **menuParseKeywordHash = (keywordHash_t **)0x63AE928;
|
|
|
|
int* svs_numclients = (int*)0x31D938C;
|
|
client_t* svs_clients = (client_t*)0x31D9390;
|
|
|
|
void* ReallocateAssetPool(XAssetType type, unsigned int newSize)
|
|
{
|
|
int elSize = DB_GetXAssetSizeHandlers[type]();
|
|
void* poolEntry = new char[newSize * elSize];
|
|
DB_XAssetPool[type] = poolEntry;
|
|
g_poolSize[type] = newSize;
|
|
return poolEntry;
|
|
}
|
|
|
|
void Menu_FreeItemMemory(Game::itemDef_t* item)
|
|
{
|
|
__asm
|
|
{
|
|
mov edi, item
|
|
mov eax, 63D880h
|
|
call eax
|
|
}
|
|
}
|
|
|
|
void OOBPrintT(int type, netadr_t netadr, const char* message)
|
|
{
|
|
int* adr = (int*)&netadr;
|
|
|
|
OOBPrint(type, *adr, *(adr + 1), *(adr + 2), 0xFFFFFFFF, *(adr + 4), message);
|
|
}
|
|
} |