diff --git a/Assets/Prefabs/Player/PlayerAdvanced.prefab b/Assets/Prefabs/Player/PlayerAdvanced.prefab index fad7e796f0..8a825e60ea 100644 --- a/Assets/Prefabs/Player/PlayerAdvanced.prefab +++ b/Assets/Prefabs/Player/PlayerAdvanced.prefab @@ -717,7 +717,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 100002} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0.8, z: 0} + m_LocalPosition: {x: 0, y: 0.9, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4832112164805246} @@ -798,11 +798,9 @@ MonoBehaviour: invertMouseY: 0 lockCursor: 1 sensitivity: {x: 1, y: 1} - smoothing: {x: 3, y: 3} sensitivityScale: 1 joystickSensitivityScale: 1 enableMouseLook: 1 - enableSmoothing: 0 simpleCursorLock: 0 characterBody: {fileID: 100000} --- !u!114 &114619655177981728 @@ -855,6 +853,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: isRetroPresenter: 0 + retroClearerCamera: {fileID: 0} --- !u!114 &1573166380 MonoBehaviour: m_ObjectHideFlags: 0 @@ -913,7 +912,9 @@ MonoBehaviour: m_ShowCustomSorter: 0 breakBeforeColorGrading: 0 m_BeforeTransparentBundles: [] - m_BeforeStackBundles: [] + m_BeforeStackBundles: + - assemblyQualifiedName: ColorBoost, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null m_AfterStackBundles: [] --- !u!1 &100004 GameObject: diff --git a/Assets/Scripts/Game/Player/PlayerHeightChanger.cs b/Assets/Scripts/Game/Player/PlayerHeightChanger.cs index a35fe6b079..958f5045e4 100644 --- a/Assets/Scripts/Game/Player/PlayerHeightChanger.cs +++ b/Assets/Scripts/Game/Player/PlayerHeightChanger.cs @@ -107,9 +107,9 @@ private void Start() mainCamera = GameManager.Instance.MainCamera; levitateMotor = GetComponent(); climbingMotor = GetComponent(); - camSwimLevel = controllerSwimHeight / 2f; - camCrouchLevel = controllerCrouchHeight / 2f; - camStandLevel = controllerStandingHeight / 2f; + camSwimLevel = controllerSwimHeight / 2f - eyeHeight; + camCrouchLevel = controllerCrouchHeight / 2f - eyeHeight; + camStandLevel = controllerStandingHeight / 2f - eyeHeight; camRideLevel = controllerRideHeight / 2f - eyeHeight; //camSwimToCrouchDist = (controllerCrouchHeight - controllerSwimHeight) / 2f; camCrouchToStandDist = (controllerStandingHeight - controllerCrouchHeight) / 2f; @@ -475,17 +475,9 @@ private float ControllerHeightChange(float heightChange) bool dismounting = (heightAction == HeightChangeAction.DoDismounting); bool mounting = (heightAction == HeightChangeAction.DoMounting); controller.height = GetNearbyFloat(controller.height + heightChange); - float eyeChange = 0; - if (GameManager.Instance.PlayerMotor.OnExteriorWater != PlayerMotor.OnExteriorWaterMethod.Swimming) - { - if (dismounting) - eyeChange = -1 * eyeHeight; - else if (mounting) - eyeChange = eyeHeight; - } - controller.transform.position += new Vector3(0, heightChange / 2 + eyeChange); + controller.transform.position += new Vector3(0, heightChange / 2f); - return controller.height / 2 + eyeChange; + return controller.height / 2f; } ///