Jump to content

[Fixed] Animated Crash Spawner 1051


f3cuk

Recommended Posts

Damn, this makes a sense.... i´m an idiot :)

 

It´s working. Now i see loot at many (not at all) crashsites.

BUT: Now i have a RPT of 26MB of size ;)

This time the errors are in spawn_loot.sqf

 

Damn, i have to rework my zed and loot system... :(

Link to comment
Share on other sites

Yeah, if it were me i'd start with updating my lootpiles to 1051 and then go through the different mods dependable on that. Chances are all of them have updates to work with the new ones since no one wants to stick with old stuff.

Link to comment
Share on other sites

Namalsk coordinates :)

 

_heliStart = [[5046.9678, 5943.2656],[6360.792, 6582.0723],[3544.4153, 6451.7793],[7504.9102, 5786.3271],[7752.436, 7067.6895],[3920.3354, 7530.4941],[6448.9805, 8406.374],[6098.7876, 10094.43],[4745.8853, 10273.457],[8271.7441, 10356.828]] call BIS_fnc_selectRandom;
Link to comment
Share on other sites

Do i have to have this more then 0 ?

 

MaxHeliCrashes= 0;

 

I'm not sure what that does, but i do not think it is in any way related to the Animated Crash Spawner.

 

 

Namalsk coordinates :)

_heliStart = [[5046.9678, 5943.2656],[6360.792, 6582.0723],[3544.4153, 6451.7793],[7504.9102, 5786.3271],[7752.436, 7067.6895],[3920.3354, 7530.4941],[6448.9805, 8406.374],[6098.7876, 10094.43],[4745.8853, 10273.457],[8271.7441, 10356.828]] call BIS_fnc_selectRandom;

 

Thanks Richie, added to OP.

Link to comment
Share on other sites

I'm not sure what that does, but i do not think it is in any way related to the Animated Crash Spawner.

 

 

Thanks Richie, added to OP.

I thought you did control crash spawner by the max heli crashes either not having it in there at all or changing that variable to control it.....

 

PeterBeer, why don't you have a go at changing it to 5 and seeing what happens. I think also, if you delete it altogether it will lean off some default settings probably in variables (without checking) so, you can try that too.

 

I'm sure I saw somewhere in some posts ages ago that if you set that to 0 it will turn off the crash spawner and supply drop function which this runs from...

Link to comment
Share on other sites

Here is an minor update I did to allow you multiple start points (for different maps) in the same file and selected at time of execution.  This is helpful for those of us who run multiple servers using the same base DayZ_Epoch_Server file. 

 

I only added in the worlds that I run but if you follow the template, you can add the other worlds to this file.  You need to confirm the name of the world to match the case name, easy enough for you if you know how to code.

 

 

/*
 Script Name: animated_crash_spawner.sqf
 Original Author: Grafzahl / Finest
 Modified by BushWookie & Forgotten for Epoch
 Modified by f3cuk for Epoch 1051
 Script Version: 1.3.2
*/
 
private["_show_name","_show_marker", "_finder","_timeAdjust","_timeToSpawn","_spawnRoll","_crash","_hasAdjustment","_newHeight","_adjustedPos","_useStatic","_crashDamage","_lootRadius","_preWaypoints","_preWaypointPos","_endTime","_startTime","_safetyPoint","_heliStart","_deadBody","_exploRange","_heliModel","_lootPos","_list","_craters","_dummy","_wp2","_wp3","_landingzone","_aigroup","_wp","_helipilot","_crash","_crashwreck","_smokerand","_staticcoords","_pos","_dir","_mdot","_position","_num","_config","_itemType","_itemChance","_weights","_index","_iArray","_crashModel","_lootTable","_guaranteedLoot","_randomizedLoot","_frequency","_variance","_spawnChance","_spawnMarker","_spawnRadius","_spawnFire","_permanentFire","_crashName","_marker", "_markerRadius","_hint","_itemTypes","_worldName"];

_spawnChance   = 100;    // Percent chance of spawning a crash number between 0 - 100
_guaranteedLoot   = 8;    // Guaranteed Loot Spawns
_randomizedLoot   = 8;    // Random number of loot piles as well as the guaranteed ones
_spawnFire    = true;    // Spawn Smoke/Fire at the helicrash
_fadeFire    = false;   // Fade the Smoke/Fire overtime
_preWaypoints   = 5;    // Amount of way points the heli flies to before crashing
_crashDamage   = 0.5;    // Amount of damage the heli can take before crashing (between 0.1 and 1) Lower the number and the heli can take less damage before crashing 1 damage is fully destroyed and 0.1 something like a DMR could one shot the heli
_exploRange    = 200;    // How far away from the predefined crash point should the heli start crashing
_minLootRadius   = 4;    // Minimum distance for loot to spawn from the crash site in meters
_maxLootRadius   = 10;    // Maximum distance for loot to spawn from the crash site in meters
_lootTable    = "HeliCrash";  // Name of the loot table the heli gets loot from (DO NOT edit unless you know what your doing)
_markerRadius   = 400;    // Radius for the marker
_show_marker   = true;    // Show a marker on the map
_show_name    = true;    // Add the crashname to the marker

/* do not change below values if you do not know what you are doing */
_plane     = false;
_spawnMarker    = "center";
_heliModel    = ["UH1Y_DZE","UH1H_DZE","MV22","Mi17_DZ","UH60M_EP1","UH1H_TK_EP1","UralWreck","UH60M_EP1","UH1H_TK_EP1","UH60M_MEV_EP1","A10","Ka52Black","Mi24_D","AH1Z","AV8B","Su25_TK_EP1"] call BIS_fnc_selectRandom;
_crashModel    = "UH1Wreck_DZ";
_spawnRadius   = HeliCrashArea;
_porh     = "helicopter";
_safetyPoint   = [0,16000,0];
_crashName    = getText (configFile >> "CfgVehicles" >> _heliModel >> "displayName");
_spawnRoll    = round(random 100);

_finder     = "";

 

_worldName = toLower format ["%1", worldName];

switch (_worldName) do {
 case "chernarus" : {
  _heliStart  = [[1000.0,2.0],[3500.0,2.0],[5000.0,2.0],[7500.0,2.0],[9712.0,663.067],[12304.0,1175.07],[14736.0,2500.0],[16240.0,5000.0],[16240.0,7500.0],[16240.0,10000.0]] call BIS_fnc_selectRandom;
  };
 case "sauerland" : {
  _heliStart   = [[3143.7053, 519.72656],[14047.064, 736.25336],[19551.301, 1638.9634],[22871.928, 3194.9937],[3216.1506, 8066.9844],[15430.821, 7462.8496],[22722.418, 8578.207],[3399.9622, 13945.776],[16220.508, 14363.767],[10220.176, 18679.586]] call BIS_fnc_selectRandom;
  };
 case "panthera2" : {
  _heliStart   = [[2354.8118, 2898.7732],[6441.2544, 604.39148],[5837.6265, 3852.1699],[3434.9966, 7324.9521],[1250.1727, 8301.4199],[6353.0869, 5563.6592],[3011.1584, 4440.96],[4967.9551, 6376.479],[8340.8125, 4563.1436],[4582.7534, 2080.5737]] call BIS_fnc_selectRandom;
  };
 };

 

diag_log (format ["CRASHSPAWNER: %1 helicopter start points loaded",_worldName]);
 

if(_heliModel == "Su25_TK_EP1") then {
 _lootTable  = "MilitarySpecial";
 _crashModel  = "SU25Wreck";
 _plane   = true;
 _guaranteedLoot = 4;
};

 

 

etc.etc.etc......
 

Link to comment
Share on other sites

I am still getting random  script kicks for set damage 1.  Could someone be so kind as to help me with the line that goes into battleye to stop the kicks?

 

Could you post the exact error message?

 

Great script and great support  thread guys...

 

 

 

Would anyone happen to have Takistan co-ords handy?

 

Can't help you there, Richie?

Link to comment
Share on other sites

Takistan coordinates :

 

_heliStart = [[2877.6855, 703.94592],[7118.8374, 10659.661],[7281.5488, 690.51361],[9251.5283, 2722.7166],[3742.7253, 3439.4333],[1300.1748, 3303.4463],[6000.7114, 5670.394],[9339.2139, 6650.0625],[11687.854, 9396.415],[3025.9387, 9983.293]] call BIS_fnc_selectRandom;

 

Let me know if there's any issues, Takistan has sooo many mountains some could crash.

Link to comment
Share on other sites

Takistan coordinates :

_heliStart = [[2877.6855, 703.94592],[7118.8374, 10659.661],[7281.5488, 690.51361],[9251.5283, 2722.7166],[3742.7253, 3439.4333],[1300.1748, 3303.4463],[6000.7114, 5670.394],[9339.2139, 6650.0625],[11687.854, 9396.415],[3025.9387, 9983.293]] call BIS_fnc_selectRandom;

Let me know if there's any issues, Takistan has sooo many mountains some could crash.

Thank you so very much guys...  :D  & I will report back if there are any issues.. 

Link to comment
Share on other sites

how to make spawn every 30 minutes or random?

 

Hey, you can change to this to spawn every 30 minutes:

EpochEvents = [["any","any","any","any",10,"animated_crash_spawner"],["any","any","any","any",40,"animated_crash_spawner"]];

The 10 and the 40 being the minutes between 0-59 within each hour that the events spawn at.

Link to comment
Share on other sites

Takistan coordinates :

_heliStart = [[2877.6855, 703.94592],[7118.8374, 10659.661],[7281.5488, 690.51361],[9251.5283, 2722.7166],[3742.7253, 3439.4333],[1300.1748, 3303.4463],[6000.7114, 5670.394],[9339.2139, 6650.0625],[11687.854, 9396.415],[3025.9387, 9983.293]] call BIS_fnc_selectRandom;

Let me know if there's any issues, Takistan has sooo many mountains some could crash.

 

Thanks :) Updated OP

Link to comment
Share on other sites

  • 2 weeks later...

Just put this on my Takistan server and the crashes are all happening well outside the map area, in the radiation zones. Using both custom starting coordinates I made and ones found in this thread. Any idea what the problem could be?

Possibly something wrong with Takistan "HelicrashArea" value. Try changing "_spawnRadius = HeliCrashArea;" to a fixed value like 6000.

 

Lingor coords please! :D

Richie?

Link to comment
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
  • Advertisement
×
×
  • Create New...