SpicyBagpipes / KJW_Imposters

A modification for Arma 3 that adds the ability to go undercover, with a variety of caveats and details.
1 stars 2 forks source link

Unit Variable to prevent Overriding of Captive State #7

Closed mrschick closed 3 months ago

mrschick commented 3 months ago

As of right now, the only way to "disable" the covert calculation for a specific unit is to set its variable kjw_imposters_core_disabled. However, that only guarantees that the unit's score is constantly set to a high value, rendering it overt by setting its captive state to false, which messes with other scripts that rely on the captive state of a specific unit.

I added kjw_imposters_core_ignore as a unit flag, which causes addons/core/functions/fnc_processUnit.sqf to return early. This bypasses addons/core/functions/fnc_updateUnit.sqf completely, without overriding captive state one way or another.

SpicyBagpipes commented 3 months ago

lgtm