Keep selector position relative to controller

This commit is contained in:
Simon 2022-03-11 23:09:21 +00:00
parent b5e1628dbf
commit 8939a4f959

View file

@ -2070,6 +2070,7 @@ void CG_DrawHolsteredWeapons( void )
AngleVectors(holsterAngles, holsterForward, holsterRight, holsterUp); AngleVectors(holsterAngles, holsterForward, holsterRight, holsterUp);
VectorCopy(controllerOrigin, holsterOrigin);
VectorCopy(holsterOrigin, beamOrigin); VectorCopy(holsterOrigin, beamOrigin);
VectorMA(holsterOrigin, ((DIST*2.0f)*frac), holsterForward, holsterOrigin); VectorMA(holsterOrigin, ((DIST*2.0f)*frac), holsterForward, holsterOrigin);
VectorCopy(holsterOrigin, selectorOrigin); VectorCopy(holsterOrigin, selectorOrigin);