Added data

This commit is contained in:
ineedbots 2021-06-28 15:35:31 -06:00
parent 5a18dc5fc6
commit 7e30d83793
2 changed files with 53 additions and 0 deletions

View File

@ -4,7 +4,31 @@ namespace Game
{
void Init(GAMEEXE)
{
cls = ASSIGN(clientStatic_t*, 0x68A408);
svs = ASSIGN(serverStatic_t*, 0xD35700);
sv = ASSIGN(server_t*, 0xCD6180);
gScrCompilePub = ASSIGN(scrCompilePub_t*, 0xD77790);
scrVarPub = ASSIGN(scrVarPub_t*, 0xF08F88);
scrVmPub = ASSIGN(scrVmPub_t*, 0xF4B900);
cgsArray = ASSIGN(cgs_t*, 0x14C3700);
cgArray = ASSIGN(cg_t*, 0x14EE080);
cg_entitiesArray = ASSIGN(centity_s*, 0x15E2A80);
BG_WeaponNames = ASSIGN(WeaponDef_t**, 0x1728200);
g_entities = ASSIGN(gentity_t*, 0x1744380);
g_clients = ASSIGN(gclient_t*, 0x1897E80);
level_bgs = ASSIGN(bgs_s*, 0x17D03D0);
level = ASSIGN(level_locals_t*, 0x193A780);
scr_const = ASSIGN(stringIndex_t*, 0x1943920);
bgs_ptr = ASSIGN(bgs_s**, 0x19A1C78);
}
}

View File

@ -1,6 +1,35 @@
#pragma once
#define SELECT(addr) (addr)
#define ASSIGN(type, addr) reinterpret_cast<type>(SELECT(addr))
namespace Game
{
void Init(GAMEEXE);
static clientStatic_t* cls;
static serverStatic_t* svs;
static server_t* sv;
static scrCompilePub_t* gScrCompilePub;
static scrVarPub_t* scrVarPub;
static scrVmPub_t* scrVmPub;
static cgs_t* cgsArray;
static cg_t* cgArray;
static centity_s* cg_entitiesArray;
static WeaponDef_t** BG_WeaponNames;
static gentity_t* g_entities;
static gclient_t* g_clients;
static bgs_s* level_bgs;
static level_locals_t* level;
static stringIndex_t* scr_const;
static bgs_s** bgs_ptr;
}