diff --git a/cfgParams.hpp b/cfgParams.hpp index cf53a55..3e2fea4 100644 --- a/cfgParams.hpp +++ b/cfgParams.hpp @@ -6,7 +6,7 @@ class Params title = "Debug Mode"; values[] = {true, false}; texts[] = {"On", "Off"}; - default = true; + default = false; }; class randomteams diff --git a/functions/init/fn_initIsland.sqf b/functions/init/fn_initIsland.sqf index 407d9fb..4a9e78b 100644 --- a/functions/init/fn_initIsland.sqf +++ b/functions/init/fn_initIsland.sqf @@ -1,7 +1,7 @@ -if (!isServer) exitWith {}; - call compile preprocessFile "islandConfig.sqf"; +if (!isServer) exitWith {}; + ISLAND_CENTER = (ISLAND_CONFIG select (ISLANDS find worldName)) select 1; ISLAND_SPAWNSEARCHRADIUS = (ISLAND_CONFIG select (ISLANDS find worldName)) select 2; ISLAND_USEWHOLE = (ISLAND_CONFIG select (ISLANDS find worldName)) select 5; diff --git a/functions/setup/fn_spawnVehicles.sqf b/functions/setup/fn_spawnVehicles.sqf index 64bcdf6..ac01ef4 100644 --- a/functions/setup/fn_spawnVehicles.sqf +++ b/functions/setup/fn_spawnVehicles.sqf @@ -34,7 +34,7 @@ if (ARMED_VEHICLES) then {_vehicles = _vehicles + _armedVehicles}; private ["_vehicleAmount","_min","_max", "_spawnPos", "_vehicle", "_spawnedVehicle", "_spawnFound", "_spawnPositions", "_searchCounter", "_tooCloseFound"]; _min = MINMAX_CARS select 0; _max = MINMAX_CARS select 1; -_vehicleAmount = round ((random _max-_min) + _min); +_vehicleAmount = round ((random (_max-_min)) + _min); _spawnPositions = []; _searchCounter = 0; @@ -45,8 +45,8 @@ for [{_i = 0},{_i < _vehicleAmount},{_i = _i + 1}] do { for [{_j=0}, {_j<100}, {_j=_j+1}] do { - _spawnPos = [PLAYAREACENTER,[0,ISLAND_PLAYAREASIZE],[0,360]] call koka_fnc_randomPos; - _road = [_spawnPos,200,[]] call BIS_fnc_nearestRoad; + _spawnPos = [PLAYAREACENTER,[0,ISLAND_PLAYAREASIZE],[0,360],0] call koka_fnc_randomPos; + _road = [_spawnPos,300,[]] call BIS_fnc_nearestRoad; _spawnPos = if (isNull _road) then {_spawnPos} else {getPos _road}; //are there any other cars too close by?