CSW - Deploy & pickup CSW parts only if they are not destroyed (#9905)

Deploy & pickup CSW parts only if they are not destroyed
This commit is contained in:
johnb432 2024-04-02 17:15:06 +02:00 committed by GitHub
parent 7171ca7947
commit a5a3fe4232
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -22,4 +22,4 @@ private _assemblyMode = [false, true, true, GVAR(defaultAssemblyMode)] select (_
private _notCrewed = (crew _staticWeapon) isEqualTo [];
private _deadCrew = !(alive (gunner _staticWeapon)); // need to eject body???
_assemblyMode && {_notCrewed || _deadCrew}
_assemblyMode && {alive _staticWeapon} && {_notCrewed || _deadCrew}

View File

@ -69,7 +69,8 @@
private _codeCheck = {
params ["_args"];
_args params ["_tripod"];
!isNull _tripod;
alive _tripod
};
[TIME_PROGRESSBAR(_deployTime), [_tripod, _player, _assembledClassname, _carryWeaponClassname], _onFinish, _onFailure, localize LSTRING(AssembleCSW_progressBar), _codeCheck] call EFUNC(common,progressBar);

View File

@ -37,7 +37,7 @@
params ["_args"];
_args params ["_tripod", "_player"];
!(isNull _tripod) && { (secondaryWeapon _player) isEqualTo "" }
(alive _tripod) && { (secondaryWeapon _player) isEqualTo "" }
};