ESI is the base address of the structure.
EAX is the number of the item in a list and 334 is the offset where the list is starting.
esi+eax*4+00000334
In my case, for that M4A1 or what, EAX was 0A which means that this weapon is the 10th item in the list. So the code is working like this:
base address+number if the item*4+starting offset of the ammo list in the structure
The *4 part is needed because the ammo is stored on 4 bytes.
So at offset 334, You will find the first weapon's ammo.
334: 1st weapon's ammo
338: 2nd weapon's ammo
33C: 3rd weapon's ammo
340: 4th weapon's ammo
and so on.
So eax is always changing depending on which weapon's ammo is accessed, but ESI is always the same, it is the base address of the whole structure. _________________
awwwww
i dont understand it very well , pls if you can make video tutorial , show me how you finded your eax of gun and show me what you typed in window pls
pls
pls
peace geri!!!!!!!!!!
Ok here is a video about it. I don't have too much to say about it.
The base address in that code is EDI. I just add the address stored on EDI in the dissector and CE will generate the structure. Offset 3C holds the value for the weapon reload time, offset 624 is the accuracy modifier. You can see how are those values changing when I fire the gun.
The reload time is changing it's value all the time when I keep firing, but if I freeze it with code injection, I can fire much faster (faster than on the video because the recording has slowed down the whole game).
Same goes for accuracy. It is 0 by default and it is changing when I fire the gun and accuracy is decreasing. Then it will be 0 again if the accuracy is the default value again. If I enable my cheat for accuracy, the value will be always 0 and the accuracy is not changing whatever You do.
Freezing those values is not the best idea as they are changed too quickly, but as You can see, code injection will work perfectly on them.
yes i did find it xD it works thx you very mutch
and yes
i saw on youtube you dont have profile image so i maked you one xD
peace bro!!!
img823.imageshack.us /img823/4300/gerin.jpg
If You cannot find it "manually", just use the speedhack. Slow down the game to 1-5% speed and search for the reload time after You have fired the weapon. Probably it is a decreasing value but You can never know, so try to search for increased values too if You don't find it.
First narrow down the search range to the structure only and if You don't find it there, search for it globally in the whole game (or near the other data).
Also as You can see it on the video too, the reload timer is usually the same value which is stored for reload between two shots or load a new clip when You are out of ammo. So You can try to search for the timer when You change clip too. _________________
I have never played Counter Strike so I have no idea how is it working in that game, but the method I have used for COD4 should work in almost every game.
And if speedhack is working, probably You can find the timer if You try patiently. _________________
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