From 867da0aa911e8255854fe61e370fc513881e2c25 Mon Sep 17 00:00:00 2001 From: Grahame <grahame.curtis@gmail.com> Date: Sat, 21 Oct 2017 15:33:50 -0400 Subject: [PATCH] Add code to handle enable/disable vehicle TIE --- .../compile/epoch_vehicle/EPOCH_load_vehicles.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf index 4976e3db..ae9185de 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf @@ -32,6 +32,7 @@ _immuneIfStartInBase = [_serverSettingsConfig, "immuneIfStartInBase", true] call _removeweapons = [_serverSettingsConfig, "removevehweapons", []] call EPOCH_fnc_returnConfigEntry; _removemagazinesturret = [_serverSettingsConfig, "removevehmagazinesturret", []] call EPOCH_fnc_returnConfigEntry; +_disableVehicleTIE = [_serverSettingsConfig, "disableVehicleTIE", true] call EPOCH_fnc_returnConfigEntry; for "_i" from 1 to _maxVehicleLimit do { _vehicleSlotIndex = EPOCH_VehicleSlots pushBack str(_i); @@ -141,7 +142,9 @@ for "_i" from 1 to _maxVehicleLimit do { _vehicle setvariable ["VEHICLE_BASECLASS",_baseClass]; }; // disable thermal imaging equipment - _vehicle disableTIEquipment true; + if (_disableVehicleTIE) then { + _vehicle disableTIEquipment true; + }; // lock all vehicles _vehicle lock true; // load vehicle inventory