Force client weapons...

..for now.. will probably have to revisit this at some point.
This commit is contained in:
Simon committed 2019-08-01 08:04:10 +01:00
1 parent ba6cc76136
commit 25c1fcdf6b
2 files changed
+4 -1

No files matched your search

@@ -104,7 +104,7 @@ void VRHelper::UpdateGunPosition(struct ref_params_s* pparams)
{
//Incline crowbar a bit closer to natural hand location (not too far, that causes weirdness)
case WEAPON_CROWBAR:
viewent->angles[0] -= (vr_weapon_pitchadjust->value - 20.0f);
viewent->angles[0] += (20.0f - vr_weapon_pitchadjust->value);
break;
//These just need the adjustment removing, they aren't aimed weapons
case WEAPON_HANDGRENADE:
@@ -62,6 +62,9 @@ void VRRenderer::Frame(double time)
gEngfuncs.pfnClientCmd("cl_backspeed 150");
gEngfuncs.pfnClientCmd("cl_sidespeed 150");
gEngfuncs.pfnClientCmd("cl_movespeedkey 3.0");
//Force client weapons
gEngfuncs.pfnClientCmd("cl_lw 1");
}