Extended Morale System
Bored of the AI always fighting to the last man, with no regard of their own safety? I know I was.
This mod adds a level of realism to the AI behaviour. The AI will now flee, surrender or make a fighting retreat when morale gets too low. Surrendered enemies will also react to being fired upon by running away and cowering. Make sure to handcuff any surrendered enemies as if they’re left alone they might rejoin the fight.
Check out the addon settings for more information.
- New AI behaviours: fleeing, surrendering, cowering and fighting retreat
- Surrendered units may turn hostile if not monitored or handcuffed
- Cowering and surrendered units will flee if shot at
- Adds cable ties to each unit. No extra scripting needed
- Morale check is dependent on squad skill. Higher skilled squads are less likely to have negative outcomes on morale checks
- Players can rally surrendered, cowering or fleeing allies, having them join their squad
- Automatic cleanup of fleeing and surrendered units when no players are nearby and within line of sight
- Should work in both singleplayer and multiplayer
CBA_A3
ACE3
LAMBS Danger (Will work without this, but may result in weird behaviours)
Okay, so you’re interested in how this works.
Each AI group gets sorted into one of five skill levels depending on their general skill.
The general skill thresholds are as follows:
VLOW: less than 30
LOW: 30 to 49
NORMAL: 50 to 64
HIGH: 65 to 84
VHIGH: 85 and up
Each skill level has its own settings for morale behaviours and actions.
For example, lets look at the NORMAL skill level settings:
The default casualty threshold is set to 50%, I.E. half of the units in the group have to be killed before the group starts taking morale checks. Note that groups with a single living unit will always take morale checks.
When taking a morale check the group has a 35% chance to pass, and a 35% chance to do a fighting retreat action. This adds up to a base chance of 70% for a positive action, and the remaining 30% to take a negative action (flee or surrender). Before any action is decided upon we apply the morale debuff, so depending on how hard the group was hit their 70% chance of a positive outcome might drop quite a bit. When deciding on a negative action the distance to the nearest enemy is considered. A group is much more likely to surrender than flee if the enemy is closing in and vice versa.
After a surrender action each unit in the group has a chance to be assigned as ‘potentially hostile’, depending on the group skill level. If a potentially hostile unit is left alone without being handcuffed or monitored they will pick up a nearby weapon and rejoin the fight.
That’s pretty much the gist of it. Most of these options can be configured in the addon settings. Let me know if anything is unclear. For a more detailed look at how stuff works check out the code at GitHub[github.com].
ARMA 3 modding is just an awful time, so this mod probably won’t see much in the way of updates. Feel free to do whatever you please with the codebase. Bang it, eat it, grind it up into little pieces, throw it in the river, just give me a shoutout.