This Rust plugin warns helicopter pilots when flying too close to active sam sites, helping them avoid getting shot down. It checks the pilot's heading and speed and only alerts when they're actually flying toward a sam, not just nearby. Works with minicopters, scrap transport helis, and any other flyable helicopters.
Permissions
samrangealert.use
- Required for a player to receive sam alerts while flying.
Configuration
JSON:
{
"Version": "1.0.0",
"Scan Interval Seconds": 0.25,
"Early Warning Range (outer)": 420.0,
"Danger Zone Radius (actual sam range approx)": 350.0,
"Heading Tolerance Degrees (must be moving roughly toward sam)": 100.0,
"Alert Only If Sam Is Powered": true,
"Alert Only If Sam Has Ammo": true,
"Ignore Sams In Defender Mode": true,
"Repeat Alert Delay Seconds": 3.0,
"Enable Toast Notifications": true,
"Also Send Chat Alerts": false
}
Scan Interval Seconds
- How often to check each helicopter's position, in seconds.Early Warning Range
- Distance where a blue warning is shown if the pilot is flying towards a sam site. This gives players a chance to turn around before danger.Danger Zone Radius
- The range where the sam is most likely to engage. Once the heli enters this radius, a red danger alert is shown.Heading Tolerance Degrees
- How directly the pilot must be flying toward the sam for a warning to show. Lower values mean they must be flying straight at it, higher values are more forgiving.Alert Only If Sam Is Powered
- If true, only powered sams will be considered for alerts. Turn off if you want all sams to be considered regardless of power.Alert Only If Sam Has Ammo
- If true, only sams that actually have rockets loaded will trigger warnings. Helps avoid spamming players when the sams can't shoot anyway.Ignore Sams In Defender Mode
- If true, ignores sams that are temporarily in defender mode.Repeat Alert Delay Seconds
- Sets a cooldown per player between alerts, to avoid constant spam while flying.Enable Toast Notifications
- If true, alerts show as on-screen toasts (gametip).Also Send Chat Alerts
- If true, sends the warning text to chat in addition to the toast HUD popup.
Localization
JSON:
{
"Warn.Outer": "Sam ahead {0}m. Change course!",
"Warn.Danger": "<color=#ff5555>WARNING:</color> You are in Sam range ({0}m)!"
}