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.Control.Look.IsUsingLasersight = true;
|
||||||
player.Inventory.IsBusy = true;
|
player.Inventory.IsBusy = true;
|
||||||
|
|
||||||
|
Camera.DisableInterpolation = true;
|
||||||
BinocularOldCamera = Camera.oldType;
|
BinocularOldCamera = Camera.oldType;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -506,6 +507,7 @@ static void SetPlayerOptics(ItemInfo* item)
|
||||||
player.Control.Look.IsUsingLasersight = false;
|
player.Control.Look.IsUsingLasersight = false;
|
||||||
player.Inventory.IsBusy = false;
|
player.Inventory.IsBusy = false;
|
||||||
|
|
||||||
|
Camera.DisableInterpolation = true;
|
||||||
Camera.type = BinocularOldCamera;
|
Camera.type = BinocularOldCamera;
|
||||||
Camera.bounce = 0;
|
Camera.bounce = 0;
|
||||||
AlterFOV(LastFOV);
|
AlterFOV(LastFOV);
|
||||||
|
|
|
@ -958,6 +958,7 @@ void BinocularCamera(ItemInfo* item)
|
||||||
player.Inventory.IsBusy = false;
|
player.Inventory.IsBusy = false;
|
||||||
|
|
||||||
Camera.type = BinocularOldCamera;
|
Camera.type = BinocularOldCamera;
|
||||||
|
Camera.DisableInterpolation = true;
|
||||||
Camera.target = LastTarget;
|
Camera.target = LastTarget;
|
||||||
AlterFOV(LastFOV);
|
AlterFOV(LastFOV);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -2175,6 +2175,7 @@ namespace TEN::Gui
|
||||||
(player.Control.IsLow && !IsHeld(In::Crouch))) &&
|
(player.Control.IsLow && !IsHeld(In::Crouch))) &&
|
||||||
!UseSpotCam && !TrackCameraInit)
|
!UseSpotCam && !TrackCameraInit)
|
||||||
{
|
{
|
||||||
|
Camera.DisableInterpolation = true;
|
||||||
player.Control.Look.OpticRange = ANGLE(0.7f);
|
player.Control.Look.OpticRange = ANGLE(0.7f);
|
||||||
player.Control.Look.IsUsingBinoculars = true;
|
player.Control.Look.IsUsingBinoculars = true;
|
||||||
player.Inventory.OldBusy = true;
|
player.Inventory.OldBusy = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue