Hallo, mich beschäftigt diese Frage schon seit längerem.
Ich habe eine Klasse die anscheinend der original Klasse nachgebaut wurde, und möchte diese nun in meinem GTA IV Hack verwenden.
Die Informationen über die Klasse (CWeaponInfo) habe ich von hier:
[Only registered and activated users can see links. Click Here To Register...]
Es steht auch da:
Wenn ich das richtig verstehe, kann man dann auf jeden Member, den man definiert hat, ohne deren Adresse zu wissen, zugreifen? (Nur durch die Addy der Klasse)?
Hat jemand ein Beispiel, wie soetwas funktioniert?
Lg, Head.
Ich habe eine Klasse die anscheinend der original Klasse nachgebaut wurde, und möchte diese nun in meinem GTA IV Hack verwenden.
Die Informationen über die Klasse (CWeaponInfo) habe ich von hier:
[Only registered and activated users can see links. Click Here To Register...]
Code:
[LEFT]class CWeaponInfo // size: 0x110 (1.0.7.0) { // weapontype (index of array element) int weapontype; // 0x0 | 0 // slottype (index of array element) int slot; // 0x4 | 4 // firetype (index of array element) int firetype; // 0x8 | 8 // damagetype (index of array element) int damagetype; // 0xC | 12 // group (index of array element) int group; // 0x10 | 16 float targetrange; // 0x14 | 20 float weaponrange; // 0x18 | 24 int stattype; // 0x1C | 28 // Weaponflags stored as bitflags. Refer to corresponding array. (if n-th bit is 1, array element n is true) DWORD weaponflags; // 0x20 | 32 DWORD modelhash; // 0x24 | 36 float aimaccuracy; // 0x34 | 52 float aimaccuracyfps; // 0x38 | 52 float offset_x; // 0x40 | 64 float offset_y; // 0x44 | 68 float offset_z; // 0x48 | 72 float crouchoffset_x; // 0x50 | 80 float crouchoffset_y; // 0x54 | 84 float crouchoffset_z; // 0x58 | 88 float reticule_standing; // 0x64 | 100 float reticule_ducked; // 0x68 | 104 float reticule_scale; // 0x6C | 108 int rumbleduration; // 0x70 | 112 float rumbleintensity; // 0x74 | 116 int pickup_regentime; // 0x78 | 120 short pickup_ammoonstreet; // 0x80 | 124 // damage: short damage; // 0x82 | 130 short damagefps; // 0x84 | 132 short clipsize // 0x86 | 132 short ammomax; // 0x88 | 136 int timebetweenshots; // 0x8C | 140 float physicsforce; // 0x90 | 144 int reloadtime_normal; // 0x94 | 150 int reloadtime_fast; // 0x98 | 154 int reloadtime_crouch; // 0x9C | 160 int projectiletype; // 0xA0 int projectilefusetime; // 0xA4 float projectilephysicsexplodeimpactthreshold // 0xD0 float projectilephysicsexplodeimpactwithvehiclethreshold // 0xD4 float projectilephysicsvehiclevelocity // 0xD8 // damage, continued: float networkplayermod; // 0xF0 | 240 float networkpedmod; // 0xF4 | 244 float aimingaccuracytime; // 0xF8 int aimingpellets; // 0xFC };
[/LEFT]
Es steht auch da:
Somit muss ich der Klasse irgendwie die Adresse 0x1540A20 "zuweisen".Quote:
Array of CWeaponInfo's can be found at GTAIV.exe+0x1540A20 (1.0.7.0).
Wenn ich das richtig verstehe, kann man dann auf jeden Member, den man definiert hat, ohne deren Adresse zu wissen, zugreifen? (Nur durch die Addy der Klasse)?
Hat jemand ein Beispiel, wie soetwas funktioniert?
Lg, Head.