Addendum to the surrender mode: a flag is needed to exempt an unit from surrender calculations. Some units will never surrender & never trigger surrender, but should surrender once their masters do (drones, reapers). Not sure how this will work out, though (I can see funny situations arising), so I'd appreciate input.
So, if I understand correctly, these units are basically auto-surrendered from the start already (only waiting for others to surrender too).
New attribute on unit level introduced: autoSurrender, default false.
"autoSurrender: true" also sets the "canSurrender" to true... otherwise it makes no sense... so no need to define canSurrender, if you already defined autoSurrender.
Also, this new attribute works for all surrender modes different than 0... currently 1, 2 and 3.
units:
- type: STR_DRONE
autoSurrender: true
- type: STR_REAPER
autoSurrender: true
Btw. why not post directly in the Surrender thread?
Also, surrender mode = 3 doesn't work properly at the moment (in version 2016-10-27)... the units will surrender properly, but debriefing will ignore them. I will fix that in the next version.
Furthermore, with surrender mode = 3, I cannot distinguish surrendered units from psi-captured units... so both will count as just surrendered for scoring purposes... and I changed the scoring back to vanilla values because of that.