Posted: Mon Apr 20, 2015 7:39 am Post subject: Make copy of pointer target address in table
I built a table for Postal 2 but ran into a problem. There is a level 6 pointer to the ammo of the current weapon. Sometimes the target address in CE is "flickering" pointing to an invalid or another address but recovers really fast.
The problem is the following:
As long as I am in one zone of the map w/o changing to another map via loading zone the address is fixed. The pointer shows the correct address but the flickering dropped all my weapons which need ammo because for a short time the value got an overflow and became negative.
What I search is the possibility to copy the current ammo address (e.g. machine gun) to a temporary address and use this in one zone. This must be repeated after each loading zone of the map.
Thanks for the idea and the link. I will work through this and try to insert it into my table.
€dit (for I cannot doublepost yet ):
Your thread was very helpful for no ammo decreasing. Now i wanted to also deactivate the police level but then the game is crashing. I just modified the opcode from 89 08 to 90 90 and also checked that the length is the same and all addresses are the same for jumps.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum