View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-03-2012 , 15:04   Re: The art of signature scanning
Reply With Quote #6

Quote:
how to find these offets
By using a disassembler/decompiler like IDA. You load a CS binary and simply find your function and check the code.

Quote:
what they do
By checking the references of the offset, then you guess the name and what it does. About these offsets specifically, some are from the HL2SDK, some files for CSS has been leaked or has been created, and the game rules for CS/CSS is basically the same. Except that, all others offsets, you simply guess for all.

Quote:
I believe one of the offsets is incorrect
Probably a typo. Not like I've tested all, just seen the offset on IDA. Yes, just check m_iNumEscapers is 168. The others are fine. Just a typo. I did not probably not tested under linux.

Quote:
If I want to, for example, find out the players name or fetch his entity (edict_t) how would I proceed?
You can find a lot of answers by reviewing the HLSDK. Even if in CS it a bit different, it's still based on it and most of stuffs are the same. In CBaseEntity, you would see it contains entvars_t *pev, so from that, you can get easily the name.
__________________

Last edited by Arkshine; 05-03-2012 at 15:14.
Arkshine is offline