fish-station/Content.Shared/_Sunrise/Jump/SharedJumpSystem.CCvar.cs
ThereDrD 8980a47280
Фикс коллизий (#2489)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-13 21:40:32 +03:00

56 lines
1.5 KiB
C#

namespace Content.Shared._Sunrise.Jump;
public abstract partial class SharedJumpSystem
{
private static bool _enabled;
private static float _deadChance;
private static bool _bunnyHopEnabled;
private static TimeSpan _bunnyHopSpeedBoostWindow;
private static float _bunnyHopSpeedUpPerJump;
private static float _bunnyHopSpeedLimit;
private static float _bunnyHopMinSpeedThreshold;
private void OnClientOptionJumpSound(ClientOptionDisableJumpSoundEvent ev, EntitySessionEventArgs args)
{
if (ev.Disable)
_ignoredRecipients.Add(args.SenderSession);
else
_ignoredRecipients.Remove(args.SenderSession);
}
private static void OnJumpEnableChanged(bool enable)
{
_enabled = enable;
}
private static void OnJumpDeadChanceChanged(float value)
{
_deadChance = value;
}
private static void OnBunnyHopEnableChanged(bool enable)
{
_bunnyHopEnabled = enable;
}
private static void OnBunnyHopMinSpeedThresholdChanged(float value)
{
_bunnyHopMinSpeedThreshold = value;
}
private static void OnBunnyHopSpeedBoostWindowChanged(float value)
{
_bunnyHopSpeedBoostWindow = TimeSpan.FromSeconds(value);
}
private static void OnBunnyHopSpeedUpPerJumpChanged(float value)
{
_bunnyHopSpeedUpPerJump = value;
}
private static void OnBunnyHopSpeedLimitChanged(float value)
{
_bunnyHopSpeedLimit = value;
}
}