namespace EvilEngine.Host.Gait; public static class GaitSlots { public const string Idle = "idle"; public const string Walk = "walk"; public const string Run = "run"; public const string CrouchIdle = "crouch.idle"; public const string CrouchWalk = "crouch.walk"; public const string Jump = "jump"; public const string Swim = "swim"; public const string Landing = "gesture.land"; public const string Noclip = "gesture.noclip"; } public static class GaitParameters { public const string MoveX = "move_x"; public const string MoveY = "move_y"; public const string AimYaw = "aim_yaw"; public const string AimPitch = "aim_pitch"; public const string HeadYaw = "head_yaw"; public const string HeadPitch = "head_pitch"; } public sealed record GaitRules { public static GaitRules Standard { get; } = new(); public double MovingSpeed { get; init; } = 0.0127; public double RunningSpeed { get; init; } = 3.81; public double VaultSpeed { get; init; } = 25.4; public double JumpLanding { get; init; } = 0.2; public int SwimmingWater { get; init; } = 2; public double RateSpeed { get; init; } = 0.00508; public double FastestRate { get; init; } = 2; public double SwimmingRate { get; init; } = 0.5; public double VaultRate { get; init; } = 0.1; public double StillTurn { get; init; } = 45; public double TurnRate { get; init; } = 12; public double SlowestTurn { get; init; } = 7.2; public double FastestTurn { get; init; } = 720; public double YawOrigin { get; init; } = -180; public double Fade { get; init; } = 0.2; public int LandingSlot { get; init; } = 2; public int NoclipSlot { get; init; } = 6; public IReadOnlyDictionary Fallbacks { get; init; } = new Dictionary { [GaitSlots.Run] = GaitSlots.Walk, [GaitSlots.Walk] = GaitSlots.Idle, [GaitSlots.CrouchWalk] = GaitSlots.CrouchIdle, [GaitSlots.CrouchIdle] = GaitSlots.Idle, [GaitSlots.Jump] = GaitSlots.Idle, [GaitSlots.Swim] = GaitSlots.Idle }; }