Author: ZluskeN
Author Website:

Requirements: Community Base addons A3

Version: 0.44
Signed: Yes, serverkey included

Short description: This mod adds a surrender mechanic for the AI. If a unit is fleeing and the closest enemy is closer than his closest friend, the unit will surrender.

Date: 2021-02-12 17:59


Comments: (0)
Rating:



 







ZluskeN Hors de combat

by
ZluskeN


Description:
This mod adds a surrender mechanic for the AI. If a unit is fleeing and the closest enemy (that he knows of) is closer than his closest friend, the unit will surrender. A wounded enemy will also surrender if he is surrounded by enemy. I also included a mechanic for making AI disembark from vehicles if they have enemy within 50 meters.


Installation:
To install ZluskeN Hors de combat you should use modfolders to keep it seperate from the official game content to prevent issues.
With Arma 3 you can use different ways to set up your modfolders to use custom content you have downloaded.
Please visit the Arma 3 Mod install instructions page for more information about using custom mods and addons in Arma 3.


Included files:
zsn_surrender.pbo


Changelog: (27-11-2020 - updated as it happens, displayed in news once every two months)
0.44
- added a setting to set max instances of surrender loops, if you have performance issues, try lowering this
- Script no longer runs for civilians

0.43
Added configurable settings
Fixed bug that made players perpetual captives when downed
removed all usage of findnearestenemy, replaced with custom function

0.42
0.41
- Moved the handgun switching function to my "clientside scripts mod"
- Downed enemies will now drop their weapons, they will also no longer be fired upon by AI,

0.40
Fixed "undefined variable in expression _ms, file fn_surrender_cycle.sqf, line 23" bug

0.39
Tweaked Surrender Cycle

0.38
Optimized performance
Moved AI Tweaks to Clientside mod

0.37
- Removed unconsciousness handler (moved some functionality to clientside scripts instead)

0.36
Extended "surrender range"
Trying out CBA Eventhandlers for handling unconscious units

0.35
Tweaked Knowsabout value

0.34
Fixed a bug when crew leave air vehicles

0.33
0.32
Removed ACE Dependency
Added CBA Dependency
Improved weapon drop script

0.31
- Removed Downed and Medicloop functions
- Removed Damage Eventhandler
- Replaced a while loop with waitUntil

0.30
Removed reference to an old function

0.29
I've made lots of litttle tweaks over the past montch, don't remember them all.
Anyway it should run much smoother now, and be compatible with new ACE

0.28
Added missing bikey file

0.27
Too many changes to list, the script is heavily optimized and should now work better an have less impact on servers.
Still to do is to add an option to disable "downed" enemies

0.26
- Went back to scheduled environment

0.25
Basically Everything's been rewritten to hopefully make the mod less taxing (and more reliable).
Much of the ACE dependancy has been removed (not all though so ACE is still a requirement).
New functionality includes AI medics automatically healing downed units even if they are enemy (at which point they will surrender).

0.24
- Removed the wounded event

0.23
Script now runs in an unscheduled environment

0.22
Found a new bis function to check if an AI detects enemies which should make the script a little faster

0.21
Removed some random number generation

0.20
Fixed a bug that would prevent players entering zeus mode in some cases
Added in my addarsenal script

0.19
Fixed error in earlier fix and tested it, It should actually work now

0.18
- Added an additional check to make sure the script only runs on man-class units when spawned by zeus

0.17
Script significantly optimized and stabilized

0.16
Added in the other kind of 'Hors de Combat', AI can now be downed and incapacitated. If you give a downed enemy medical aid they will surrender.

0.15
Script now uses CBA_fnc_players to detect wheter a unit is player controlled or not before triggering the surrender.
Hopefully it should prevent players from being surrendered when their guy panics

0.14
0.13
v0.12
Script now limited to run on no more than 48 units at a time, which should fix the stuttering problems.

v0.11
- AI will now put away handguns in Careless mode as well
- Intervals between checks are now randomized, which should make the script run much smoother

v0.10
- Modified the "holster sidearm" function (experimental)

v0.9
v0.8
Removed - the function for making unconscious units surrender. It just would not work.
They will still surrender if you give them medical aid or restrain them while they are unconscious.

v0.7
Added a second script that makes ai with handguns put them away when in "safe" mode (requested)

v0.6
More Optimization

v0.5
Optimized script

v0.4
Optimized script

v0.3
Updated with mod.cpp

v0.2
Fixed odd behaviour from tank crews, they will now only disembark to surrender

v0.1



- Community Base addons A3


Steam Workshop:
- Subscribe




Enable javascript to be able to download from Armaholic please!