Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Yep, on LOW-FPS-Servers this is a bit buggy.... most of my Helis on my Namalsk-Server crash in the ocean right now... i think because the server cant manage the AI very well because of the shitty performance.This seems to glitch fly (looks weird) with 40+ players on a server. And I had one insta-crash in the ocean causing the rest to not spawn. It was only once though.
!!!!!After you put in the coordinates you have to set _useStatic to true inside
your server_monitor.sqf, default is false!!!!!
Ok, put about 130 different static coords for Taviana, they are fairly spread around and I have tried not to have too many on maintains so that people can actually reach them without helis! I have attached the file to this post
Not sure if I have done it correctly so notify me if it is wrong or anything that need changing
Also where it says
I don't have _useStatic in my server_monitor.sqf so what should I do?Code:!!!!!After you put in the coordinates you have to set _useStatic to true inside your server_monitor.sqf, default is false!!!!!
// [_guaranteedLoot, _randomizedLoot, _frequency, _variance, _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire, _useStatic, _preWaypoint, _crashDamage]
nul = [
3, //Number of the guaranteed Loot-Piles at the Crashside
4, //Number of the random Loot-Piles at the Crashside 3+(1,2,3 or 4)
3000, //Fixed-Time (in seconds) between each start of a new Chopper
500, //Random time (in seconds) added between each start of a new Chopper
1, //Spawnchance of the Heli (1 will spawn all possible Choppers, 0.5 only 50% of them)
'center', //Center-Marker for the Random-Crashpoints, for Chernarus this is a point near Stary
4000, //Radius in Meters from the Center-Marker in which the Choppers can crash and get waypoints
true, //Should the spawned crashsite burn (at night) & have smoke?
false, //Should the flames & smoke fade after a while?
false, //Use the Static-Crashpoint-Function? If true, you have to add Coordinates into server_spawnCrashSite.sqf
1, //Amount of Random-Waypoints the Heli gets before he flys to his Point-Of-Crash (using Static-Crashpoint-Coordinates if its enabled)
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_spawnCrashSite;
//Random-Startpositions, Adjust this for other Maps then Chernarus
_heliStart = [[3461.92,5021.77,0],[8582.35,14077.7,0]] call BIS_fnc_selectRandom;
//A Backup Waypoint, if not Chernarus, set some Coordinates far up in the north (behind all possible Crashsites)
_safetyPoint = [8450.08,20240,0];
_num = round(random _randomizedLoot) + _guaranteedLoot;
_config = configFile >> "CfgBuildingLoot" >> _lootTable;
_itemTypes = [] + getArray (_config >> "itemType");
_index = dayz_CBLBase find "HeliCrash";
_weights = dayz_CBLChances select _index;
_cntWeights = count _weights;
_num = round(random 4) + 4;
_config = configFile >> "CfgBuildingLoot" >> _lootTable;
_itemTypes = [["SCAR_H_LNG_Sniper", "weapon"],["SCAR_L_CQC_EGLM_Holo", "weapon"],["VSS_vintorez", "weapon"], ["MG36_camo", "weapon"], ["FN_FAL","weapon"], ["M14_EP1","weapon"], ["FN_FAL_ANPVS4","weapon"], ["Mk_48_DZ","weapon"], ["M249_DZ","weapon"], ["BAF_L85A2_RIS_SUSAT","weapon"], ["DMR","weapon"], ["G36C","weapon"], ["G36C_camo","weapon"], ["SCAR_H_CQC_CCO", "weapon"], ["G36_C_SD_camo","weapon"], ["G36A_camo","weapon"], ["G36K_camo","weapon"], ["", "military"], ["MedBox0", "object"], ["NVGoggles", "weapon"], ["AmmoBoxSmall_556", "object"], ["AmmoBoxSmall_762", "object"], ["Skin_Camo1_DZ", "magazine"], ["Skin_Soldier1_DZ", "magazine"], ["Skin_Sniper1_DZ", "magazine"], ["SVD_CAMO","weapon"], ["M24","weapon"], ["M4A1_AIM_SD_camo","weapon"], ["Sa58P_EP1","weapon"], ["Sa58V_CCO_EP1","weapon"], ["Sa58V_EP1","weapon"], ["Sa58V_RCO_EP1","weapon"], ["M4SPR","weapon"]];
_itemChance = [0.01, 0.02, 0.01, 0.01, 0.02, 0.05, 0.01, 0.03, 0.05, 0.01, 0.06, 0.03, 0.02, 0.01, 0.01, 0.02, 0.02, 0.9, 0.09, 0.01, 0.5, 0.05, 0.05, 0.01, 0.05, 0.05, 0.04, 0.03, 0.05, 0.05, 0.05, 0.04, 0.05];
_weights = [];
_weights = [_itemType,_itemChance] call fnc_buildWeightedArray;
_cntWeights = count _weights;
_index = _weights call BIS_fnc_selectRandom;
// [_guaranteedLoot, _randomizedLoot, _frequency, _variance, _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire]
nul = [4, 4, 60, 0, 0.30, 'center', 4000, true, false] spawn server_spawnCrashSite;
You have also to addHow to get this to work on Taviana 2:
Follow Grafzahl's instructions, there is no server_spawnCrashSite.sqf for Taviana 2 so just put Graf's file inside your compile folder.
Here's what you need to edit:
Spawning positions, line 50-51
I use
Which is one spawn off the coast of each island.Code://Random-Startpositions, Adjust this for other Maps then Chernarus _heliStart = [[3461.92,5021.77,0],[8582.35,14077.7,0]] call BIS_fnc_selectRandom;
Backup waypoint, line 53-54
That is up above Kameni.Code://A Backup Waypoint, if not Chernarus, set some Coordinates far up in the north (behind all possible Crashsites) _safetyPoint = [8450.08,20240,0];
Getting loot to work, line 231-237
Find this:
Code:_num = round(random _randomizedLoot) + _guaranteedLoot; _config = configFile >> "CfgBuildingLoot" >> _lootTable; _itemTypes = [] + getArray (_config >> "itemType"); _index = dayz_CBLBase find "HeliCrash"; _weights = dayz_CBLChances select _index; _cntWeights = count _weights;
And replace it with:
Code:_num = round(random 4) + 4; _config = configFile >> "CfgBuildingLoot" >> _lootTable; _itemTypes = [["SCAR_H_LNG_Sniper", "weapon"],["SCAR_L_CQC_EGLM_Holo", "weapon"],["VSS_vintorez", "weapon"], ["MG36_camo", "weapon"], ["FN_FAL","weapon"], ["M14_EP1","weapon"], ["FN_FAL_ANPVS4","weapon"], ["Mk_48_DZ","weapon"], ["M249_DZ","weapon"], ["BAF_L85A2_RIS_SUSAT","weapon"], ["DMR","weapon"], ["G36C","weapon"], ["G36C_camo","weapon"], ["SCAR_H_CQC_CCO", "weapon"], ["G36_C_SD_camo","weapon"], ["G36A_camo","weapon"], ["G36K_camo","weapon"], ["", "military"], ["MedBox0", "object"], ["NVGoggles", "weapon"], ["AmmoBoxSmall_556", "object"], ["AmmoBoxSmall_762", "object"], ["Skin_Camo1_DZ", "magazine"], ["Skin_Soldier1_DZ", "magazine"], ["Skin_Sniper1_DZ", "magazine"], ["SVD_CAMO","weapon"], ["M24","weapon"], ["M4A1_AIM_SD_camo","weapon"], ["Sa58P_EP1","weapon"], ["Sa58V_CCO_EP1","weapon"], ["Sa58V_EP1","weapon"], ["Sa58V_RCO_EP1","weapon"], ["M4SPR","weapon"]]; _itemChance = [0.01, 0.02, 0.01, 0.01, 0.02, 0.05, 0.01, 0.03, 0.05, 0.01, 0.06, 0.03, 0.02, 0.01, 0.01, 0.02, 0.02, 0.9, 0.09, 0.01, 0.5, 0.05, 0.05, 0.01, 0.05, 0.05, 0.04, 0.03, 0.05, 0.05, 0.05, 0.04, 0.05]; _weights = []; _weights = [_itemType,_itemChance] call fnc_buildWeightedArray; _cntWeights = count _weights; _index = _weights call BIS_fnc_selectRandom;
Use this guide to see how to change what weapons that are to spawn. Find a list of class names to change the weapons, for instance this one.
That should get it to work if you followed Graf's + my instructions. My server_monitor setup:
Code:// [_guaranteedLoot, _randomizedLoot, _frequency, _variance, _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire] nul = [4, 4, 60, 0, 0.30, 'center', 4000, true, false] spawn server_spawnCrashSite;
Didn't want to mess around with spawn time so instead put it to 30% chance to spawn, running a server with 6-hour resets it seems to be working okay. Any questions, feel free to ask, and again, thanks to Graf for posting this in the first place!
server_spawnCrashSite = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnCrashSite.sqf";
Why not instead of stopping the script,once it reaches maximum heli count it deletes the oldest crashsite or one that was already looted from? That way people will always be able to see a cool heli crash.Iam in a good mood
Next Update will have maxChoppers (Script will Stop when more then X choppers have spawned) - this way you can spawn a chopper every 20 minutes after server restart, but stop the spawning as soon as X choppers are out.
"CRASHSPAWNER: Starting spawn logic for animated helicrashs - written by Grafzahl [SC:true||PW:1||CD:1]"
19:50:43 "CRASHSPAWNER: 100% chance to start a crashing UH-1H with loot table 'Military' at 3349"
Have you waited 55 minutes since server started?Just uploaded my static points but now no helis actually spawn this is only what i get in the logs
Code:"CRASHSPAWNER: Starting spawn logic for animated helicrashs - written by Grafzahl [SC:true||PW:1||CD:1]" 19:50:43 "CRASHSPAWNER: 100% chance to start a crashing UH-1H with loot table 'Military' at 3349"
My server.pbo is attached if someone can look at it.
_num = round(random _randomizedLoot) + _guaranteedLoot;
_config = configFile >> "CfgBuildingLoot" >> _lootTable;
_itemTypes = [] + getArray (_config >> "itemType");
_index = dayz_CBLBase find "HeliCrash";
_weights = dayz_CBLChances select _index;
_cntWeights = count _weights;
_num= round(random 4) + 4;
_config = configFile >> "CfgBuildingLoot" >> _lootTable;
_itemTypes = [["SVD_CAMO", "weapon"], ["M24", "weapon"], ["FN_FAL", "weapon"], ["UZI_EP1", "weapon"], ["RPK_74", "weapon"], ["M40A3", "weapon"], ["M60A4_EP1", "weapon"], ["M9SD", "weapon"], ["SCAR_H_LNG_Sniper_SD", "weapon"], ["m8_carbineGL", "weapon"], ["SCAR_H_CQC_CCO", "weapon"], ["M4A1_HWS_GL_SD_camo"], ["AK_107_GL_kobra", "weapon"], ["G36_c_SD_eotech", "weapon"], ["", "military"], ["MedBox0", "object"], ["NVGoggles", "weapon"], ["AmmoBoxSmall_556", "object"], ["AmmoBoxSmall_762", "object"], ["Skin_Camo1_DZ", "magazine"], ["Skin_Soldier1_DZ", "magazine"], ["Skin_Sniper1_DZ", "magazine"]];
_itemChance = [0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.5, 0.05, 0.05, 0.5, 0.05, 0.05, 0.05, 0.05];
_weights = [];
_weights = [_itemType,_itemChance] call fnc_buildWeightedArray;
_cntWeights = count _weights;
_index = _weights call BIS_fnc_selectRandom;
18:42:29 UH1Wreck_DZ: MainTurret - unknown animation source MainTurret
18:42:29 UH1Wreck_DZ: MainGun - unknown animation source mainGun
18:42:29 UH1Wreck_DZ: Gatling - unknown animation source Gatling
18:42:29 "CRASHSPAWNER: Loot spawn at '[1619.37,209.646,0]' with loot table '15.3165'"
18:42:29 "CRASHSPAWNER: Loot spawn at '[1626.83,218.904,0]' with loot table '15.3165'"
18:42:29 "CRASHSPAWNER: Loot spawn at '[1621.16,214.039,0]' with loot table '15.3165'"
18:42:29 "CRASHSPAWNER: Loot spawn at '[1631.3,216.861,0]' with loot table '15.3165'"
18:42:29 "CRASHSPAWNER: Loot spawn at '[1622.76,216.991,0]' with loot table '15.3165'"
18:42:29 "CRASHSPAWNER: Flight complete! Runtime: 175.881 Sec"
18:42:29 "CRASHSPAWNER: 100% chance to spawn 'Mi17_DZ' with loot table 'HeliCrash' at 175.881"
18:42:29 "CRASHSPAWNER: Spawning 'Mi17_DZ' with loot table 'HeliCrash' NOW! (175.996) at: [4892.98,7917.75]"
18:42:30 "CLEANUP: KILLING A HACKER Grace Hirasaki C 1-1-A:1 IN Mi17_DZ"
18:42:33 "CLEANUP: DELETED 5 LOOT BAGS"
" if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"" && ((vehicle _x getVariable [""Sarge"",0]) != 1)) then {" \n
nul = [3, 4, (30 * 60),(5 * 60), 1, 'center', 4000, true, false] spawn server_spawnCrashSite;
Took Me long enough to find the problem! cyrq's newest fix was for some reason not working with me so i just went to the older one it works now. Cyrq i think you should look into the code a little more because there could be something wrong because it is working perfectly when I use the older fix.
Its nice to hear someone is having the same problem as me hahaI can also confirm using Cyrq's post a few pages back works perfectly with DayZ CC. I have been using it since it was posted and have not had any issues with it.
6:47:07 Error: Bone oldloader doesn't exist in some skeleton
6:47:13 Error in expression <s, sizeOf(_crashModel)]);
_near
private["_useStatic","_crashDamage","_lo>
6:47:13 Error position: <private["_useStatic","_crashDamage","_lo>
6:47:13 Error Missing ;
6:47:13 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 259
6:47:13 Error in expression <s, sizeOf(_crashModel)]);
_near
private["_useStatic","_crashDamage","_lo>
6:47:13 Error position: <private["_useStatic","_crashDamage","_lo>
6:47:13 Error Missing ;
6:47:13 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 259
6:47:20 Error in expression <s, sizeOf(_crashModel)]);
_near
private["_useStatic","_crashDamage","_lo>
6:47:20 Error position: <private["_useStatic","_crashDamage","_lo>
6:47:20 Error Missing ;
6:47:20 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 259
6:47:20 Error in expression <s, sizeOf(_crashModel)]);
_near
private["_useStatic","_crashDamage","_lo>
6:47:20 Error position: <private["_useStatic","_crashDamage","_lo>
6:47:20 Error Missing ;
6:47:20 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 259
Installed this onto my server and it gets stuck loading in. It just says something went wrong disconnect and try again.
This is the error it is giving me in my RPT.
Code:6:47:07 Error: Bone oldloader doesn't exist in some skeleton 6:47:13 Error in expression <s, sizeOf(_crashModel)]); _near private["_useStatic","_crashDamage","_lo> 6:47:13 Error position: <private["_useStatic","_crashDamage","_lo> 6:47:13 Error Missing ; 6:47:13 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 259 6:47:13 Error in expression <s, sizeOf(_crashModel)]); _near private["_useStatic","_crashDamage","_lo> 6:47:13 Error position: <private["_useStatic","_crashDamage","_lo> 6:47:13 Error Missing ; 6:47:13 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 259 6:47:20 Error in expression <s, sizeOf(_crashModel)]); _near private["_useStatic","_crashDamage","_lo> 6:47:20 Error position: <private["_useStatic","_crashDamage","_lo> 6:47:20 Error Missing ; 6:47:20 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 259 6:47:20 Error in expression <s, sizeOf(_crashModel)]); _near private["_useStatic","_crashDamage","_lo> 6:47:20 Error position: <private["_useStatic","_crashDamage","_lo> 6:47:20 Error Missing ; 6:47:20 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 259
Not really sure what is going on here. Also I noticed you said to replace/merge the spawn crash site sqf. I just replaced. Is there a specific way to go about merging them?
Its nice to hear someone is having the same problem as me haha. I have managed to make it work(kind of) since its showing the CRASHSPAWNER again but now its killing the hacker/pilot because i did something wrong with my server_cleanup.sqf. If you are wondering what i did to do that all I did was delete server_Spawnwreck and followed the latest fix.
//Make sure its not destroyed by the Hacker-Killing-Cleanup (Thanks to Sarge for the hint)
_crashwreck setVariable["Sarge",1];
so can i change this:
Code:_num = round(random _randomizedLoot) + _guaranteedLoot; _config = configFile >> "CfgBuildingLoot" >> _lootTable; _itemTypes = [] + getArray (_config >> "itemType"); _index = dayz_CBLBase find "HeliCrash"; _weights = dayz_CBLChances select _index; _cntWeights = count _weights;
to this:
Code:_num= round(random 4) + 4; _config = configFile >> "CfgBuildingLoot" >> _lootTable; _itemTypes = [["SVD_CAMO", "weapon"], ["M24", "weapon"], ["FN_FAL", "weapon"], ["UZI_EP1", "weapon"], ["RPK_74", "weapon"], ["M40A3", "weapon"], ["M60A4_EP1", "weapon"], ["M9SD", "weapon"], ["SCAR_H_LNG_Sniper_SD", "weapon"], ["m8_carbineGL", "weapon"], ["SCAR_H_CQC_CCO", "weapon"], ["M4A1_HWS_GL_SD_camo"], ["AK_107_GL_kobra", "weapon"], ["G36_c_SD_eotech", "weapon"], ["", "military"], ["MedBox0", "object"], ["NVGoggles", "weapon"], ["AmmoBoxSmall_556", "object"], ["AmmoBoxSmall_762", "object"], ["Skin_Camo1_DZ", "magazine"], ["Skin_Soldier1_DZ", "magazine"], ["Skin_Sniper1_DZ", "magazine"]]; _itemChance = [0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.5, 0.05, 0.05, 0.5, 0.05, 0.05, 0.05, 0.05]; _weights = []; _weights = [_itemType,_itemChance] call fnc_buildWeightedArray; _cntWeights = count _weights; _index = _weights call BIS_fnc_selectRandom;
to have the crash loot be custom, or is there more to it?
thanks in advance