+ 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?
2 ответов
+ 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.
+ 5
黑暗的军队 cisco
Oh yes my bad. I don’t really play games. I wrote about game hacking in general.