diff options
author | Tuck Therebelos <snares@users.sourceforge.net> | 2010-05-06 22:32:54 +0400 |
---|---|---|
committer | Tuck Therebelos <snares@users.sourceforge.net> | 2010-05-06 22:33:20 +0400 |
commit | 5fe803e46ea270e4f90f7130c8013a193c06db91 (patch) | |
tree | cf0208220e4b724c43e53a331f7f62465a256252 /plugins/bfbc2 | |
parent | ec31de1b25acddc58c696bca767e2315a17986b6 (diff) |
MW2, gmod updates; BFBC2 address fix
Diffstat (limited to 'plugins/bfbc2')
-rw-r--r-- | plugins/bfbc2/bfbc2.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/bfbc2/bfbc2.cpp b/plugins/bfbc2/bfbc2.cpp index e51b48cb3..48f3a9bf9 100644 --- a/plugins/bfbc2/bfbc2.cpp +++ b/plugins/bfbc2/bfbc2.cpp @@ -59,17 +59,17 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa if (! ok) return false; */ - ok = peekProc((BYTE *) 0x01860D00, avatar_pos, 12) && - peekProc((BYTE *) 0x01860CF0, avatar_front, 12) && - peekProc((BYTE *) 0x01860CE0, avatar_top, 12); // && + ok = peekProc((BYTE *) 0x015467C0, avatar_pos, 12) && + peekProc((BYTE *) 0x015467B0, avatar_front, 12) && + peekProc((BYTE *) 0x015467A0, avatar_top, 12); // && //peekProc((BYTE *) 0x0, ccontext, 128); - if (! ok) - return false; - if (avatar_pos[1] == 9999) return true; + if (! ok) + return false; + /* Get context string; in this plugin this will be an ip:port (char 256 bytes) string |