I've managed to work out an infinite ammo cheat using AOB scan, and a similar thing for lives, except, when you get hit, you lose your gun, your head and some other item. The issue is that once you lose your head, it doesn't matter how many lives you have left, you die if you get hit again. I'd like to see if someone can help me figure out how to keep my head on (literally), in the game.
I've attached a screen shot, to help, and as you can see at:
2DFCF81E
There is a test to see who is being hit.
EDI+28 contains a 0 for the player and 257 for the enemies. Which is why I test for the 0 in EDI+28 to ensure it's the player being hit. I don't understand what the movzx does nor testing eax against itself. The health is stored in EDI+2C, so I move a 5 into that to keep 5 lives.
If I NOP out the 'dec' instruction then I never die, but neither does the enemy, which is expected, however I remain alive even when I lose my head, gun, etc.
Any help would be appreciated, thanks.
