<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://codresearch.dev/index.php?action=history&amp;feed=atom&amp;title=Game_Entity_%28MW2%29</id>
	<title>Game Entity (MW2) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://codresearch.dev/index.php?action=history&amp;feed=atom&amp;title=Game_Entity_%28MW2%29"/>
	<link rel="alternate" type="text/html" href="https://codresearch.dev/index.php?title=Game_Entity_(MW2)&amp;action=history"/>
	<updated>2026-07-28T09:21:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://codresearch.dev/index.php?title=Game_Entity_(MW2)&amp;diff=625&amp;oldid=prev</id>
		<title>Aerosoul94 at 06:04, 7 December 2014</title>
		<link rel="alternate" type="text/html" href="https://codresearch.dev/index.php?title=Game_Entity_(MW2)&amp;diff=625&amp;oldid=prev"/>
		<updated>2014-12-07T06:04:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:04, 7 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Game Structures]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:MW2]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/* entityState_s-&amp;gt;eType */&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/* entityState_s-&amp;gt;eType */&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aerosoul94</name></author>
	</entry>
	<entry>
		<id>https://codresearch.dev/index.php?title=Game_Entity_(MW2)&amp;diff=624&amp;oldid=prev</id>
		<title>Aerosoul94: Created page with &quot;&lt;syntaxhighlight lang=&quot;cpp&quot;&gt; /* entityState_s-&gt;eType */ enum entityType_t {   ET_GENERAL = 0x0,   ET_PLAYER = 0x1,   ET_PLAYER_CORPSE = 0x2,   ET_ITEM = 0x3,   ET_MISSILE = 0x...&quot;</title>
		<link rel="alternate" type="text/html" href="https://codresearch.dev/index.php?title=Game_Entity_(MW2)&amp;diff=624&amp;oldid=prev"/>
		<updated>2014-12-07T06:04:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt; &lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;entityState_s-&amp;gt;eType: &lt;/span&gt; enum entityType_t {   ET_GENERAL = 0x0,   ET_PLAYER = 0x1,   ET_PLAYER_CORPSE = 0x2,   ET_ITEM = 0x3,   ET_MISSILE = 0x...&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
/* entityState_s-&amp;gt;eType */&lt;br /&gt;
enum entityType_t&lt;br /&gt;
{&lt;br /&gt;
  ET_GENERAL = 0x0,&lt;br /&gt;
  ET_PLAYER = 0x1,&lt;br /&gt;
  ET_PLAYER_CORPSE = 0x2,&lt;br /&gt;
  ET_ITEM = 0x3,&lt;br /&gt;
  ET_MISSILE = 0x4,&lt;br /&gt;
  ET_INVISIBLE = 0x5,&lt;br /&gt;
  ET_SCRIPTMOVER = 0x6,&lt;br /&gt;
  ET_SOUND_BLEND = 0x7,&lt;br /&gt;
  ET_FX = 0x8,&lt;br /&gt;
  ET_LOOP_FX = 0x9,&lt;br /&gt;
  ET_PRIMARY_LIGHT = 0xA,&lt;br /&gt;
  ET_TURRET = 0xB,&lt;br /&gt;
  ET_HELICOPTER = 0xC,&lt;br /&gt;
  ET_PLANE = 0xD,&lt;br /&gt;
  ET_VEHICLE = 0xE,&lt;br /&gt;
  ET_VEHICLE_COLLMAP = 0xF,&lt;br /&gt;
  ET_VEHICLE_CORPSE = 0x10,&lt;br /&gt;
  ET_VEHICLE_SPAWNER = 0x11&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
/* gentity_s-&amp;gt;flags */&lt;br /&gt;
#define FL_GODMODE 0x1&lt;br /&gt;
#define FL_DEMI_GODMODE 0x2&lt;br /&gt;
#define FL_NO_KNOCKBACK 0x8&lt;br /&gt;
#define FL_CAN_RADIUS_DAMAGE 0x10&lt;br /&gt;
#define FL_SUPPORTS_LINKTO 0x1000&lt;br /&gt;
#define FL_GRENADE_TOUCH_DAMAGE 0x4000&lt;br /&gt;
#define FL_STABLE_MISSILES 0x20000&lt;br /&gt;
&lt;br /&gt;
struct LerpEntityStatePlayer&lt;br /&gt;
{&lt;br /&gt;
  int leanf;&lt;br /&gt;
  int movementDir;&lt;br /&gt;
  int torsoPitch;&lt;br /&gt;
  int waistPitch;&lt;br /&gt;
  int offhandWeapon;&lt;br /&gt;
  int lastSpawnTime;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct LerpEntityStateAnonymous&lt;br /&gt;
{&lt;br /&gt;
  int data[9];&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct LerpEntityStateMissile&lt;br /&gt;
{&lt;br /&gt;
  int launchTime;&lt;br /&gt;
  int flightMode;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct LerpEntityStateScriptMover&lt;br /&gt;
{&lt;br /&gt;
  int entToTakeMarksFrom;&lt;br /&gt;
  int xModelIndex;&lt;br /&gt;
  int animIndex;&lt;br /&gt;
  int animTime;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct LerpEntityStateSoundBlend&lt;br /&gt;
{&lt;br /&gt;
  int lerp;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct LerpEntityStateLoopFx&lt;br /&gt;
{&lt;br /&gt;
  int cullDist;&lt;br /&gt;
  int period;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct LerpEntityStateTurret&lt;br /&gt;
{&lt;br /&gt;
  float gunAngles[3];&lt;br /&gt;
  int lastBarrelRotChangeTime;&lt;br /&gt;
  int lastBarrelRotChangeRate;&lt;br /&gt;
  int lastHeatChangeTime;&lt;br /&gt;
  int lastHeatChangeLevel;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct LerpEntityStateVehicle&lt;br /&gt;
{&lt;br /&gt;
  int indices;&lt;br /&gt;
  int flags;&lt;br /&gt;
  int bodyPitch;&lt;br /&gt;
  int bodyRoll;&lt;br /&gt;
  int steerYaw;&lt;br /&gt;
  int gunPitch;&lt;br /&gt;
  int gunYaw;&lt;br /&gt;
  int playerIndex;&lt;br /&gt;
  int pad;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct LerpEntityStatePlane&lt;br /&gt;
{&lt;br /&gt;
  int ownerNum;&lt;br /&gt;
  int enemyIcon;&lt;br /&gt;
  int friendIcon;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
union LerpEntityStateTypeUnion&lt;br /&gt;
{&lt;br /&gt;
  LerpEntityStateTurret turret;&lt;br /&gt;
  LerpEntityStateLoopFx loopFx;&lt;br /&gt;
  LerpEntityStatePlayer player;&lt;br /&gt;
  LerpEntityStateScriptMover scriptMover;&lt;br /&gt;
  LerpEntityStateVehicle vehicle;&lt;br /&gt;
  LerpEntityStatePlane plane;&lt;br /&gt;
  LerpEntityStateMissile missile;&lt;br /&gt;
  LerpEntityStateSoundBlend soundBlend;&lt;br /&gt;
  LerpEntityStateAnonymous anonymous;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct trajectory_t&lt;br /&gt;
{&lt;br /&gt;
  trType_t trType;&lt;br /&gt;
  int trTime;&lt;br /&gt;
  int trDuration;&lt;br /&gt;
  float trBase[3];&lt;br /&gt;
  float trDelta[3];&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct LerpEntityState&lt;br /&gt;
{&lt;br /&gt;
  int eFlags;&lt;br /&gt;
  trajectory_t pos;&lt;br /&gt;
  trajectory_t apos;&lt;br /&gt;
  LerpEntityStateTypeUnion u;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct entityState_s&lt;br /&gt;
{&lt;br /&gt;
  int number;	// 0x0&lt;br /&gt;
  int eType;	// 0x4&lt;br /&gt;
  LerpEntityState lerp;	// 0x8&lt;br /&gt;
  int time2;	// 0x78&lt;br /&gt;
  int otherEntityNum;	// 0x7C&lt;br /&gt;
  int attackerEntityNum;	// 0x80&lt;br /&gt;
  int groundEntityNum;	// 0x84&lt;br /&gt;
  int loopSound;	// 0x88&lt;br /&gt;
  int surfType;	// 0x8C&lt;br /&gt;
  union&lt;br /&gt;
  {&lt;br /&gt;
    int brushmodel;&lt;br /&gt;
    int item;&lt;br /&gt;
    int xmodel;&lt;br /&gt;
    int primaryLight;&lt;br /&gt;
  } index;	// 0x90&lt;br /&gt;
  int clientNum;	// 0x94&lt;br /&gt;
  int iHeadIcon;	// 0x98&lt;br /&gt;
  int iHeadIconTeam;	// 0x9C&lt;br /&gt;
  int solid;	// 0xA0&lt;br /&gt;
  int eventParm;	// 0xA4&lt;br /&gt;
  int eventSequence;	// 0xA8&lt;br /&gt;
  int events[4];	// 0xAC&lt;br /&gt;
  int eventParms[4];	// 0xBC&lt;br /&gt;
  int wes;	// 0xCC&lt;br /&gt;
  int legsAnim;	// 0xD0&lt;br /&gt;
  int torsoAnim;	// 0xD4&lt;br /&gt;
  union&lt;br /&gt;
  {&lt;br /&gt;
    int scale;&lt;br /&gt;
    int eventParm2;&lt;br /&gt;
    int helicopterStage;&lt;br /&gt;
  } un1;	// 0xD8&lt;br /&gt;
  union&lt;br /&gt;
  {&lt;br /&gt;
    int hintString;&lt;br /&gt;
    int grenadeInPickupRange;&lt;br /&gt;
    int vehicleXModel;&lt;br /&gt;
  } un2;	// 0xDC&lt;br /&gt;
  int clientLinkInfo;	// 0xE0&lt;br /&gt;
  int partBits[6];	// 0xE4&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct enitityShared_t&lt;br /&gt;
{&lt;br /&gt;
  int clientMask;	// 0x0&lt;br /&gt;
  char linked;	// 0x4&lt;br /&gt;
  char bmodel;	// 0x5&lt;br /&gt;
  char svFlags;	// 0x6&lt;br /&gt;
  char inuse;	// 0x7&lt;br /&gt;
  float mins[3];	// 0x8&lt;br /&gt;
  float maxs[3];	// 0x14&lt;br /&gt;
  int contents;	// 0x20&lt;br /&gt;
  float absmin[3];	// 0x24&lt;br /&gt;
  float absmax[3];	// 0x30&lt;br /&gt;
  float currentOrigin[3];	// 0x3C&lt;br /&gt;
  float currentAngles[3];	// 0x48&lt;br /&gt;
  EntHandle ownerNum;	// 0x54&lt;br /&gt;
  int eventTime;	// 0x58&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
struct gentity_s&lt;br /&gt;
{&lt;br /&gt;
  entityState_s s; // 0x0&lt;br /&gt;
  enitityShared_t r; // 0xFC&lt;br /&gt;
  gclient_s *client; // 0x158&lt;br /&gt;
  turretInfo_s *pTurretInfo; // 0x15C&lt;br /&gt;
  scr_vehicle_s *scr_vehicle; // 0x160&lt;br /&gt;
  dxBody *physicsBody; // 0x164&lt;br /&gt;
  __int16 model; // 0x168&lt;br /&gt;
  char physicsObject; // 0x16A&lt;br /&gt;
  char takedamage;  // 0x16B&lt;br /&gt;
  char active; // 0x16C&lt;br /&gt;
  char handler; // 0x16D&lt;br /&gt;
  char team; // 0x16E&lt;br /&gt;
  char freeAfterEvent; 0x16F&lt;br /&gt;
  unsigned __int16 code_classname; // 0x172&lt;br /&gt;
  unsigned __int16 classname; // 0x174&lt;br /&gt;
  unsigned __int16 script_linkname; // 0x176&lt;br /&gt;
  unsigned __int16 target; // 0x178&lt;br /&gt;
  unsigned __int16 targetname; // 0x17A&lt;br /&gt;
  int attachIgnoreCollision; // 0x17C&lt;br /&gt;
  int spawnFlags; // 0x180&lt;br /&gt;
  int flags; // 0x184&lt;br /&gt;
  int unlinkAfterEvent; // 0x188&lt;br /&gt;
  int clipMask;  // 0x18C&lt;br /&gt;
  int processedFrame; // 0x190&lt;br /&gt;
  EntHandle parent; // 0x194&lt;br /&gt;
  int nextthink; // 0x198&lt;br /&gt;
  int health; // 0x19C&lt;br /&gt;
  int maxhealth; // 0x1A0&lt;br /&gt;
  int damage; // 0x1A4&lt;br /&gt;
  int count; // 0x1A8&lt;br /&gt;
  union	// 0x1AC&lt;br /&gt;
  {&lt;br /&gt;
    item_ent_t item[2];&lt;br /&gt;
    trigger_ent_t trigger;&lt;br /&gt;
    mover_ent_t mover;&lt;br /&gt;
    corpse_ent_t corpse;&lt;br /&gt;
  };&lt;br /&gt;
  EntHandle projEntity;	// 0x20C&lt;br /&gt;
  EntHandle linkedEntity;// 0x210&lt;br /&gt;
  int tagInfo;	// 0x214&lt;br /&gt;
  gentity_s *tagChildren;// 0x218&lt;br /&gt;
  unsigned __int16 attachModelNames[19];// 0x21C&lt;br /&gt;
  unsigned __int16 attachTagNames[19];// 0x242&lt;br /&gt;
  int useCount;	// 0x268&lt;br /&gt;
  int nextFree;	// 0x26C&lt;br /&gt;
  int birthtime; // 0x270&lt;br /&gt;
#ifdef PS3&lt;br /&gt;
  char unknown[0xC]; // 0x274&lt;br /&gt;
#endif&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Aerosoul94</name></author>
	</entry>
</feed>