Category:Memory Addresses

From GTAMods Wiki
Revision as of 03:05, 3 October 2005 by Jacob. (talk | contribs) (Structures)
Jump to navigation Jump to search

Note that all offsets thus posted have been confirmed for GTA_SA version 1.0.

SCM related

  • 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.)
 
};

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]

Subcategories

This category has only the following subcategory.