Skip to content

Commit

Permalink
Merge pull request #805 from AndreasBrostrom/medradio
Browse files Browse the repository at this point in the history
added medical radio to medical vehicles
  • Loading branch information
AndreasBrostrom authored Oct 27, 2021
2 parents 5456a04 + d14ed3b commit ac98545
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cScripts/functions/vehicle/fn_vehicle_addRadio.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit ac98545

Please sign in to comment.