mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-18 14:12:57 +03:00
0.69 + 1.7.5.M1D15
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
private["_position","_num","_config","_itemType","_itemChance","_weights","_index","_iArray","_crashModel","_lootTable","_guaranteedLoot","_randomizedLoot","_frequency","_variance","_spawnChance","_spawnMarker","_spawnRadius","_spawnFire","_permanentFire","_crashName"];
|
||||
|
||||
waitUntil{!isNil "BIS_fnc_selectRandom"};
|
||||
|
||||
//_crashModel = _this select 0;
|
||||
//_lootTable = _this select 1;
|
||||
_guaranteedLoot = _this select 0;
|
||||
@@ -78,9 +76,7 @@ while {true} do {
|
||||
_crash setVariable ["ObjectID",1,true];
|
||||
|
||||
if (_spawnFire) then {
|
||||
dayzFire = [_crash,2,time,false,_fadeFire];
|
||||
publicVariable "dayzFire";
|
||||
nul=dayzFire spawn BIS_Effects_Burn;
|
||||
["dayzFire",[_crash,2,time,false,_fadeFire]] call broadcastRpcCallAll;
|
||||
_crash setvariable ["fadeFire",_fadeFire,true];
|
||||
};
|
||||
|
||||
@@ -92,8 +88,6 @@ while {true} do {
|
||||
_weights = dayz_CBLChances select _index;
|
||||
_cntWeights = count _weights;
|
||||
|
||||
waituntil {!isnil "fnc_buildWeightedArray"};
|
||||
|
||||
for "_x" from 1 to _num do {
|
||||
//create loot
|
||||
_index = floor(random _cntWeights);
|
||||
|
||||
Reference in New Issue
Block a user