So the below code is the animated c130, for an2 see the bottom of the first post.
To have a AN2 that drops care packages, see post number 2, big thanks to gaga for getting it working
This script will not work on CHERNO without RMOD, suggest your replace the c130 with an AN2 if you dont use RMOD - see 2nd post for info on how to do that after installing it
Big thanks to gaga who has made alot of progress with this while ive been busy, Looking epic in your Vid gaga
So anyways its actually reallllly simple to make the animated c130 crashes.
You just replace the model in the animated heli crash site script but save it as a new file, and add the wreck name.
then create a new link to it in server_monitor.sqf and in the server_funtion.sqf
------------------------------------------------------------------------------------
Soooo, lets get started....
All files are located in your Server.PBO
Server_Monitor.sqf
Add the green text line below ur heli crash site script
// [_guaranteedLoot, _randomizedLoot, _frequency, _variance, _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire, _prewaypoints, _damage]
nul = [3, 4, 400, 0, 0.99, 'center', 4000, true, false, false, 1, 0.0001] spawn server_spawnCrashSite;
// [_guaranteedLoot, _randomizedLoot, _frequency, _variance(DONOTUSE), _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire, waypoints, damage]
nul = [7, 5, 700, 0, 0.99, 'center', 4000, true, false, true, 5, 1]spawn server_spawnC130CrashSite;
NOTE:
true, false, true, - The last true is static crash locations, if you are using any island maps other than cherno, use static crash locations or your c130 could end up in the sea
If you are running cherno set this to false
Server_Functions.sqf
server_spawnCrashSite = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnCrashSite.sqf";
server_spawnC130CrashSite = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnC130CrashSite.sqf";
Click the link below and put the code in a file called server_spawnC130CrashSite.sqf
http://pastebin.com/g5Ne5u19
Store this in your compiles folder
Also if you want to change this AN2 (bi planes) or any other flying vehicle
simply follow these steps
OPTIONAL Step 1
Inside your server_spawnC130CrashSite.sqf edit the following lines
Line 48_heliModel = ["C130J"] call BIS_fnc_selectRandom;
Line 57 _crashModel = "C130J_wreck_EP1";
Make sure u set the wreck and the spawn
soo for an AN2 it would look like
Line 48_heliModel = ["AN2_DZ"] call BIS_fnc_selectRandom;
Line 57 _crashModel = "AN2Wreck";
for the wreck, still not checked which wreck spawns on cherno - feel free to check this, or i will when i get time
To make any flying vehicle just change the green models (and check to make sure they spawn on ur server)
To have a AN2 that drops care packages, see post number 2, big thanks to gaga for getting it working
This script will not work on CHERNO without RMOD, suggest your replace the c130 with an AN2 if you dont use RMOD - see 2nd post for info on how to do that after installing it
Big thanks to gaga who has made alot of progress with this while ive been busy, Looking epic in your Vid gaga
So anyways its actually reallllly simple to make the animated c130 crashes.
You just replace the model in the animated heli crash site script but save it as a new file, and add the wreck name.
then create a new link to it in server_monitor.sqf and in the server_funtion.sqf
------------------------------------------------------------------------------------
Soooo, lets get started....
All files are located in your Server.PBO
Server_Monitor.sqf
Add the green text line below ur heli crash site script
// [_guaranteedLoot, _randomizedLoot, _frequency, _variance, _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire, _prewaypoints, _damage]
nul = [3, 4, 400, 0, 0.99, 'center', 4000, true, false, false, 1, 0.0001] spawn server_spawnCrashSite;
// [_guaranteedLoot, _randomizedLoot, _frequency, _variance(DONOTUSE), _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire, waypoints, damage]
nul = [7, 5, 700, 0, 0.99, 'center', 4000, true, false, true, 5, 1]spawn server_spawnC130CrashSite;
NOTE:
true, false, true, - The last true is static crash locations, if you are using any island maps other than cherno, use static crash locations or your c130 could end up in the sea
If you are running cherno set this to false
Server_Functions.sqf
server_spawnCrashSite = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnCrashSite.sqf";
server_spawnC130CrashSite = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnC130CrashSite.sqf";
Click the link below and put the code in a file called server_spawnC130CrashSite.sqf
http://pastebin.com/g5Ne5u19
Store this in your compiles folder
Also if you want to change this AN2 (bi planes) or any other flying vehicle
simply follow these steps
OPTIONAL Step 1
Inside your server_spawnC130CrashSite.sqf edit the following lines
Line 48_heliModel = ["C130J"] call BIS_fnc_selectRandom;
Line 57 _crashModel = "C130J_wreck_EP1";
Make sure u set the wreck and the spawn
soo for an AN2 it would look like
Line 48_heliModel = ["AN2_DZ"] call BIS_fnc_selectRandom;
Line 57 _crashModel = "AN2Wreck";
for the wreck, still not checked which wreck spawns on cherno - feel free to check this, or i will when i get time
To make any flying vehicle just change the green models (and check to make sure they spawn on ur server)