Summary
Main base protection for Conflict. No spawn camping, no shooting from or into base, and no running home to hide mid-fight. Server-side, fully configurable, and off until you turn it on.
Description
**AWG Safezone – MOB Protection**
Main bases are protected, server-side. No spawn camping, no shooting out of base, and no running home to hide mid-fight.
**In your own MOB**
- You and your vehicles take no damage from outside, at any distance, friendly fire included.
- Anything you fire from inside does no damage. That includes mortars, and stepping out before the shell lands doesn't change that.
- You can still blow yourself up with your own grenade. That one's on you.
**Near the enemy MOB**
- **1 km out:** you get a warning to turn back.
- **500 m out:** a 15 second countdown starts. Still there when it ends, you die.
- Damage you deal from inside that 500 m zone is cancelled.
- Enemy AI that wander in are removed.
**Helicopters**
- A freshly spawned heli can't be shot down on its way out of base.
- That protection ends when it leaves the departure corridor, when its timer runs out, or the moment it attacks.
**Coming back from a fight**
- If you return to base while in combat, you get **no protection for 4 minutes**. Same for the vehicle you're in.
- Jumping into a fresh heli doesn't get you out of it.
Crashes still count. Collision damage is always on.
━━━━━━━━━━━━━━━━━━━━
**CONFIG**
File: `<profile>/AWG_Safezone/config.json`. A default is written on first start. Edits are picked up within about 30 seconds, no restart needed. If the file has a JSON error, the running config is kept and the error is logged.
**General**
- `enabled` (true) – master switch. Set false to turn every rule off without removing the mod.
- `debugLog` (false) – logs one detailed line per damage decision, with everything the rules saw. Turn on only when chasing a bug.
- `runSelfTest` (false) – runs the built-in rule checks at server start and logs passed/failed.
**Rule modes**
Each rule is set on its own to `off`, `passive` or `enforce`. Passive changes nothing in game and only logs what would have happened. Everything ships as `passive`. A typo falls back to `passive` and logs a warning.
- `modeShooterInCore` – nothing fired from inside your own base does damage. Covers guns, mortars, grenades and vehicle weapons.
- `modeIntoCore` – players and vehicles inside their own base take no damage. Also controls the "returned in combat" penalty.
- `modeRing` – the warning and kill zones around an enemy base, and cancels damage dealt from inside the kill zone.
- `modeFresh` – protection for freshly spawned helicopters leaving base.
- `modeAiDelete` – removes enemy AI that enter the kill zone.
**Zones** (metres, measured from the main base; bases are found automatically in Conflict)
- `coreRadius` (175) – the protected base itself. Inside it you are safe and your weapons do no damage.
- `ringRadius` (500) – the kill zone for enemies. Entering starts the countdown.
- `warnRadius` (1000) – enemies get a one-time "turn back" popup here. 0 turns it off. Ignored unless it is larger than the ring.
- `corridorRadius` (1500) – how far a fresh helicopter stays protected after leaving.
- `ringCeiling` (0) – height above ground where the kill zone and warning stop applying, so aircraft can overfly. 0 means no limit.
- `airborneHeight` (5) – height above ground that counts as "taken off" for fresh helicopters.
- `zoneOverrides` – different radii for one faction. Fields: `factionKey`, `coreRadius`, `ringRadius`, `corridorRadius`. Use -1 to keep the global value.
- `customZones` – extra protected zones by coordinate. Fields: `name`, `factionKey`, `x`, `z`, plus the same three radii.
**Timers** (seconds)
- `ringCountdownSeconds` (15) – how long an enemy has to leave the kill zone before being killed.
- `ringResetSeconds` (30) – how long they must stay out before the countdown, and the warning, start fresh. Stepping out briefly does not reset it.
- `hotSeconds` (150) – how long you count as "in combat" after dealing or taking enemy damage outside your base. Every hit restarts it.
- `unsafeSeconds` (240) – if you enter your base while in combat, you get no protection for this long. It is a fixed window: leaving and re-entering does not reset or shorten it. Applies to the vehicle you are in too.
- `coreExitGraceSeconds` (45) – explosives still count as fired from base for this long after you leave it, so you
License
Arma Public License (APL)