h1-mod/src/client/game/symbols.hpp

183 lines
9.6 KiB
C++
Raw Normal View History

2022-02-03 14:05:24 -05:00
#pragma once
#define WEAK __declspec(selectany)
namespace game
{
/***************************************************************
* Functions
**************************************************************/
2022-02-26 15:36:29 -05:00
WEAK symbol<void(int localClientNum, const char* text)> Cbuf_AddText{0x140342EB0, 0x1404033B0};
2022-02-28 04:13:16 -05:00
WEAK symbol<void(int localClientNum, int controllerIndex, const char* buffer,
void (int, int, const char*))> Cbuf_ExecuteBufferInternal{0, 0x1404034C0};
2022-02-26 15:36:29 -05:00
WEAK symbol<void(const char* message)> Conbuf_AppendText{0x1403E3300, 0x140513FF0};
2022-02-26 20:16:38 -05:00
WEAK symbol<void(int localClientNum, int controllerIndex, const char* text)> Cmd_ExecuteSingleCommand{0x140343980, 0x140403F60};
2022-02-26 15:36:29 -05:00
WEAK symbol<void(const char* cmdName, void(), cmd_function_s* allocedCmd)> Cmd_AddCommandInternal{0x1403433E0, 0x140403950};
WEAK symbol<void(const char* text_in)> Cmd_TokenizeString{0x140344110, 0x1404046F0};
WEAK symbol<void()> Cmd_EndTokenizeString{0x140343630, 0x140403C20};
WEAK symbol<void()> Com_Frame_Try_Block_Function{0, 0x1400D8310};
WEAK symbol<CodPlayMode()> Com_GetCurrentCoDPlayMode{0, 0x1405039A0};
WEAK symbol<void(float, float, int)> Com_SetSlowMotion{0, 0x1400DB790};
WEAK symbol<void(errorParm code, const char* message, ...)> Com_Error{0x1403509C0, 0x1400D78A0};
WEAK symbol<void()> Com_Quit_f{0x140352BE0, 0x1400DA830};
2022-02-26 16:09:23 -05:00
WEAK symbol<void()> Quit{0x140352D90, 0x1400DA830};
2022-02-26 15:36:29 -05:00
WEAK symbol<void(int localClientNum, const char* message)> CG_GameMessage{0x1401389A0, 0x140220CC0};
WEAK symbol<void(int localClientNum, const char* message)> CG_GameMessageBold{0x140138750, 0x140220620};
WEAK symbol<bool()> CL_IsCgameInitialized{0x14017EE30, 0x140245650};
WEAK symbol<void(int hash, const char* name, const char* buffer)> Dvar_SetCommand{0x1403C72B0, 0x1404FD0A0};
WEAK symbol<dvar_t*(const char* name)> Dvar_FindVar{0x1403C5D50, 0x1404FBB00};
WEAK symbol<void(const dvar_t* dvar)> Dvar_ClearModified{0x0, 0x1404FB930};
2022-02-26 15:36:29 -05:00
WEAK symbol<void(char* buffer, int index)> Dvar_GetCombinedString{0x140354DF0, 0x14041D830};
WEAK symbol<const char*(dvar_t* dvar, dvar_value value)> Dvar_ValueToString{0x1403C8560, 0x1404FE660};
2022-02-26 20:16:38 -05:00
WEAK symbol<dvar_t*(int hash, const char* name, bool value,
unsigned int flags)> Dvar_RegisterBool{0x1403C47E0, 0x1404FA540};
WEAK symbol<dvar_t*(int hash, const char* name, int value, int min, int max,
unsigned int flags)> Dvar_RegisterInt{0x1403C4CC0, 0x1404FAA20};
WEAK symbol<dvar_t*(int hash, const char* dvarName, float value, float min,
float max, unsigned int flags)> Dvar_RegisterFloat{0x1403C4BB0, 0x1404FA910};
WEAK symbol<dvar_t*(int hash, const char* dvarName, const char* value,
unsigned int flags)> Dvar_RegisterString{0x1403C4DA0, 0x1404FAB00};
WEAK symbol<dvar_t*(int dvarName, const char* a2, float x, float y, float z,
float w, float min, float max, unsigned int flags)> Dvar_RegisterVec4{0x1403C5220, 0x1404FAF40};
2022-02-26 15:36:29 -05:00
WEAK symbol<long long(const char* qpath, char** buffer)> FS_ReadFile{0x1403B9020, 0x1404EE720};
WEAK symbol<void(void* buffer)> FS_FreeFile{0x1403B9010, 0x1404EE710};
WEAK symbol<void(const char* gameName)> FS_Startup{0x1403B85D0, 0x1404EDD30};
WEAK symbol<void(const char* path, const char* dir)> FS_AddLocalizedGameDirectory{0x1403B6030, 0x1404EBE20};
WEAK symbol<int(const char* fname)> generateHashValue{0x1400FE8A0, 0x1401B1010};
WEAK symbol<void()> G_Glass_Update{0, 0x14033A640};
WEAK symbol<int(int clientNum)> G_GetClientScore{0, 0x140342F90};
2022-02-03 14:05:24 -05:00
2022-02-26 20:16:38 -05:00
WEAK symbol<char* (char* string)> I_CleanStr{0x1403CD230, 0x140503D00};
2022-02-05 23:20:45 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<const char* (int, int, int)> Key_KeynumToString{0x140187CC0, 0x14024FE10};
2022-02-26 10:10:35 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<unsigned int(int)> Live_SyncOnlineDataFlags{0, 0x14059A700};
2022-02-26 10:10:35 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<Material* (const char* material)> Material_RegisterHandle{0x1404E48B0, 0x1405EAB30};
2022-02-05 23:20:45 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<void(netadr_s*, sockaddr*)> NetadrToSockadr{0x1403C11C0, 0x1404F62F0};
WEAK symbol<void(netsrc_t, netadr_s*, const char*)> NET_OutOfBandPrint{0x140357560, 0x1404255D0};
WEAK symbol<void(netsrc_t sock, int length, const void* data, const netadr_s* to)> NET_SendLoopPacket{0, 0x140425790};
WEAK symbol<bool(const char* s, netadr_s* a)> NET_StringToAdr{0, 0x140425870};
2022-02-03 14:05:24 -05:00
WEAK symbol<void(float x, float y, float width, float height, float s0, float t0, float s1, float t1,
2022-02-26 15:36:29 -05:00
float* color, Material* material)> R_AddCmdDrawStretchPic{0x14017E5C0, 0x1402443A0};
WEAK symbol<Font_s* (const char* font, int size)> R_RegisterFont{0x1404D4100, 0x1405D91E0};
WEAK symbol<int(const char* text, int maxChars, Font_s* font)> R_TextWidth{0x1404D43B0, 0x1405D94A0};
WEAK symbol<int(void* font)> R_GetFontHeight{0x1405EA360, 0x1405D92C0};
WEAK symbol<void* (int a1)> R_DrawSomething{0x1404D37B0, 0x1405D8890};
2022-02-26 20:16:38 -05:00
WEAK symbol<void()> R_SyncRenderThread{0, 0x1405FF3A0};
WEAK symbol<void* (const char* text, int maxChars, void* font, int fontHeight, float x,
float y, float xScale, float yScale, float rotation, float* color,
int style, int cursor_pos, char cursor_char,
void* style_unk)> H1_AddBaseDrawTextCmd{0x1404F3DC0, 0x1405FB1F0};
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
#define R_AddCmdDrawText(TXT, MC, F, X, Y, XS, YS, R, C, S) \
H1_AddBaseDrawTextCmd(TXT, MC, F, game::R_GetFontHeight(F), X, Y, XS, YS, R, C, S,-1, 0, game::R_DrawSomething(S))
#define R_AddCmdDrawTextWithCursor(TXT, MC, F, UNK, X, Y, XS, YS, R, C, S, CP, CC) \
H1_AddBaseDrawTextCmd(TXT, MC, F, game::R_GetFontHeight(F), X, Y, XS, YS, R, C, S, CP, CC, game::R_DrawSomething(S))
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<float(int index)> Scr_GetFloat{0x140374D20, 0x140442D10};
2022-02-28 04:13:16 -05:00
WEAK symbol<const char*(int index)> Scr_GetString{0, 0x14032F0A0};
2022-02-26 15:36:29 -05:00
WEAK symbol<int()> Scr_GetNumParam{0x140374F30, 0x140442E70};
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<ScreenPlacement* ()> ScrPlace_GetViewPlacement{0x1401981F0, 0x140288550};
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<int(XAssetType type)> DB_GetXAssetTypeSize{0x14019A3B0, 0x14028BE70};
2022-02-23 15:23:00 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<void(int clientNum, const char* menu, int a3, int a4, unsigned int a5)> LUI_OpenMenu{0, 0x1404CD210};
2022-02-03 14:05:24 -05:00
WEAK symbol<bool(int clientNum, const char* menu)> Menu_IsMenuOpenAndVisible{0, 0x1404C7320};
2022-02-26 20:16:38 -05:00
WEAK symbol<scr_string_t(const char* str)> SL_FindString{0x140314AF0, 0x14043B470};
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<void(netadr_s* from)> SV_DirectConnect{0, 0x140480860};
WEAK symbol<void(const char* text_in)> SV_Cmd_TokenizeString{0x1402EF050, 0x140404D20};
WEAK symbol<void()> SV_Cmd_EndTokenizedString{0x140344700, 0x140404CE0};
WEAK symbol<mp::gentity_s*(const char* name)> SV_AddBot{0, 0x140480190};
2022-02-26 15:36:29 -05:00
WEAK symbol<bool(int clientNum)> SV_BotIsBot{0, 0x14046E6C0};
WEAK symbol<const char* ()> SV_BotGetRandomName{0, 0x14046DBA0};
2022-02-27 23:58:49 -05:00
WEAK symbol<int(mp::gentity_s* ent)> SV_SpawnTestClient{0, 0x1404832A0};
2022-02-26 15:36:29 -05:00
WEAK symbol<const char* (int clientNum)> SV_GetGuid{0, 0x140484B90};
WEAK symbol<int(int clientNum)> SV_GetClientPing{0, 0x140484B70};
2022-02-26 20:16:38 -05:00
WEAK symbol<playerState_s* (int num)> SV_GetPlayerstateForClientNum{0x1404426D0, 0x140484C10};
2022-02-26 15:36:29 -05:00
WEAK symbol<void(int index, const char* string)> SV_SetConfigstring{0, 0x140486720};
WEAK symbol<bool()> SV_Loaded{0x140442F60, 0x1404864A0};
WEAK symbol<void(int clientNum, const char* reason)> SV_KickClientNum{0, 0x14047ED00};
WEAK symbol<bool(const char* map)> SV_MapExists{0, 0x14047ED60};
WEAK symbol<void(mp::client_t*, const char*, int)> SV_ExecuteClientCommand{0, 0x140481870};
2022-02-26 15:36:29 -05:00
WEAK symbol<void(int localClientNum)> SV_FastRestart{0, 0x14047E990};
WEAK symbol<void(int clientNum, svscmd_type type, const char* text)> SV_GameSendServerCommand{
0x1403F3A70, 0x140484AD0
};
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<void()> Sys_ShowConsole{0x1403E3B90, 0x140514910};
WEAK symbol<void(const char* error, ...)> Sys_Error{0x1403E0C40, 0x140511520};
2022-02-21 14:39:44 -05:00
WEAK symbol<void(char* path, int pathSize, Sys_Folder folder, const char* filename, const char* ext)>
2022-02-26 15:36:29 -05:00
Sys_BuildAbsPath{0x1403CFF90, 0x140507010};
WEAK symbol<int()> Sys_Milliseconds{0x1403E2B10, 0x140513710};
WEAK symbol<bool()> Sys_IsDatabaseReady2{0x1403580B0, 0x14042B090};
WEAK symbol<bool(int, void const*, const netadr_s*)> Sys_SendPacket{0x1403E2820, 0x1405133B0};
WEAK symbol<bool(const char* path)> Sys_FileExists{0x1403E0CE0, 0x1405115E0};
WEAK symbol<const char* (const char*)> UI_GetMapDisplayName{0, 0x140408CC0};
WEAK symbol<const char* (const char*)> UI_GetGameTypeDisplayName{0, 0x1404086A0};
WEAK symbol<void(unsigned int localClientNum, const char** args)> UI_RunMenuScript{0, 0x1404CFE60};
WEAK symbol<int(const char* text, int maxChars, Font_s* font, float scale)> UI_TextWidth{0, 0x1404D21A0};
2022-02-21 14:39:44 -05:00
WEAK symbol<const char*(const char* string)> UI_SafeTranslateString{0x140350430, 0x14041C580};
2022-02-26 15:36:29 -05:00
/***************************************************************
* Variables
**************************************************************/
2022-02-21 14:39:44 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<CmdArgs> sv_cmd_args{0, 0x14946BA20};
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<const char*> command_whitelist{0x141079A60, 0x14120C360};
WEAK symbol<cmd_function_s*> cmd_functions{0x14AD99AB8, 0x14946BAC8};
WEAK symbol<CmdArgs> cmd_args{0x14AD99960, 0x14946B970};
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<int> g_poolSize{0, 0x140FEADF0};
2022-02-03 14:05:24 -05:00
WEAK symbol<GfxDrawMethod_s> gfxDrawMethod{0, 0x14FD21180};
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<int> dvarCount{0, 0x14D064CF4};
WEAK symbol<dvar_t*> sortedDvars{0, 0x14D064D00};
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<void*> DB_XAssetPool{0x140DE8C80, 0x140FEB5D0};
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<int> keyCatchers{0x14243DAF0, 0x142D0BA9C};
WEAK symbol<PlayerKeyState> playerKeys{0x1422A873C, 0x142C19AFC};
WEAK symbol<SOCKET> query_socket{0, 0x14DDFBF98};
2022-02-03 14:05:24 -05:00
2022-02-26 15:36:29 -05:00
WEAK symbol<DWORD> threadIds{0x14B19B880, 0x149810E00};
2022-02-21 14:39:44 -05:00
2022-02-03 14:05:24 -05:00
namespace mp
{
2022-02-26 15:36:29 -05:00
WEAK symbol<gentity_s> g_entities{0, 0x14621E530};
WEAK symbol<client_t> svs_clients{0, 0x14B204A10};
2022-02-26 20:16:38 -05:00
WEAK symbol<int> svs_numclients{0, 0x14B204A0C};
2022-02-26 15:36:29 -05:00
WEAK symbol<int> gameTime{0, 0x14621BDBC};
2022-02-26 17:31:12 -05:00
WEAK symbol<int> sv_serverId_value{0, 0x14A3E99B8};
2022-02-26 20:16:38 -05:00
WEAK symbol<bool> virtualLobby_loaded{0, 0x142D077FD};
2022-02-03 14:05:24 -05:00
}
namespace sp
{
2022-02-26 15:36:29 -05:00
WEAK symbol<gentity_s> g_entities{0x14550DD90, 0};
2022-02-03 14:05:24 -05:00
}
}