Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TF2 plugin to build 4785 #68

Merged
merged 1 commit into from Dec 23, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 8 additions & 6 deletions plugins/tf2/tf2.cpp 100644 → 100755
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand All @@ -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() {
Expand Down