- added pitch adjust to offhand weapon

This commit is contained in:
Emanuele Disco 2021-10-05 14:48:58 +09:00
parent b0b7a36d46
commit 72feffbbef

View file

@ -189,6 +189,7 @@ void HandleInput_Default( int control_scheme, ovrInputStateGamepad *pFootTrackin
offhandoffset[2] = v[0]; offhandoffset[2] = v[0];
vec3_t rotation = {0}; vec3_t rotation = {0};
rotation[PITCH] = vr_weapon_pitchadjust;
QuatToYawPitchRoll(pOffTracking->HeadPose.Pose.Orientation, rotation, offhandangles); QuatToYawPitchRoll(pOffTracking->HeadPose.Pose.Orientation, rotation, offhandangles);
if (vr_moveuseoffhand) { if (vr_moveuseoffhand) {