mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Updated Crashmodels
This commit is contained in:
@@ -20,11 +20,11 @@ while {true} do {
|
|||||||
// Allows the variance to act as +/- from the spawn frequency timer
|
// Allows the variance to act as +/- from the spawn frequency timer
|
||||||
_timeAdjust = round((random(_variance * 2)) - _variance);
|
_timeAdjust = round((random(_variance * 2)) - _variance);
|
||||||
_timeToSpawn = time + _frequency + _timeAdjust;
|
_timeToSpawn = time + _frequency + _timeAdjust;
|
||||||
|
|
||||||
//Adding some Random systems
|
//Adding some Random systems
|
||||||
_crashModel = ["UH60Wreck_DZ","UH1Wreck_DZ","Mass_grave_DZ"] call BIS_fnc_selectRandom;
|
_crashModel = ["UH60Wreck_DZ","UH1Wreck_DZ","UH60_NAVY_Wreck_DZ","UH60_ARMY_Wreck_DZ","UH60_NAVY_Wreck_burned_DZ","UH60_ARMY_Wreck_burned_DZ","Mass_grave_DZ"] call BIS_fnc_selectRandom;
|
||||||
|
|
||||||
|
|
||||||
if(_crashModel == "Mass_grave_DZ") then {
|
if(_crashModel == "Mass_grave_DZ") then {
|
||||||
_lootTable = "MassGrave";
|
_lootTable = "MassGrave";
|
||||||
} else {
|
} else {
|
||||||
@@ -34,7 +34,7 @@ while {true} do {
|
|||||||
//Table without 50 cals
|
//Table without 50 cals
|
||||||
//_lootTable = ["Military","HeliCrash_No50s","MilitarySpecial"] call BIS_fnc_selectRandom;
|
//_lootTable = ["Military","HeliCrash_No50s","MilitarySpecial"] call BIS_fnc_selectRandom;
|
||||||
};
|
};
|
||||||
|
|
||||||
_crashName = getText (configFile >> "CfgVehicles" >> _crashModel >> "displayName");
|
_crashName = getText (configFile >> "CfgVehicles" >> _crashModel >> "displayName");
|
||||||
|
|
||||||
diag_log(format["CRASHSPAWNER: %1%2 chance to spawn '%3' with loot table '%4' in %5 seconds", round(_spawnChance * 100), '%', _crashName, _lootTable, _timeToSpawn]);
|
diag_log(format["CRASHSPAWNER: %1%2 chance to spawn '%3' with loot table '%4' in %5 seconds", round(_spawnChance * 100), '%', _crashName, _lootTable, _timeToSpawn]);
|
||||||
@@ -113,7 +113,7 @@ while {true} do {
|
|||||||
_itemType = _itemTypes select _index;
|
_itemType = _itemTypes select _index;
|
||||||
[_itemType select 0, _itemType select 1, _position, 5] call spawn_loot;
|
[_itemType select 0, _itemType select 1, _position, 5] call spawn_loot;
|
||||||
|
|
||||||
diag_log(format["CRASHSPAWNER: Loot spawn at '%1' with loot table '%2'", _crashName, _lootTable]);
|
diag_log(format["CRASHSPAWNER: Loot spawn at '%1' with loot table '%2'", _crashName, _lootTable]);
|
||||||
|
|
||||||
// ReammoBox is preferred parent class here, as WeaponHolder wouldn't match MedBox0 and other such items.
|
// ReammoBox is preferred parent class here, as WeaponHolder wouldn't match MedBox0 and other such items.
|
||||||
_nearby = _position nearObjects ["ReammoBox", sizeOf(_crashModel)];
|
_nearby = _position nearObjects ["ReammoBox", sizeOf(_crashModel)];
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ _fadeFire = false;
|
|||||||
|
|
||||||
_spawnRoll = random 1;
|
_spawnRoll = random 1;
|
||||||
if (_spawnRoll <= _spawnChance) then {
|
if (_spawnRoll <= _spawnChance) then {
|
||||||
|
|
||||||
_crashModel = ["UH60Wreck_DZ","UH1Wreck_DZ","Mass_grave_DZ"] call BIS_fnc_selectRandom;
|
_crashModel = ["UH60Wreck_DZ","UH1Wreck_DZ","UH60_NAVY_Wreck_DZ","UH60_ARMY_Wreck_DZ","UH60_NAVY_Wreck_burned_DZ","UH60_ARMY_Wreck_burned_DZ","Mass_grave_DZ"] call BIS_fnc_selectRandom;
|
||||||
|
|
||||||
if(_crashModel == "Mass_grave_DZ") then {
|
if(_crashModel == "Mass_grave_DZ") then {
|
||||||
_lootTable = "MassGrave";
|
_lootTable = "MassGrave";
|
||||||
@@ -21,7 +21,7 @@ if (_spawnRoll <= _spawnChance) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_crashName = getText (configFile >> "CfgVehicles" >> _crashModel >> "displayName");
|
_crashName = getText (configFile >> "CfgVehicles" >> _crashModel >> "displayName");
|
||||||
|
|
||||||
// Loop for a new location without any vehicles
|
// Loop for a new location without any vehicles
|
||||||
_needsrelocated = true;
|
_needsrelocated = true;
|
||||||
while {_needsrelocated} do {
|
while {_needsrelocated} do {
|
||||||
@@ -73,7 +73,7 @@ if (_spawnRoll <= _spawnChance) then {
|
|||||||
publicVariable "PVDZE_obj_Fire";
|
publicVariable "PVDZE_obj_Fire";
|
||||||
_crash setvariable ["fadeFire",_fadeFire,true];
|
_crash setvariable ["fadeFire",_fadeFire,true];
|
||||||
};
|
};
|
||||||
|
|
||||||
_config = configFile >> "CfgBuildingLoot" >> _lootTable;
|
_config = configFile >> "CfgBuildingLoot" >> _lootTable;
|
||||||
if (DZE_MissionLootTable) then {
|
if (DZE_MissionLootTable) then {
|
||||||
_config = missionConfigFile >> "CfgBuildingLoot" >> _lootTable;;
|
_config = missionConfigFile >> "CfgBuildingLoot" >> _lootTable;;
|
||||||
@@ -89,9 +89,9 @@ if (_spawnRoll <= _spawnChance) then {
|
|||||||
_index = _weights select _index;
|
_index = _weights select _index;
|
||||||
_itemType = _itemTypes select _index;
|
_itemType = _itemTypes select _index;
|
||||||
[_itemType select 0, _itemType select 1, _position, 5] call spawn_loot;
|
[_itemType select 0, _itemType select 1, _position, 5] call spawn_loot;
|
||||||
//diag_log(format["CRASHSPAWNER: Loot spawn at '%1' with loot table '%2'", _crashName, _lootTable]);
|
//diag_log(format["CRASHSPAWNER: Loot spawn at '%1' with loot table '%2'", _crashName, _lootTable]);
|
||||||
};
|
};
|
||||||
|
|
||||||
// ReammoBox is preferred parent class here, as WeaponHolder wouldn't match MedBox0 and other such items.
|
// ReammoBox is preferred parent class here, as WeaponHolder wouldn't match MedBox0 and other such items.
|
||||||
_nearby = _position nearObjects ["ReammoBox", sizeOf(_crashModel)];
|
_nearby = _position nearObjects ["ReammoBox", sizeOf(_crashModel)];
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user