Level Locals (MW2)

From COD Engine Research
Revision as of 17:38, 12 December 2014 by Aerosoul94 (talk | contribs) (Created page with "<syntaxhighlight lang="cpp"> struct SpawnVar { bool spawnVarsValid; int numSpawnVars; char *spawnVars[64][2]; int numSpawnVarChars; char spawnVarChars[2048]; }; str...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
struct SpawnVar
{
  bool spawnVarsValid;
  int numSpawnVars;
  char *spawnVars[64][2];
  int numSpawnVarChars;
  char spawnVarChars[2048];
};

struct cached_tag_mat_t
{
  int time;
  int entnum;
  unsigned __int16 name;
  float tagMat[4][3];
};

struct com_parse_mark_t
{
  int lines;
  const char *text;
  int ungetToken;
  int backup_lines;
  const char *backup_text;
};

struct objective_t
{
  int state;
  float origin[3];
  int entNum;
  int teamNum;
  int icon;
};

struct trigger_info_t
{
  unsigned __int16 entnum;
  unsigned __int16 otherEntnum;
  int useCount;
  int otherUseCount;
};

struct level_locals_t
{
  gclient_s *clients;
  gentity_s *gentities;
  int num_entities;
  gentity_s *firstFreeEnt;
  gentity_s *lastFreeEnt;
  turretInfo_s *turrets;
  void *logFile;
  int initializing;
  int clientSpawning;
  objective_t objectives[32];
  int maxclients;
  int framenum;
  int time;
  int previousTime;
  int frameTime;
  int startTime;
  int teamScores[4];
  int lastTeammateHealthTime;
  int bUpdateScoresForIntermission;
  bool teamHasRadar[4];
  bool teamBlockedRadar[4];
  int manualNameChange;
  int numConnectedClients;
  int sortedClients[18];
  char voteString[1024];
  char voteDisplayString[1024];
  int voteTime;
  int voteExecuteTime;
  int voteYes;
  int voteNo;
  int numVotingClients;
  SpawnVar spawnVar;
  int savepersist;
  EntHandle droppedWeaponCue[32];
  int fFogOpaqueDist;
  int fFogOpaqueDistSqrd;
  int currentPlayerClone;
  trigger_info_t pendingTriggerList[256];
  trigger_info_t currentTriggerList[256];
  int pendingTriggerListSize;
  int currentTriggerListSize;
  int finished;
  int bPlayerIgnoreRadiusDamage;
  int bPlayerIgnoreRadiusDamageLatched;
  int registerWeapons;
  int bRegisterItems;
  int currentEntityThink;
  void *openScriptIOFileHandles[1];
  void *openScriptIOFileBuffers[1];
  com_parse_mark_t currentScriptIOLineMark;
  cached_tag_mat_t cachedTagMat;
  int scriptPrintChannel;
  float compassMapUpperLeft[2];
  float compassMapWorldSize[2];
  float compassNorth[2];
  scr_vehicle_s *vehicles;
  int hudElemLastAssignedSoundId;
};