public static CoverSettings Default() { var settings = new CoverSettings(); settings.CanUseCorners = true; settings.LowCapsuleHeight = 0.75f; settings.LowAimCapsuleHeight = 1.25f; settings.RotationSpeed = 20.0f; settings.EnterDistance = 0.15f; settings.LeaveDistance = 0.25f; settings.PivotSideMargin = 0.5f; settings.CornerAimTriggerDistance = 0.6f; settings.TallSideEnterRadius = 0.15f; settings.TallSideLeaveRadius = 0.05f; settings.TallCornerOffset = 0.25f; settings.LowSideEnterRadius = 0.3f; settings.LowSideLeaveRadius = 0.2f; settings.LowCornerOffset = 0.4f; settings.DirectionChangeDelay = 0.25f; settings.BackDelay = 0.5f; settings.CornerOffset = new Vector3(0.8f, 0, 0); settings.Update = CoverUpdateSettings.Default(); settings.Angles = CoverAngleSettings.Default(); return(settings); }
public static CoverAngleSettings Default() { var settings = new CoverAngleSettings(); settings.Front = 140; settings.LowCornerFront = 90; settings.TallLeftCornerFront = 180; settings.TallRightCornerFront = 120; settings.BackThrow = 120; settings.LowWalkFaceChange = 60; settings.TallBack = new FieldAnglesSustain(20, 30, 1.0f); settings.LowerAim = new SideAngles(-5, 10); settings.LeftCorner = new TriggerAngles(-15, -17); settings.RightCorner = new TriggerAngles(-25, -27); settings.LowAimFaceChange = new SideAngles(0, 20); settings.LowGrenadeFaceChange = new SideAngles(0, 20); settings.TallWallAim = new FaceAngles(40, 20); return(settings); }