Updated fall damage setting name and description

This commit is contained in:
Terkoiz 2023-02-21 22:26:52 +02:00
parent d96819d359
commit 04b65cef3f
2 changed files with 10 additions and 10 deletions

View File

@ -64,9 +64,9 @@ namespace Terkoiz.Freecam
MovePlayerToCamera(); MovePlayerToCamera();
} }
if (_fallDamageToggle != FreecamPlugin.FallDamageToggle.Value) if (_fallDamageToggle != FreecamPlugin.DisableFallDamage.Value)
{ {
_fallDamageToggle = ToggleFallDamage(FreecamPlugin.FallDamageToggle.Value); _fallDamageToggle = ToggleFallDamage(FreecamPlugin.DisableFallDamage.Value);
} }
} }

View File

@ -18,7 +18,6 @@ namespace Terkoiz.Freecam
internal static ConfigEntry<KeyboardShortcut> TeleportToCamera; internal static ConfigEntry<KeyboardShortcut> TeleportToCamera;
internal static ConfigEntry<KeyboardShortcut> ToggleUi; internal static ConfigEntry<KeyboardShortcut> ToggleUi;
// Camera settings config entries // Camera settings config entries
private const string CameraSettingsSectionName = "CameraSettings"; private const string CameraSettingsSectionName = "CameraSettings";
internal static ConfigEntry<float> CameraMoveSpeed; internal static ConfigEntry<float> CameraMoveSpeed;
@ -27,19 +26,20 @@ namespace Terkoiz.Freecam
internal static ConfigEntry<float> CameraZoomSpeed; internal static ConfigEntry<float> CameraZoomSpeed;
internal static ConfigEntry<float> CameraFastZoomSpeed; internal static ConfigEntry<float> CameraFastZoomSpeed;
// General toggles
private const string TogglesSectionName = "Toggles"; private const string TogglesSectionName = "Toggles";
internal static ConfigEntry<bool> CameraHeightMovement; internal static ConfigEntry<bool> CameraHeightMovement;
internal static ConfigEntry<bool> CameraMousewheelZoom; internal static ConfigEntry<bool> CameraMousewheelZoom;
internal static ConfigEntry<bool> CameraRememberLastPosition; internal static ConfigEntry<bool> CameraRememberLastPosition;
public static ConfigEntry<bool> FallDamageToggle; internal static ConfigEntry<bool> DisableFallDamage;
[UsedImplicitly] [UsedImplicitly]
internal void Start() internal void Start()
{ {
new FreecamPatch().Enable();
Logger = base.Logger; Logger = base.Logger;
InitConfiguration(); InitConfiguration();
new FreecamPatch().Enable();
} }
private void InitConfiguration() private void InitConfiguration()
@ -113,7 +113,7 @@ namespace Terkoiz.Freecam
TogglesSectionName, TogglesSectionName,
"CameraMousewheelZoom", "CameraMousewheelZoom",
true, true,
"Enables or disables camera movement on mousewheel scroll. Just in case you find it annoying."); "Enables or disables camera movement on mousewheel scroll. Just in case you find it annoying and want that disabled.");
CameraRememberLastPosition = Config.Bind( CameraRememberLastPosition = Config.Bind(
TogglesSectionName, TogglesSectionName,
@ -121,11 +121,11 @@ namespace Terkoiz.Freecam
false, false,
"If enabled, returning to Freecam mode will put the camera to it's last position which was saved when exiting Freecam mode."); "If enabled, returning to Freecam mode will put the camera to it's last position which was saved when exiting Freecam mode.");
FallDamageToggle = Config.Bind( DisableFallDamage = Config.Bind(
TogglesSectionName, TogglesSectionName,
"FallHeightToggle", "DisableFallDamage",
true, true,
"If enabled, will disable all fall damage for the player."); "If enabled, will prevent fall damage for the player. Highly recommended to leave this enabled if using TeleportToCamera.");
} }
} }
} }