XGlobals Asset: Difference between revisions

From COD Engine Research
No edit summary
No edit summary
 
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 gump_info_t
struct gump_info_t

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
};