Quote:
Originally Posted by dietcoke
Thanks for the reply. How do I create an instance/get the address of CTFGameStats ?
|
It's a global singleton, so the easiest way would be to look at anything that calls a function on
CTFGameStats.
On Windows, you can look at the
CTFPlayer::RemoveNemesisRelationships() function (which has a unique string) and read the absolute offset from where it gets moved into the
ecx register before calling into
CTFGameStats::ResetKillHistory().
On Linux / Mac you should be able to use the
@CTF_GameStats symbol as the signature (
CTF_GameStats is the name of the singleton).
Regardless of platform, you'll need
the gameconfig address mechanism with
GameConfGetAddress().
__________________