mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Disable camera interpolation when going from/to binoculars
This commit is contained in:
parent
6198975bea
commit
2f6114deba
3 changed files with 4 additions and 0 deletions
|
@ -489,6 +489,7 @@ static void SetPlayerOptics(ItemInfo* item)
|
|||
player.Control.Look.IsUsingLasersight = true;
|
||||
player.Inventory.IsBusy = true;
|
||||
|
||||
Camera.DisableInterpolation = true;
|
||||
BinocularOldCamera = Camera.oldType;
|
||||
return;
|
||||
}
|
||||
|
@ -506,6 +507,7 @@ static void SetPlayerOptics(ItemInfo* item)
|
|||
player.Control.Look.IsUsingLasersight = false;
|
||||
player.Inventory.IsBusy = false;
|
||||
|
||||
Camera.DisableInterpolation = true;
|
||||
Camera.type = BinocularOldCamera;
|
||||
Camera.bounce = 0;
|
||||
AlterFOV(LastFOV);
|
||||
|
|
|
@ -958,6 +958,7 @@ void BinocularCamera(ItemInfo* item)
|
|||
player.Inventory.IsBusy = false;
|
||||
|
||||
Camera.type = BinocularOldCamera;
|
||||
Camera.DisableInterpolation = true;
|
||||
Camera.target = LastTarget;
|
||||
AlterFOV(LastFOV);
|
||||
return;
|
||||
|
|
|
@ -2175,6 +2175,7 @@ namespace TEN::Gui
|
|||
(player.Control.IsLow && !IsHeld(In::Crouch))) &&
|
||||
!UseSpotCam && !TrackCameraInit)
|
||||
{
|
||||
Camera.DisableInterpolation = true;
|
||||
player.Control.Look.OpticRange = ANGLE(0.7f);
|
||||
player.Control.Look.IsUsingBinoculars = true;
|
||||
player.Inventory.OldBusy = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue