Proposed solution:
- Dead units controlled by player should not disappear when player leaves the game
- This hardcoded behavior should be controllable by mission designer by one of the methods:
1) A simple solution. New value in description.ext which defines if body should disappear when player leaves the game (both when player unit dead or alive, it should just drop dead and remain there so other players can loot it)
2) A flexible solution. New mission event handler which fires when player leaves the game like this and possibly result of this event handler could define if game should follow default (current) behavior or mission took care of it. Example:
addMissionEventHandler ["PlayerLeftUnit", {
... some manipulations with the body that should be in _this array ...
false //Mission handled the body, game should not engage in default behavior
}];
This event should be server-side only.