Closed johnr14 closed 6 years ago
Sorry, that should be idealWeapon.get() instead of idealWeapon. My bug. Good on Linux for catching it.
common->Printf( " idealWeapon = %d, weaponSwitchTime (unused?) = %dms\n", idealWeapon.get(), weaponSwitchTime - gameLocal.time );
I keep forgetting that idealWeapon is a "predicted value" and not a normal integer like currentWeapon is. I don't remember whether it is .get() or .Get(), but it should be one of those two.
It compiled with .Get() ! But it is not linking ... Missing openvr lib.. and Sys_SetRumble error. I will open an other issue #288 for that.
Thanks
I get the following error on compile :
cmake version 3.12.0 gcc version 8.2.1 20180831 [gcc-8-branch revision 264010] (SUSE Linux)
My skills are limited as I've forgotten all about C++. Sorry I can't figure it myself.
Also on opensuse, I did the following to be able to build :
and downloaded OpenVR from Valve, but had to move the files in openvr to OpenVR to make it work (case sensitive in linux).