I was just wondering if anyone could help me out here. Im running taviana 2.0 on a dayst server and I want to enlarge the radius of the heli crash site spawns. I have read the tuts in here how to do it but my files seem to be a lot more different to the ones posted.
In my server monitor.sqf file I have these lines:
Where [getMarkerPos "center",0,4000,10,0,2000,0] is what I am assuming is the heli crash site center location. But it does not mention heli crash spawns. Yet in my server functions.sqf I have these lines:
I would like to also change the loot that spawns at the crash sites, so again I am assuming that some of these lines are for the loot tables.
Any help would be greatly appreciated.
In my server monitor.sqf file I have these lines:
if (!_wsDone) then {
if (count _worldspace >= 1) then { _dir = _worldspace select 0; };
_pos = [getMarkerPos "center",0,4000,10,0,2000,0] call BIS_fnc_findSafePos;
if (count _pos < 3) then { _pos = [_pos select 0,_pos select 1,0]; };
diag_log ("MOVED OBJ: " + str(_idKey) + " of class " + _type + " to pos: " + str(_pos));
Where [getMarkerPos "center",0,4000,10,0,2000,0] is what I am assuming is the heli crash site center location. But it does not mention heli crash spawns. Yet in my server functions.sqf I have these lines:
spawn_heliCrash = {
private["_position","_veh","_num","_config","_itemType","_itemChance","_weights","_index","_iArray"];
waitUntil{!isNil "BIS_fnc_selectRandom"};
if (isDedicated) then {
_position = [getMarkerPos "center",0,4000,10,0,2000,0] call BIS_fnc_findSafePos;
diag_log("DEBUG: Spawning a crashed helicopter at " + str(_position));
_veh = createVehicle ["UH1Wreck_DZ",_position, [], 0, "CAN_COLLIDE"];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_veh];
_veh setVariable ["ObjectID",1,true];
dayzFire = [_veh,2,time,false,false];
publicVariable "dayzFire";
if (isServer) then {
nul=dayzFire spawn BIS_Effects_Burn;
};
_num = round(random 4) + 3;
_config = configFile >> "CfgBuildingLoot" >> "HeliCrash";
_itemType = [] + getArray (_config >> "itemType");
//diag_log ("DW_DEBUG: _itemType: " + str(_itemType));
_itemChance = [] + getArray (_config >> "itemChance");
//diag_log ("DW_DEBUG: _itemChance: " + str(_itemChance));
//diag_log ("DW_DEBUG: (isnil fnc_buildWeightedArray): " + str(isnil "fnc_buildWeightedArray"));
waituntil {!isnil "fnc_buildWeightedArray"};
_weights = [];
_weights = [_itemType,_itemChance] call fnc_buildWeightedArray;
//diag_log ("DW_DEBUG: _weights: " + str(_weights));
for "_x" from 1 to _num do {
//create loot
_index = _weights call BIS_fnc_selectRandom;
sleep 1;
if (count _itemType > _index) then {
//diag_log ("DW_DEBUG: " + str(count (_itemType)) + " select " + str(_index));
_iArray = _itemType select _index;
_iArray set [2,_position];
_iArray set [3,5];
_iArray call spawn_loot;
_nearby = _position nearObjects ["WeaponHolder",20];
{
_x setVariable ["permaLoot",true];
} forEach _nearby;
Click to expand...
Again, here I have this line : [getMarkerPos "center",0,4000,10,0,2000,0] So would I need to change the 4000 in this file, the other file or both files to make my crash site radius larger?I would like to also change the loot that spawns at the crash sites, so again I am assuming that some of these lines are for the loot tables.
Any help would be greatly appreciated.