Category:Memory Addresses
								
								Jump to navigation
				Jump to search
				
					
								
							
		Note that all offsets thus posted have been confirmed for GTA_SA version 1.0.
- 0xA49960 = start of scm block
- 0x464080 = GetOpcodeParameters()
- 0xA43C78 = Where the routine above stores opcode parameters values. Max 16 paramters for an opcode it seems.
Structures
struct _CPed {             // 0x7C4 bytes total. 
    DWORD      this;       // +0x000
    D3DMATRIX  Matrix;     // +0x014
    BYTE       areaStatus; // +0x02F  (0 = exterior. 3 = interior.)
    BYTE       Status;     // +0x042  (BP/EP/FP/DP)
    DWORD      StateFlags; // +0x46C
    DWORD      Action;     // +0x530
    BYTE       RunState;   // +0x534
    FLOAT      Health;     // +0x540
    FLOAT      MaxHealth;  // +0x544
    FLOAT      Armor;      // +0x548
    FLOAT      Rotation1;  // +0x558
    FLOAT      Rotation2;  // +0x55C
    DWORD      CVehicle;   // +0x58C
    void       WeapData;   // +0x5A0  (pool of slotted CWeapon structs, 28 bytes each)
    BYTE       CurWeapon;  // +0x718
    DWORD      Target;     // +0x788
};
 
struct _CWeapon {          // 0x01C bytes total. 
    BYTE     WeaponID;     // +0x000  (see weapon.dat)
    DWORD    State;        // +0x004  (0 = idle. 1 = firing. 2 = reloading.)
    DWORD    ClipAmmo;     // +0x008
    DWORD    AmmoLeft;     // +0x00C
    BYTE     GoogleMode;   // +0x014  (0 = 0ff. 255 = On.)
 
};
Pages in category "Memory Addresses"
The following 10 pages are in this category, out of 10 total.

