Raised This Month: $51 Target: $400
 12% 

finding adress by using cheat engine


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
javalia
Senior Member
Join Date: May 2009
Location: korea, republic of
Old 12-08-2011 , 13:30   finding adress by using cheat engine
Reply With Quote #1

i was started this work because of
http://forums.alliedmods.net/showthread.php?t=173650

anyway, when i finished my work, they already finished all the works done.

this tutorial uses cheat engine, so, install it(it is free to use)and
if u dont know how to use it,u can do few of tutorials that included on it.

and now, lets start the tutorial.

now we want to find where is the adress that saves reserved ammo of gun
when gun is dropped.

1.turn srcds on(we need to be on windows, cuz cheat engine is working on windows), connect and hook cheat engine to srcds.exe

2.than now, in game, spawn some weapon or get any weapon on ground.
it is enough if u already have some gun on hand.

3.now, in this case, i had glock on ma hand. and it`s reserved ammo was 120.
at this moment, by work of other scipter, i known dropped gun`s reserved ammo is not saved on any netprop/datamaps.
so, lets drop that glock.

4.and find exact 120 value that is in 4 byte format. from srcds.exe.
it will show us many memory adress that contains 120.

5.now, grab gun and reload it so changing it`s reserved ammo to 119.
throw it again and now do next search with condition of exact value 119.
at this moment, u will get 1 real adress and that is where the reserved ammo is saved. if u still get 2 or more adress, u just can do this step again.
i got adress 0AABD9EC.

6.absolute position of the adress will not help as to use it with SM.
so we need to get some relative position of the adress against some well known netprop/datamap. lets find m_iclip1 in this case.

7.by doing like step 1 to5 again, u will easily get m_iclip1`s adress. it was 0AABD92C on my case.

8. now lets do some math. if u r not good at hex, dont worry, we have many calculators for it. just subtract m_iclip1`s adress from reserved ammo`s adress . so sentence is 0AABD92C - 0AABD9EC

9. we got c0, and it is 192 in decimal.
now we can use this relative adress by this way
SetEntData(target, FindSendPropOffs("CWeaponCSBase", "m_iClip1") + 192, 4);
or like this
SetEntData(target, GetEntSendPropOffs(target, "m_iClip1") + 192, 24);
or like this
SetEntData(target, FindDataMapOffs(target, "m_iClip1") + 192, 48);
all the three way is working because m_iclip1 is datamap while it is a netprop.

h.m....bye.
__________________

Last edited by javalia; 12-08-2011 at 14:36.
javalia is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode