Talk:Memory Addresses (SA)

From GTAMods Wiki
Revision as of 15:10, 21 December 2006 by JGuntherS@NL (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

If made something handy, but I don't know where to put is, as it is a quite large piece of code:

typedef DWORD _CMATRIX_TYPE; 
typedef _CMATRIX_TYPE CMATRIX_TYPE; // This is temporarily

typedef DWORD _CPED_TYPE;
typedef _CPED_TYPE CPED_TYPE; // This is temporarily

typedef struct _CVEHICLE_TYPE {
   BYTE                _pad1[20];	// 0    ... 19
   CMATRIX_TYPE *      pMatrix;	// 20   ... 23
   BYTE                _pad2[10];	// 24   ... 33
   DWORD               dwVehicleID;	// 34   ... 37
   BYTE                _pad3[28];	// 38   ... 65
   BYTE                bImmunities;	// 66   ... 66
   BYTE                _pad4[1];	// 67   ... 67
   float               fXSpeed;	// 68   ... 71
   float               fYSpeed;	// 72   ... 75
   float               fZSpeed;	// 76   ... 79
   float               fXSpin;		// 80   ... 83
   float               fYSpin;		// 84   ... 87
   float               fZSpin;		// 88   ... 91
   BYTE                _pad5[48];	// 92   ... 139
   float               fMass;		// 140  ... 143
   float               fTurnMass;	// 144  ... 147
   float               fGripDivider;	// 148  ... 151
   float               fMTGMultiplier;	// 152  ... 155
   BYTE                _pad6[4];	// 156  ... 159
   float               fNGripLevel;	// 160  ... 163
   float               fXCoM;		// 164  ... 167
   float               fYCoM;		// 168  ... 171
   float               fZCoM;		// 172  ... 175
   BYTE                _pad7[888];	// 176  ... 1063
   BYTE                bEngineState;	// 1064 ... 1064
   BYTE                _pad8[11];	// 1065 ... 1075
   BYTE                bBodyColor;	// 1076 ... 1076
   BYTE                bStripeColor;	// 1077 ... 1077
   BYTE                bBodyColor2;	// 1078 ... 1078
   BYTE                bStripeColor2;	// 1079 ... 1079
   DWORD               dwModData[8];	// 1080 ... 1111
   float               fWheelSize;	// 1112 ... 1115
   DWORD               dwAlarmTimeLeft;// 1116 ... 1119
   CPED_TYPE *		pDriver;	// 1120 ... 1123
   CPED_TYPE *		pPassenger[7];	// 1124 ... 1151
   BYTE                _pad9[20];	// 1152 ... 1171
   float               fSteerAngles[2];// 1172 ... 1179
   float               fGasPedal;	// 1180 ... 1183
   float               fBreakPedal;	// 1184 ... 1187
   BYTE                _pad10[28];	// 1188 ... 1215
   float               fHealth;	// 1216 ... 1219

} CVEHICLE_TYPE;

-- JGuntherS@NL 09:10, 21 Dec 2006 (CST)