Difference between revisions of "Category:Memory Addresses"

From GTAMods Wiki
Jump to navigation Jump to search
(Advanced Options)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''Note that all offsets thus posted have been confirmed for GTA_SA version 1.0.'''
+
Collection of addresses of interesting values, structures and functions in the memory of the games' executables at run-time.
  
== SCM related ==
+
===See also===
*0xA49960 = start of scm block<br>
+
* {{Icon|3}}&nbsp;{{Icon|vc}}&nbsp;{{GTAF|117195|GTA III/VC memory address documentation topic}}
*0x464080 = GetOpcodeParameters()<br>
+
* {{Icon|sa}}&nbsp;{{GTAF|194199|GTA SA memory address documentation topic}}
*0xA43C78 = Where the routine above stores opcode parameters values. Max 16 paramters for an opcode it seems.<br>
+
* {{Icon|4}}&nbsp;{{GTAF|378631|GTA IV memory address documentation topic}}
 
+
[[Category:Documentation]]
 
 
 
 
===Structures===
 
''CPed class. Not fully documented.''
 
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
 
 
 
};
 
 
 
 
 
''CWeapon class. Fully documented.''
 
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.)
 
 
 
};
 
 
 
 
 
----
 
 
 
===Advanced Options===
 
''Values are DWORDS unless stated otherwise.''
 
*'''Display Settings'''
 
**0xBA6784 - Brightness [long]
 
**0xBA6792 - Legend
 
**0xBA676C - Radar Mode
 
**0xBA6769 - Hud Mode
 
**0xBA678C - Subtitles
 
**0xBA6830 - Store gallery photos
 
**0xBA6788 - Draw Distance [long]
 
**0xBA6794 - Frame limiter
 
**0xBA6793 - Widescreen
 
**0xA9AE54 - Visual FX Quality
 
**0xBA680C - Mip Mapping
 
**0xBA6814 - Antialiasing [1 = off, 2 = 1, 3 = 2, 4 = 3]
 
**0xBA6820 - Resolution [640x480=11, 800x400 = 12, 800x600=13, 1024x1068=15]
 
 
 
*'''Sound Configuration'''
 
**0xBA6798 - Radio Volume [0 through 64]
 
**0xBA6797 - SFX Volume [0 through 64]
 
**0xBA6799 - Radio Equalizer
 
**0xBA6795 - Radio Auto-tune
 
**0xBA67F8 - Usertrack/Play mode [0 = radio, 1 = random]
 
**0xBA680D - Usertrack/Automatic Media Scan
 
**0xBA679A - Radio Station [0 through 11, 12 = usertrack player]
 
 
 
*'''Controller Configuration'''
 
**0xBA6818 - Controller Configuration [0 = mouse+keys, 1 = joypad]
 
**0xB6EC1C - Mouse sensivity [float]
 
**0xC1CC02 - Steer with mouse [byte boolean]
 
**0xC1CC03 - Invert mouse vertically [byte boolean]
 
 
 
 
 
----
 
 
 
===Statistics-related===
 
''Values are FLOATS unless stated otherwise.''
 
*'''CPed stats'''
 
**0xB793D4 Fat
 
**0xB793D8 Stamina
 
**0xB793DC Muscle
 
 
 
*'''CWeapon stats'''
 
**0xB79496 Pistol
 
**0xB79498 Silenced pistol
 
**0xB7949C Desert eagle
 
**0xB794A0 Shotgun
 
**0xB794A4 Sawn-off shotgun
 
**0xB794A8 Combat shotgun
 
**0xB794AC Machine pistol
 
**0xB794B0 SMG
 
**0xB794B4 AK47
 
**0xB794B8 M4 stat
 
 
 
 
 
----
 

Latest revision as of 17:27, 17 March 2009

Collection of addresses of interesting values, structures and functions in the memory of the games' executables at run-time.

See also

Subcategories

This category has only the following subcategory.