diff options
author | Mike <mike@flomp.net> | 2011-12-23 22:05:26 +0400 |
---|---|---|
committer | Mike <mike@flomp.net> | 2011-12-23 22:05:26 +0400 |
commit | 9e8976a6f1d1752820acf0c37cdff774412ff6ea (patch) | |
tree | 052a424db30ef66445b41e0e10f1de0f04612ba2 /plugins/tf2 | |
parent | a45a4dd92cb6ce6cca32d80e39bf69ad3facef74 (diff) |
Update TF2 plugin to build 4785
Diffstat (limited to 'plugins/tf2')
-rwxr-xr-x[-rw-r--r--] | plugins/tf2/tf2.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/tf2/tf2.cpp b/plugins/tf2/tf2.cpp index e94f51caa..37f3c5845 100644..100755 --- a/plugins/tf2/tf2.cpp +++ b/plugins/tf2/tf2.cpp @@ -43,6 +43,8 @@ BYTE *hostptr; host string: engine.dll+0x3D3E94 (ip:port zero-terminated string; localhost:27015 if create a server ingame) ID string: engine.dll+0x54E668 = "DemomanTaunts" (13 characters, text) note that memory addresses in this comment are for example only; the real ones are defined below + + note: the spec_pos console command is rather useful */ static bool calcout(float *pos, float *rot, float *opos, float *front, float *top) { @@ -132,13 +134,13 @@ static int trylock(const std::multimap<std::wstring, unsigned long long int> &pi return false; // Remember addresses for later - posrotptr = pModule + 0x779724; - stateptr = pModule + 0x6F3C54; - hostptr = mod_engine + 0x3DEBA4; + posrotptr = pModule + 0x8D8694; + stateptr = pModule + 0x849284; + hostptr = mod_engine + 0x3EA20C; // Gamecheck char sMagic[13]; - if (!peekProc(mod_engine + 0x5593F8, sMagic) || strncmp("DemomanTaunts", sMagic, sizeof(sMagic))!=0) + if (!peekProc(mod_engine + 0x564C78, sMagic) || strncmp("DemomanTaunts", sMagic, sizeof(sMagic))!=0) return false; // Check if we can get meaningful data from it @@ -156,10 +158,10 @@ static int trylock(const std::multimap<std::wstring, unsigned long long int> &pi } static const std::wstring longdesc() { - return std::wstring(L"Supports TF2 build 4539. No identity support yet."); + return std::wstring(L"Supports TF2 build 4785. No identity support yet."); } -static std::wstring description(L"Team Fortress 2 (Build 4539)"); +static std::wstring description(L"Team Fortress 2 (Build 4785)"); static std::wstring shortname(L"Team Fortress 2"); static int trylock1() { |