diff options
author | Tuck Therebelos <snares@users.sourceforge.net> | 2009-07-05 01:27:09 +0400 |
---|---|---|
committer | Tuck Therebelos <snares@users.sourceforge.net> | 2009-07-05 01:27:28 +0400 |
commit | 606bff760106c9281accb197a965d0b821136eaa (patch) | |
tree | d6f7a7098acdeff6d3b4c69a871d80e10503d6ed /plugins/aoc | |
parent | 29c26d68887a6c6d718a0c72451e66915f08409d (diff) |
CSS, AOC updates
Diffstat (limited to 'plugins/aoc')
-rw-r--r-- | plugins/aoc/aoc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/aoc/aoc.cpp b/plugins/aoc/aoc.cpp index f25d4963b..39ae5f268 100644 --- a/plugins/aoc/aoc.cpp +++ b/plugins/aoc/aoc.cpp @@ -107,6 +107,9 @@ static int trylock() { BYTE *mod2=getModuleAddr(pid, L"server.dll"); if (!mod2) return false; + BYTE *mod3=getModuleAddr(pid, L"engine.dll"); + if (!mod3) + return false; h=OpenProcess(PROCESS_VM_READ, false, pid); if (!h) return false; @@ -118,6 +121,7 @@ static int trylock() { ID string: client.dll+0xb2e6e0 = "ageofchivalry" (13 characters, text) spawn state: client.dll+0xb33ae8 (0 when at main menu, 1 when at team selection, 2 when not spawned, 6 when spawned on red team, 7 when spawned on blue team, byte) + context offsets: mod2 + 0x653338 = team info; mod3 + 0x5acd40 = ip:port */ char sMagic[13]; if (!peekProc(mod + 0xb2e6e0, sMagic, 13) || strncmp("ageofchivalry", sMagic, 13)!=0) @@ -128,6 +132,7 @@ static int trylock() { rotptr = mod + 0xb73b90; stateptr = mod + 0xb33ae8; ccontextptr = mod2 + 0x653338; + ccontextptr = mod3 + 0x5acd40; float pos[3]; float rot[3]; |