finding adress by using cheat engine
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. |
Re: finding adress by using cheat engine
I'm pretty sure both client and server(or at least client) should be insecure if you don't want to be vac banned, also exit the cheat engine process when playing securely.
|
Re: finding adress by using cheat engine
You should always only use this on the server. No need to deactivate VAC, since the server is not tied to any account it could ban:)
Nice approach javalia! |
Re: finding adress by using cheat engine
FWIW, TSearch is a similar tool to Cheat Engine designed specifically for finding values like this.
It's no where near as powerful in respect to CE's other features, but it's a much simpler UI just for this. |
Re: finding adress by using cheat engine
I'm attempting to use this method to find out where the game stores its Team Scores.
http://i.imgur.com/9CiEM.png These are the correct addresses, but using the hex math to get an offset gives huge differences. How can I find a closer (and valid) reference point? From: https://forums.alliedmods.net/showthread.php?t=182290 |
Re: finding adress by using cheat engine
Quote:
Are the memory addresses not DMA? P.S. I prefer Art Money over Cheat Engine. |
Re: finding adress by using cheat engine
Quote:
Code:
CCSGameRulesProxy: Code:
m_iNumCTWins | offset 632 | m_iHostagesRemaining + 36 |
Re: finding adress by using cheat engine
Quote:
Presumably, you can use FindEntityByClassname and SetEntProp / GetEntProp to manipulate the team scores through it directly. Interestingly, I can't find properties in the CTFGameRulesProxy class to read the current team scores, despite having inputs to add to them. |
Re: finding adress by using cheat engine
Quote:
|
Re: finding adress by using cheat engine
Quote:
|
All times are GMT -4. The time now is 21:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.