Very handy for those whiney kids u get on ur server saying theres no cars! Well wtf do u expect they are all driven away from the coast
So here is how to parachute drop cars that will be deleted on server restart (You can change the amount of time they drop in to suit your needs, and drop them anywhere for example, all the way along the coast)
Big thanks to Grazafal and Gaga, without their base code this would have taken years.
--------------------------------------------------------------------------------------------------------------
EVERYTHING IS INSIDE YOUR SERVER PBO
Step 1
Copy and Paste the following text in the link to a new file and save it as the name below inside your compile folder
server_carAN2.sqf
server_cardrop.sqf
Step 2
Open Init\Server_functions.sqf and add the following lines
Note: Can be added right after the section for the server_spawncrashsite
server_spawnCrashSite = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnCrashSite.sqf";
step 3
Open your System\Sever_monitor.sqf add the following lines right at the bottom
Step 4
Open your Compile\server_updateobject.sqf and find the line with
Replace with
Step 5 (You may have done this on previous scripts)
Open the system\ Server_Cleanup.fsm
Search for
//Check for Hackers
Replace the line starting with...
" if(vehicle _x != _x && !(vehicle _x in _safety)
with
" if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"" && (vehicle _x getVariable [""Sarge"",0] != 1)) then {" \n
To adjust setting see post number 2
MAKE SURE YOU CHECK WHAT VEHICLES SPAWN ON YOUR SERVER BEFORE YOU COME BACK SAYING THIS DOSNT WORK, I USE A CHINOOK AND A HILUX ON MY PANTHERA SERVER, THESE MAY NOT WORK ON CHERNO - SO SEE POST 2 TO CHANGE THESE
So here is how to parachute drop cars that will be deleted on server restart (You can change the amount of time they drop in to suit your needs, and drop them anywhere for example, all the way along the coast)
Big thanks to Grazafal and Gaga, without their base code this would have taken years.
--------------------------------------------------------------------------------------------------------------
EVERYTHING IS INSIDE YOUR SERVER PBO
Step 1
Copy and Paste the following text in the link to a new file and save it as the name below inside your compile folder
server_carAN2.sqf
server_cardrop.sqf
Step 2
Open Init\Server_functions.sqf and add the following lines
Code:
server_carAN2 = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_carAN2.sqf";
server_cardrop = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_cardrop.sqf";
Note: Can be added right after the section for the server_spawncrashsite
server_spawnCrashSite = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnCrashSite.sqf";
step 3
Open your System\Sever_monitor.sqf add the following lines right at the bottom
Code:
nul = [
6, //IGNORE THIS
3, //IGNORE THIS
(3*60), //Fixed-Time (in seconds) between each start of a new Car drop flyover
(0*60), //Random time between each flyover
0.99, //Spawnchance of the car drop (1 will spawn all possible, 0.5 only 50% of them)
'center', //IGNORE THIS
8000, // IGNORE THIS
true, //IGNORE THIS
false, //IGNORE THIS
0, //RANDOM WP (the amount of random waypoints this could add to the guarenteed waypoints)
15, //GUARANTEED WP (the amount of car drops that will actually happen
1 //Amount of Damage the Heli has to get while in-air to explode before the POC. (0.0001 = Insta-Explode when any damage//bullethit, 1 = Only Explode when completly damaged)
] spawn server_carAN2;
Step 4
Open your Compile\server_updateobject.sqf and find the line with
Code:
if (_isNotOk) exitWith { deleteVehicle _object; };
Replace with
Code:
//if (_isNotOk) exitWith { deleteVehicle _object; };
Step 5 (You may have done this on previous scripts)
Open the system\ Server_Cleanup.fsm
Search for
//Check for Hackers
Replace the line starting with...
" if(vehicle _x != _x && !(vehicle _x in _safety)
with
" if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"" && (vehicle _x getVariable [""Sarge"",0] != 1)) then {" \n
To adjust setting see post number 2
MAKE SURE YOU CHECK WHAT VEHICLES SPAWN ON YOUR SERVER BEFORE YOU COME BACK SAYING THIS DOSNT WORK, I USE A CHINOOK AND A HILUX ON MY PANTHERA SERVER, THESE MAY NOT WORK ON CHERNO - SO SEE POST 2 TO CHANGE THESE