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

How to get index of offset?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 02-11-2011 , 14:23   How to get index of offset?
Reply With Quote #1

How to get index of offset?
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 02-11-2011 , 14:24   Re: How to get index of offset?
Reply With Quote #2

Quote:
Originally Posted by PRoSToTeM@ View Post
How to get index of offset?
Offset for what? Private data? Virtual Functions?
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 02-11-2011 , 14:26   Re: How to get index of offset?
Reply With Quote #3

Example: m_rgAmmo
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 02-11-2011 , 14:30   Re: How to get index of offset?
Reply With Quote #4

I don't know for what mod you want that offset but if it is for CS you should check this out: http://wiki.alliedmods.net/Category:CS_Class_List

If you want that offset for another mod 2 methods are possible.
1. Check the source code of the mode to see the position of the offsets.
2. Trial and error, you create an entity and set its private data to some values with DispatchKeyValue and you make a dump file with all the values that the entity has in the private data and try indentifying the offset that you modified.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 02-11-2011 , 14:33   Re: How to get index of offset?
Reply With Quote #5

Thanks
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-11-2011 , 14:40   Re: How to get index of offset?
Reply With Quote #6

Another method is to disassemble the game binary, with for example IDA.
__________________
Arkshine is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 02-11-2011 , 14:42   Re: How to get index of offset?
Reply With Quote #7

Please give index of m_lastHudMessage
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-11-2011 , 14:45   Re: How to get index of offset?
Reply With Quote #8

What is that ? Where did you get such name ? It's supposed to do what ?
__________________
Arkshine is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 02-11-2011 , 14:46   Re: How to get index of offset?
Reply With Quote #9

This is from hud_spectator.cpp
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-11-2011 , 14:47   Re: How to get index of offset?
Reply With Quote #10

It's client-side. So, forget.
__________________
Arkshine is offline
Reply



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 02:28.


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