mirror of
https://github.com/stafel/cccm-alternate-destination.git
synced 2026-11-05 14:07:04 +00:00
checkpoint chalie's cruise missile
- C# 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| .github/workflows | ||
| AlteredDestination.Tests | ||
| Logic | ||
| ref | ||
| .gitignore | ||
| AlteredDestination.csproj | ||
| nuget.config | ||
| plugin.cs | ||
| README.md | ||
Checkpoint Charlie's Cruise Missile (Alternate destination)
Alternate destination missile navigation mod with configurable cruise and terminal behavior.
Features
- Alternate waypoint routing for cruise missiles.
- Midpoint smoothing between waypoints for less abrupt turns.
- Maximum bend angle enforcement to prevent sharp turns.
- Final lead-in waypoint generation toward target with optional random wobble.
- Deterministic spread offset so missiles aimed at the same point do not stack.
- Optional terminal jinking and top-attack popup behaviors.
- Optional flight path visualization.
- Configurable debug logging.
Configuration options
All options are under the General section:
Cruise Altitude(float, default5, range3–15) – Target radar altitude for cruise missiles in meters. Lower altitude increases the risk of terrain collision.Minimum Altitude(float, default3, range1–3) – Minimum radar altitude in meters before an emergency pullup.Spread Radius(float, default15) – Radius in meters to spread out missiles targeting the same location to prevent stacking.Jinking maneuver in terminal approach(bool, defaultfalse) – Enable random jinking during terminal approach.Top attack popup maneuver in terminal approach(bool, defaultfalse) – Enable top-attack popup maneuver during terminal approach.Waypoint steps(int, default5, range1–20) – Number of smoothing steps to apply on a waypoint.Wobble activation distance(float, default5000, range0–50000) – Enable random wobble when midpoint distance to target falls below this threshold.Wobble range(int, default500, range0–5000) – Random wobble offset range on X/Z while leading in (generated between -range and +range).Max bend angle(double, default40, range0–180) – Maximum angle between waypoints compared to a straight line in degrees. Everything over this will get smoothed out.Display flight path(bool, defaultfalse) – Display the flight path of the missile.Debug logging(bool, defaulttrue) – Enable debug logging output.
Unit tests
Run from repository root:
dotnet test AlteredDestination.Tests/AlteredDestination.Tests.csproj --configuration Release