diff options
author | Tuck Therebelos <snares@users.sourceforge.net> | 2009-12-04 23:36:09 +0300 |
---|---|---|
committer | Tuck Therebelos <snares@users.sourceforge.net> | 2009-12-04 23:36:32 +0300 |
commit | e77beae648db6e570ea3331f6468ca12de7d42a4 (patch) | |
tree | e5b48746ede2b9e352b9c0673baaf8c44fb90a73 /plugins/cod4 | |
parent | acb7642f45e3dcead1cfd8448457ce433b3f0bbd (diff) |
AOC, CSS string updates; Dys, Insurgenccy, TF2 IP:Port context support. DODS IP:Port+Team context support; CoD4 context fix; Manual plugin shortname fix
Diffstat (limited to 'plugins/cod4')
-rw-r--r-- | plugins/cod4/cod4.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/cod4/cod4.cpp b/plugins/cod4/cod4.cpp index c36398028..669ecae70 100644 --- a/plugins/cod4/cod4.cpp +++ b/plugins/cod4/cod4.cpp @@ -38,7 +38,7 @@ static bool peekProc(VOID *base, VOID *dest, SIZE_T len) { } static void about(HWND h) { - ::MessageBox(h, L"Reads audio position information from COD4 (v 1.7.568)", L"Mumble COD4 Plugin", MB_OK); + ::MessageBox(h, L"Reads audio position information from COD4 (v 1.7.568). IP:Port context without team discriminator.", L"Mumble COD4 Plugin", MB_OK); } static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, float *camera_pos, float *camera_front, float *camera_top, std::string &context, std::wstring &identity) { @@ -84,15 +84,16 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa peekProc((BYTE *) 0x0072AFF0, avatar_pos+1, 4) && //Y peekProc((BYTE *) 0x0072AF3C, &viewHor, 4) && //Hor peekProc((BYTE *) 0x0072AF38, &viewVer, 4) && //Ver - peekProc((BYTE *) 0x01410BE8, ccontext, 256); + peekProc((BYTE *) 0x00956D88, ccontext, 256); if (! ok) return false; /* - Get context string, in this plugin this will be an + Get context string; in this plugin this will be an ip:port (char 256 bytes) string */ + ccontext[255] = 0; context = std::string(ccontext); // Scale Coordinates |