freghar / arma-additions

Other
4 stars 0 forks source link

Support empty units in ee/locality_transfer #13

Closed freghar closed 3 years ago

freghar commented 3 years ago

The editor module never worked too reliably, there's just so many workarounds one needs to do to avoid naked soldiers on setGroupOwner and ACEX does (or will soon do) a pretty good job.

The ares_extras version is probably still superior, but ZEN will soon have a version that is ACEX compatible and overall better maintained.

freghar commented 3 years ago

Since the naked units problem might soon be addressed by CBA (Add naked unit bug workaround #1406), keeping at least the editor locality_transfer might be useful for vanilla scenarios without ACEX.

If I do, maybe do transfer (optionally via checkbox?) objects in addition to AI groups, ie.

if (isNull group _obj) then {
    _obj setOwner _owner;   // empty objects, logic, etc.
} else {
    (group _obj) setGroupOwner _owner;
};
freghar commented 3 years ago

Doing some brief benchmarking, transferring empty units doesn't seem to have any positive impact on the server FPS, and is probably not worth the effort.