Rearm driver weapons (pook rearming)

This commit is contained in:
icomrade
2016-09-11 16:38:26 -04:00
parent 48334e76d4
commit 203975def7
2 changed files with 6 additions and 2 deletions

View File

@@ -48,6 +48,7 @@
[NEW] Players can now manually push stuck planes backwards to free them. @ebaydayz
[NEW] You may set the buying or selling price of any item to -1 to disallow the respective trading action, only with config traders and advanced trading @icomrade
[NEW] Salvage can now be disabled on locked vehicles via DZE_salvageLocked variable. #1757 @oiad
[NEW] You may now rearm pooks and other helicoper/vehicle pilot/driver weapons @icomrade
[CHANGED] Combattimeout now uses diag_tickTime instead of time.
[CHANGED] AmmoBoxSmall_556/762 is replaced with DZ_AmmoBoxUS/RU/EU/CZ and MedBox0 is replaced with DZ_MedBox (new model)

View File

@@ -55,8 +55,11 @@ if (_inVehicle) then {
r_action2 = true;
};
};
if (count _assignedRole > 1) then {
if ((count _assignedRole) > 1 || ((_assignedRole select 0) == "driver")) then {
_turret = [-1];
if ((count _assignedRole) > 1) then {
_turret = _assignedRole select 1;
};
_weapons = _vehicle weaponsTurret _turret;
{
_weaponName = getText (configFile >> "cfgWeapons" >> _x >> "displayName");