mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-24 21:41:23 +00:00
smoothen crosshairs when attached to bone
removed bobbing and jittering while the crosshair origin is set to use a joint on the player model (pm_crosshairorigin 1). Was very noticeable while looking at steps.
This commit is contained in:
parent
d903e48819
commit
83a1d2a83d
1 changed files with 1 additions and 1 deletions
|
@ -8924,7 +8924,7 @@ void idPlayer::CalculateFirstPersonView( void ) {
|
|||
|
||||
jointHandle_t joint = animator.GetJointHandle( "SHOTGUN_ATTACHER" ); //now set to an actual joint on the player model Revility 2018. This moves the line to draw the crosshair closer to the weapon.
|
||||
animator.GetJointTransform( joint, gameLocal.time, origin, axis );
|
||||
firstPersonViewOrigin = ( origin + modelOffset ) * ( viewAxis * physicsObj.GetGravityAxis() ) + physicsObj.GetOrigin() + viewBob;
|
||||
firstPersonViewOrigin = ( origin + modelOffset ) * ( viewAxis * physicsObj.GetGravityAxis() ) + physicsObj.GetOrigin(); // + viewBob; Rev 2018
|
||||
firstPersonViewAxis = renderView->viewaxis; //changed to the axis of the camera and not the bone. Revility 2018
|
||||
} else {
|
||||
// offset for local bobbing and kicks
|
||||
|
|
Loading…
Reference in a new issue