diff options
author | Tuck Therebelos <snares@users.sourceforge.net> | 2009-11-24 08:21:34 +0300 |
---|---|---|
committer | Tuck Therebelos <snares@users.sourceforge.net> | 2009-11-24 08:21:34 +0300 |
commit | b7bc917c5680e6911011c87dd4c271b778139067 (patch) | |
tree | c1ee834a47fb43df10140cac22efc0571b030c72 /plugins/codmw2 | |
parent | 54a487e6d6cb7d4263837bca9b465ee063198fdd (diff) |
Fix MW2 positional data
Diffstat (limited to 'plugins/codmw2')
-rw-r--r-- | plugins/codmw2/codmw2.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/codmw2/codmw2.cpp b/plugins/codmw2/codmw2.cpp index f851c8d23..ad5cb28d3 100644 --- a/plugins/codmw2/codmw2.cpp +++ b/plugins/codmw2/codmw2.cpp @@ -73,17 +73,17 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa 4 while playing 0 while spectating - This value is used for disabling pa for spectators + This value is used for disabling PA for spectators or people not on a server. */ if (state != 4) return true; // This results in all vectors beeing zero which tells mumble to ignore them. - ok = peekProc((BYTE *) 0x008EA4E0, avatar_pos+2, 4) && //Z - peekProc((BYTE *) 0x008EA4E4, avatar_pos, 4) && //X - peekProc((BYTE *) 0x008EA4E8, avatar_pos+1, 4) && //Y - peekProc((BYTE *) 0x008EA4F0, &viewHor, 4) && //Hor - peekProc((BYTE *) 0x008EA4EC, &viewVer, 4); //Ver + ok = peekProc((BYTE *) 0x008EA528, avatar_pos+2, 4) && //Z + peekProc((BYTE *) 0x008EA52C, avatar_pos, 4) && //X + peekProc((BYTE *) 0x008EA530, avatar_pos+1, 4) && //Y + peekProc((BYTE *) 0x008EA538, &viewHor, 4) && //Hor + peekProc((BYTE *) 0x008EA534, &viewVer, 4); //Ver if (! ok) return false; |