Yep, this is what I done, its in its own function and it returns the counter value.
function GetMouseWheel()
if g_MouseWheel > 0 then
mousewheel_counter = mousewheel_counter + 1
elseif g_MouseWheel < 0 then
mousewheel_counter = mousewheel_counter - 1
end
-- resets counter back to zero
if g_MouseClick == 4 then
mousewheel_counter = 0
end
return mousewheel_counter;
end
Has anyone had any luck working out the g_PlayerGunMode values?
Desktop: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 CPUs), ~3.6GHz, Windows 8.1 64-bit, 16 GB Ram, NVIDIA GeForce GTX 750 Ti, Display Memory: 4018 MB. Resolution 1360x768, Passmark 3528.
Laptop: Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)