ALPHADevlog #3 — Smarter Combat AI & Empire Raids
Hello Sector Commanders,
This week we focused on improving combat AI and battlefield behavior. Ships now choose tactics more intelligently, coordinate their attacks, and AI empires are capable of launching organized raid fleets.
Smarter Ship Combat Behavior
Ships have learned to fight more intelligently. Instead of flying directly toward the enemy, ships now adapt their behavior depending on their weapons, maneuverability, and current condition.
Depending on the situation, ships may:
- Orbit around their target while maintaining optimal firing distance
- Perform quick attack runs followed by disengagement
- Retreat along a curved path while keeping their weapons aimed at the enemy
- Attempt flanking maneuvers to attack from the side
These changes make battles feel much more dynamic and believable.
Threat Envelope System
Ships now evaluate the tactical situation before committing to a fight. A new Threat Envelope system analyzes several factors:
- Number of nearby allies vs enemies
- Weapon ranges on both sides
- Local battlefield conditions
Based on this evaluation, ships decide whether to:
- Attack aggressively
- Hold their position
- Withdraw from combat
This prevents ships from blindly charging into unfavorable fights.
Empire Raid Fleets
AI empires can now organize raid fleets. Empires may dispatch small strike groups of 2–4 ships to attack hostile systems. These fleets engage the enemy until their losses become too high. When that happens, they regroup at a rally point and return to their home system.
To prevent constant attacks, each system receives a temporary protection period after a raid.
Target Coordination
Ships belonging to the same empire now share targeting information. Instead of every ship selecting a random target, fleets can now coordinate their fire and focus on the same enemy ships.
This significantly improves fleet effectiveness and makes battles easier to read.
Performance Improvements
Several performance optimizations were also implemented. Ships no longer recalculate targeting every frame. Instead, target evaluation happens periodically every few seconds.
Additionally, newly spawned ships receive a short grace period before entering combat. These changes reduce CPU load during larger battles while keeping combat behavior responsive.
AI Combat Behavior in Action
In this clip you can see a potential combat scenario: ships of the United Earth Remnants (UER) engaging a pirate fleet.
Thank you for following the development of NGC-404. More updates are coming soon as we continue improving AI behavior, fleet combat, and large-scale battles across the sector.