From d14ed3bef4aeff568b9a5b7a4d81ad9b9c7aa837 Mon Sep 17 00:00:00 2001 From: Andreas Brostrom Date: Wed, 27 Oct 2021 18:51:09 +0200 Subject: [PATCH] added medical radio to medical vehicles --- .../functions/vehicle/fn_vehicle_addRadio.sqf | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/cScripts/functions/vehicle/fn_vehicle_addRadio.sqf b/cScripts/functions/vehicle/fn_vehicle_addRadio.sqf index af0dfc6d3..f51457881 100644 --- a/cScripts/functions/vehicle/fn_vehicle_addRadio.sqf +++ b/cScripts/functions/vehicle/fn_vehicle_addRadio.sqf @@ -27,11 +27,32 @@ if (!(faction _vehicle in _factionArray)); if (_vehicle iskindOf "MRAP_01_base_F") then { [_vehicle, [17]] call EFUNC(vehicle,setRadio); + switch (_vehicleType) do { + case "MED": { + [_vehicle, [15]] call EFUNC(vehicle,setRadio); + }; + default { + [_vehicle, [17]] call EFUNC(vehicle,setRadio); + }; + }; }; if (_vehicle iskindOf "rhsusf_fmtv_base") then { }; +if (_vehicle iskindOf "Truck_01_base_F") then { + switch (_vehicleType) do { + case "rhsusf_M1230a1_usarmy_wd"; + case "rhsusf_M1230a1_usarmy_d"; + case "MED": { + [_vehicle, [15]] call EFUNC(vehicle,setRadio); + }; + default { + [_vehicle, [17]] call EFUNC(vehicle,setRadio); + }; + }; +}; + if (_vehicle iskindOf "rhsusf_stryker_base") then { [_vehicle, [4]] call EFUNC(vehicle,setRadio); };