• 0

Spawned vehicles in debug area on Esseker


On Esseker...Using infistar I can see the server side spawned in vehicles and a good number of them are 2-300 out in debug field past the edge of the map. How can I clean this up and define a smaller area? Not only is this waste of vehicle but a easy way for players to farm cars for recycling.

Share this post

Link to post
Share on other sites

2 answers to this question

  • 0

Same question here... and a related one... how can I decrease the number of bicycles that spawn in at the player spawn points?  When I spawn in and am surrounded by six bicycles, that's a bit excessive.  Although I didn't do an exhaustive search, I didn't see a parameter that controls this.

Share this post

Link to post
Share on other sites
  • 0

Posted (edited)

To fix the vehicles spawning out of the map:

You need to edit a file inside your server pbo. @ExileServer\addons\exile_server\code\ExileServer_world_spawnVehicles.sqf

Simply replace everything in the file with this (only has edit done to fix spawn vehicles on Esseker). This is a upto date file for 0.9.8, for future releases check if anything else has been changed.

 * ExileServer_world_spawnVehicles
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
_mapsizeX = worldSize; 
_mapsizeY = worldSize;
_gridSize = getNumber(configFile >> "CfgSettings" >> "VehicleSpawn" >> "vehiclesGridSize");
_gridVehicles = getNumber(configFile >> "CfgSettings" >> "VehicleSpawn" >> "vehiclesGridAmount");
format ["Spawning Dynamic Vehicles. GridSize: %1 Vehs/Grid : %2",_gridSize,_gridVehicles] call ExileServer_util_log;
_gridSizeOffset = _gridSize % 2;
_vehicleCount = 0;
_debugMarkers = ((getNumber(configFile >> "CfgSettings" >> "VehicleSpawn" >> "vehiclesDebugMarkers")) isEqualTo 1);
_vehicleClassNames = getArray (configFile >> "CfgSettings" >> "VehicleSpawn" >> "ground");
_maximumDamage = getNumber (configFile >> "CfgSettings" >> "VehicleSpawn" >> "maximumDamage");
_damageChance = getNumber (configFile >> "CfgSettings" >> "VehicleSpawn" >> "damageChance");
for "_xSize" from 0 to _mapsizeX step _gridSize do
	_workingXSize = _xSize + _gridSizeOffset;
	for "_ySize" from 0 to _mapsizeY step _gridSize do
		_workingYSize = _ySize + _gridSizeOffset;
		_position = [_workingXSize,_workingYSize];
		_spawned = 0;
		_spawnedPositions = [];
		while {_spawned < _gridVehicles} do 
//Removed to fix spawning outside map
//			_positionReal = [_position, 25, _gridSize, 5, 0 , 1 , 0 , _spawnedPositions] call BIS_fnc_findSafePos;

//Added to fix spawning outside map
			_positionReal = [[6000,6000], 1/*25*/, 5500/*6000*/, 5, 0, 4000, 0, _spawnedPositions] call BIS_fnc_findSafePos;
			if(count _positionReal isEqualTo 3)exitWith{};
			_spawnControl = [[(_positionReal select 0) - 50, (_positionReal select 1) + 50],[(_positionReal select 0) + 50,(_positionReal select 1) - 50]];
			_spawnedPositions pushBack _spawnControl;
			_positionReal pushBack 0;
			_vehicleClassName = selectRandom _vehicleClassNames;
			_vehicle = [_vehicleClassName, _positionReal, random 360, true] call ExileServer_object_vehicle_createNonPersistentVehicle;
			_hitpointsData = getAllHitPointsDamage _vehicle;
			if !(_hitpointsData isEqualTo []) then 
				_hitpoints = _hitpointsData select 0;
				    if ((random 100) < _damageChance) then
				        _vehicle setHitPointDamage [_x, random _maximumDamage];
				forEach _hitpoints;
			if (_debugMarkers) then
				_debugMarker = createMarker ["vehicleMarker#"+str _vehicleCount, _positionReal];
				_debugMarker setMarkerColor "ColorOrange";
				_debugMarker setMarkerType "mil_dot_noShadow";
			_spawned = _spawned + 1;
			_vehicleCount = _vehicleCount + 1;
format ["Dynamic vehicles spawned. Count : %1",_vehicleCount] call ExileServer_util_log;



For changing the amount of bicycles that spawn around spawn zones:

Open up your server side config file. @ExileServer\addons\exile_server_config\config.cpp

Search for:


Change the 5's to how many of each bike you want at each spawn zone. Default is 10 bikes in total as there are 2 different bike types each spawning 5.

If you want to remove the bikes from spawning at spawn zones then change it to this:

spawnZoneVehicles[] = 		//These vehicles spawn on server restart close to spawn zones. They are non-persistent and will despawn on server restart. Basically they are just used to get away from the spawn zone faster. {Number of vehicles *per* spawn zone, vehicle class name}


Alternatively if you want to change what vehicles are at the spawn zones, just replace Exile_Bike_OldBike and Exile_Bike_MountainBike with your chosen vehicles, or just add more to the list.

Edited by Mr Health And Safety

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.