Issue #22163: Deacon's disguise swap routine should be suspended when he's in power armor
When Deacon is in power armor, his disguise swap routine seems to make the entire power armor suit strip down to the bare frame sometimes. To correct, I think the script functionalities that govern that should be suspended while he's in the suit.
EDIT: This is handled by an OnLocationChange event on COMDeaconScript. That event unequips his current armor and equips a new one. If he's in power armor however, the armor that is unequipped are the power armor parts (instead of what he's wearing under the power armor).
Add a check to that event like so:
<code php> if akSender == Game.GetPlayer() && bCanSwapDisguises
Debug.Trace("COMDeacon has detected the player has moved."
;UFO4P 2.x Bug #22163. suspend this while he's in power armor (otherwise, this function will unequip his power armor parts):
if Deacon.GetActorReference().IsInPowerArmor() == true