XGlobals Asset: Difference between revisions

From COD Engine Research
Created page with "__NOTOC__ Category:Assets Category:BO1 Category:BO2 The xGlobals asset exists only in Black Ops 1 and Black Ops 2 and appears to hold global variables. <source lan..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
[[Category:BO1]]
[[Category:BO1]]
[[Category:BO2]]
[[Category:BO2]]
The xGlobals asset exists only in Black Ops 1 and Black Ops 2 and appears to hold global variables.
The xGlobals asset exists only in Black Ops 1 and Black Ops 2 and appears to hold local global variables associated with screen effects and cinematics.
<source lang="cpp">
<source lang="cpp">
struct XGlobalStruct2 // 8
struct gump_info_t
{
{
const char *string1;
  char *name;
int unknown;
  int size;
};
};


struct XGlobalStruct1 // 8
struct overlay_info_t
{
{
const char *string1;
  char *name;
int unknown;
  int size;
};
};


struct XGlobal // BO1 size = 0x28, BO2 size = 0x234
struct XGlobals // BO1 size = 0x28, BO2 size = 0x234
{
{
const char *name; // xGlobalsSingleton
  const char *name; // xGlobalsSingleton
int xanimstreambufsize;
  int xanimStreamBufferSize;
int cinematixminsize;
  int cinematicMaxWidth;
int cinematicmaxsize;
  int cinematicMaxHeight;
int extracamres;
  int extracamResolution;
int gump;
  vec4_t screenClearColor;
float screenclearcolor[4];
  int bigestGumpSize;
#ifdef BO2
#ifdef BO2
int count1;
  int gumpsCount;
XGlobalStruct1 *unk1; // count = count1
  gump_info_t gumps[32];
char unknown2[0x100];
  int bigestOverlaySize;
int count2;
  int overlayCount;
XGlobalStruct2 *unk2; // count = count2
  overlay_info_t overlays[32];
#endif
#endif
};
};
</source>
</source>

Latest revision as of 01:12, 21 December 2014

The xGlobals asset exists only in Black Ops 1 and Black Ops 2 and appears to hold local global variables associated with screen effects and cinematics.

struct gump_info_t
{
  char *name;
  int size;
};

struct overlay_info_t
{
  char *name;
  int size;
};

struct XGlobals	// BO1 size = 0x28, BO2 size = 0x234
{
  const char *name;	// xGlobalsSingleton
  int xanimStreamBufferSize;
  int cinematicMaxWidth;
  int cinematicMaxHeight;
  int extracamResolution;
  vec4_t screenClearColor;
  int bigestGumpSize;
#ifdef BO2
  int gumpsCount;
  gump_info_t gumps[32];
  int bigestOverlaySize;
  int overlayCount;
  overlay_info_t overlays[32];
#endif
};