diff options
author | Tuck Therebelos <snares@users.sourceforge.net> | 2010-12-20 01:44:22 +0300 |
---|---|---|
committer | Tuck Therebelos <snares@users.sourceforge.net> | 2010-12-20 01:45:47 +0300 |
commit | 120fa9ee1edd5e30f03b16ae864db2b7d45fc23f (patch) | |
tree | f167b49836715deb40a0c700aa93c88cad20e491 /plugins/l4d | |
parent | 4c1e473059b249e5848fcbdd71bc3728d6f90bba (diff) |
Plugin updates for release
Diffstat (limited to 'plugins/l4d')
-rw-r--r-- | plugins/l4d/l4d.cpp | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/plugins/l4d/l4d.cpp b/plugins/l4d/l4d.cpp index adc08d789..c57e7ba97 100644 --- a/plugins/l4d/l4d.cpp +++ b/plugins/l4d/l4d.cpp @@ -31,8 +31,7 @@ #include "../mumble_plugin_win32.h" BYTE *posptr; -BYTE *rotptr; -BYTE *stateptr; +BYTE *rotptr static bool calcout(float *pos, float *rot, float *opos, float *front, float *top) { float h = rot[0]; @@ -72,9 +71,8 @@ static int trylock(const std::multimap<std::wstring, unsigned long long int> &pi if (! initialize(pids, L"left4dead.exe", L"client.dll")) return false; - posptr = pModule + 0x580588; - rotptr = pModule + 0x4FF024; - stateptr = pModule + 0x4F8E34; + posptr = pModule + 0x596DF0; + rotptr = pModule + 0x5943B0; float pos[3]; float rot[3]; @@ -97,14 +95,9 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa float ipos[3], rot[3]; bool ok; - char state; ok = peekProc(posptr, ipos, 12) && - peekProc(rotptr, rot, 12) && - peekProc(stateptr, &state, 1); - - if (state == 0) - return true; // This results in all vectors beeing zero which tells Mumble to ignore them. + peekProc(rotptr, rot, 12); if (ok) { int res = calcout(ipos, rot, avatar_pos, avatar_front, avatar_top); @@ -126,10 +119,10 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa } static const std::wstring longdesc() { - return std::wstring(L"Supports L4D version 4023 only. Supports no fancy stuff."); + return std::wstring(L"Supports L4D version 4364 only. Supports no fancy stuff."); } -static std::wstring description(L"Left 4 Dead (Build 4023)"); +static std::wstring description(L"Left 4 Dead (Build 4364)"); static std::wstring shortname(L"Left 4 Dead"); static int trylock1() { |