Legion - AEGIS

by Jawley
Legion - AEGIS

Summary

Dynamic zone base protection tailed for the Legion servers.

Description

AEGIS is a dynamic Main Operating Base (MOB) protection system for Arma Reforger. It enforces faction-controlled safe zones by auto-detecting bases, generating configurable boundary shapes, rendering holographic force-field walls, and punishing violating players with a countdown kill system. 

\\\ Keep into consideration - AEGIS is currently WIP and may contain bugs.

Features

Boundary Generation
- Editor-placed spline boundary entities for hand-crafted zones
- Auto-generation of zone boundaries around Conflict HQ and standard bases at mission start
- Four shape types: Circle, Organic (randomised), Star (alternating spikes), Blob (smooth noise)
- Configurable radius, vertex count, jitter, smoothing passes, and random seed
- Optional dynamic regeneration on a timer for evolving boundaries
- Three zone types: MOB_PROTECTION (faction-aware), HAZARD (damages all), RESTRICTED (blocks all)
- Per-zone overrides for faction, countdown, wall height, and wall alpha

Crossing the Line
- Server-authoritative player position checks every 0.1 seconds
- Per-player violation countdown with configurable duration
- Kill-on-expiry with automatic cancellation on zone exit
- Punishment Bomber: configurable prefab strikes scattered around violating players
- Up to five bomb prefab slots with randomised interval and scatter radius

The Wall
- Sci-fi holographic barrier rendered each frame via Shape API (no physical mesh required)
- Proximity-based fade-in and fade-out with configurable render and fade distances
- Configurable total height, solid base height, grid cell size, and scanline transparency
- Pulse animation (speed and amplitude), proximity flare boost, and ground glow emitter
- Fresnel transparency effect when looking straight at the wall
- Per-faction vertex marker prefab spawning at zone boundary corners (US, USSR, FIA, Default)

Threat Warnings
- Top-center unified warning banner with fade animation
- Context-aware messages: leaving safe zone, approaching enemy territory, restricted area
- Proximity warning auto-dismiss timer with per-approach reset
- Violation countdown displayed as a second line below the zone label

Zone Map Display
- Filled polygon, diagonal hatching, glowing border, and crisp border per zone
- World-space brick-pattern watermark labels that scale with zoom and hide when too small
- Single large centered faction header per zone (e.g. [US] SAFE ZONE) at true polygon centroid
- All text rendering corrects for engine pivot alignment issues with manual half-width offset
- Float-precision world-to-screen transform eliminates vertex flicker during zoom animation
- Registered to both the fullscreen map and the respawn spawn-selection map

Setup
- JSON config auto-generated at $profile:Legion_Suite/AEGIS_config.json on first run
- Hot-reload without server restart via AEGIS_Config.GetInstance().ReloadFromDisk()
- All settings exposed: violation timing, wall visuals, auto-gen shape, HUD text, bomber, debug
- Standalone activation via modded SCR_BaseGameMode - no manual component placement required

File Association
AEGIS_GameModeComponent.c | Game mode hooks, zone initialization 
AEGIS_Config.c | Configuration defaults and JSON loader 
AEGIS_WallRenderer.c | Shape API wall drawing per frame 
AEGIS_WallManager.c | Physical wall panel prefab spawner 
AEGIS_ZoneManager.c | Zone discovery, auto-generation from bases 
AEGIS_ZoneEntity.c | Zone boundary entity with polygon containment 
AEGIS_ViolationHUD.c | Boundary warning overlay 
AEGIS_MapDisplayComponent.c | Map renderer for zones 
AEGIS_EventSystem.c | Event dispatching 

Configuration
Runtime config at `$profile:Legion_Suite/AEGIS_config.json
AutoGenRadius` | 200 | Radius (m) for auto-generated zone boundaries 
AutoGenShape` | 0 | Shape type: 0=Circle, 1=Organic, 2=Star, 3=Blob 
AutoGenSeed` | 0 | RNG seed (0 = random each restart) 
WallRenderDistance` | 300 | Max distance (m) to render wall panels 
WallFadeStartDistance` | 200 | Distance (m) where wall starts fading 
WallWarningDistance` | 250 | Distance (m) triggering HUD warning

License

Arma Public License (APL)

Version
1.0.26
Game Version
1.6.0.119
Version size
99.69 KB
Downloads
27
Created
08.04.2026
Last Modified
12.04.2026
ID
690EDCD5314A1AF1