From 0d17619e9b95bdaa67d172f62285996b056edd57 Mon Sep 17 00:00:00 2001 From: vbawol Date: Mon, 19 Jun 2017 08:34:35 -0500 Subject: [PATCH] remove auto refuel now works with all maps tested with and without the ```(typeOf _x in _pumps``` and get the full map (Malden) done in about 100ms either way. Just checking for ```getFuelCargo > 0``` seems to be still just as performant and it can catch other fuel sources on other maps. --- Sources/epoch_server/init/server_init.sqf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/epoch_server/init/server_init.sqf b/Sources/epoch_server/init/server_init.sqf index 6c916869..4674a950 100644 --- a/Sources/epoch_server/init/server_init.sqf +++ b/Sources/epoch_server/init/server_init.sqf @@ -259,10 +259,8 @@ _servicepoints = getArray (_config >> worldname >> 'ServicePoints'); }; } forEach _ServicePoints; -// Remove Auto-Refuel from Altis/Stratis/Tanoa/(Malden 2035?) -_pumps = ['Land_fs_feed_F','Land_FuelStation_Feed_F','Land_FuelStation_01_pump_F','Land_FuelStation_02_pump_F']; -_allPumps = ((epoch_centerMarkerPosition) nearObjects ['House',(EPOCH_dynamicVehicleArea)]) select {(typeOf _x in _pumps) AND {getFuelCargo _x > 0}}; -{_x setFuelCargo 0;} foreach _allPumps; +// Remove Auto-Refuel from all maps +{_x setFuelCargo 0;} foreach ((epoch_centerMarkerPosition nearObjects ['Building',EPOCH_dynamicVehicleArea]) select {getFuelCargo _x > 0}); // set time multiplier setTimeMultiplier ([_serverSettingsConfig, "timeMultiplier", 1] call EPOCH_fnc_returnConfigEntry);