-
Notifications
You must be signed in to change notification settings - Fork 0
Infinite Ammo
Ammo is usually represented by a number on the hud in game. Typically you can search for this ammo value as a 32-byte value. If you don't find it, you might have to search for an unknown value that decreases when a shot is fired or increased when more ammo is acquired.
Once you find the ammo value you could freeze this value or type in a much larger value than what is usually given. Ex: 999 when you usually have 12. But, if you "right click > Find what writes" and fire a shot you will see an instruction (usually a mov instruction) and browse the Debug memory region of this instruction. Somewhere above this instruction you will typically find a "sub or dec" instruction. If you reverse these instructions with an "add or inc" you will see your ammo quantity increase. You can also "nop" these instructions out to not increase nor decrease your current ammo quantity.
-
add = add
-
sub = subtract
-
inc = increase
-
dec = decrease
-
hud = Heads Up Display. (The values shown on screen.)