Skip to content
Permalink
Browse files

Merge PR #2942: plugins/ql: Fix spectator state offset

  • Loading branch information...
mkrautz committed Mar 14, 2017
2 parents 47be309 + 57e3d90 commit bbceaa6fa67cd3b0eb75cd8a6ba8f1c4d1d2eb87
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/ql/ql.cpp
@@ -22,7 +22,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa

// Peekproc and assign game addresses to our containers, so we can retrieve positional data
ok = peekProc(pModule + 0x0188248, &state, 1) && // Magical state value: 1 when in-game and 0 when in main menu.
peekProc(pModule + 0x1041C68, &spec, 1) && // Spectator state value: 1 when spectating and 0 when playing.
peekProc(pModule + 0x1041CAC, &spec, 1) && // Spectator state value: 1 when spectating and 0 when playing.
peekProc(pModule + 0x0EB8950, avatar_pos_corrector, 12) && // Avatar Position values (X, Z and Y, respectively).
peekProc(pModule + 0x0E6093C, camera_pos_corrector, 12) && // Camera Position values (X, Z and Y, respectively).
peekProc(pModule + 0x0EC5B50, avatar_front_corrector, 12) && // Avatar front values (X, Z and Y, respectively).

0 comments on commit bbceaa6

Please sign in to comment.
You can’t perform that action at this time.