/// <summary> /// Default cover settings. /// </summary> public static CoverSettings Default() { var settings = new CoverSettings(); settings.CanUseCorners = true; settings.TallThreshold = 1.1f; settings.LowCapsuleHeight = 0.75f; 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(1, 0, 0); settings.Update = CoverUpdateSettings.Default(); settings.Angles = CoverAngleSettings.Default(); return(settings); }
/// <summary> /// Default angle settings for a character. /// </summary> public static CoverAngleSettings Default() { var settings = new CoverAngleSettings(); settings.Front = 140; settings.LowCornerFront = 90; 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(70, 40); return(settings); }