+ 1

How do programmers add cheat codes in games?

we have some cheat codes in gta which completely changes the game like infinite health or ammo but how do they add that?

26th Sep 2018, 10:53 AM
Code master
2 odpowiedzi
+ 5
Cheat codes are actually rewriting the game memory. I would find the memory address where the ammo amount is stored. Find the offset and the base address for it. And scan the pointer for the base address because it’s dynamic. If you think about how games are made. We could have a player object where is health property. Or a gun object with ammo property. The gun or player object is the base address. Then we have offsets that we use to access the object properties.
26th Sep 2018, 11:10 AM
Toni Isotalo
Toni Isotalo - avatar
+ 5
黑暗的军队 cisco Oh yes my bad. I don’t really play games. I wrote about game hacking in general.
26th Sep 2018, 11:21 AM
Toni Isotalo
Toni Isotalo - avatar