Remove "jump speed" setting

This commit is contained in:
in0finite 2019-06-23 01:43:18 +02:00
parent dedfd7d75a
commit 9fbd976388
3 changed files with 2 additions and 12 deletions

View file

@ -41,8 +41,6 @@ namespace SanAndreasUnity.Behaviours
public CharacterController characterController { get; private set; }
public float jumpSpeed = 8.0f;
[SerializeField] private float m_cameraDistance = 3f;
public float CameraDistance { get { return m_cameraDistance; } set { m_cameraDistance = value; } }

View file

@ -7,14 +7,6 @@ namespace SanAndreasUnity.Settings {
public class PlayerSettings : MonoBehaviour {
OptionsWindow.FloatInput m_jumpSpeedInput = new OptionsWindow.FloatInput() {
description = "Jump speed",
minValue = 3,
maxValue = 30,
isAvailable = () => Ped.Instance != null,
getValue = () => Ped.Instance.jumpSpeed,
setValue = (value) => { Ped.Instance.jumpSpeed = value; },
};
OptionsWindow.FloatInput m_turnSpeedInput = new OptionsWindow.FloatInput() {
description = "Turn speed",
minValue = 3,
@ -59,7 +51,7 @@ namespace SanAndreasUnity.Settings {
void Awake ()
{
OptionsWindow.RegisterInputs ("PLAYER", m_jumpSpeedInput, m_turnSpeedInput, m_enterVehicleRadiusInput,
OptionsWindow.RegisterInputs ("PLAYER", m_turnSpeedInput, m_enterVehicleRadiusInput,
m_showSpeedometerInput, m_mouseSensitivityXInput, m_mouseSensitivityYInput);
}

View file

@ -22,7 +22,7 @@
- Make all settings persistent
- Add option to change fixed delta time
- Add option to change fixed delta time ?
- Crouching: adjust camera aim offset ? ;