mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix loot spawn + BIS_air_destruction
This commit is contained in:
@@ -2,10 +2,9 @@
|
||||
Created exclusively for ArmA2:OA - DayZMod.
|
||||
Please request permission to use/alter/distribute from project leader (R4Z0R49)
|
||||
*/
|
||||
//private ["_lootChance","_index","_weights","_cntWeights","_itemType","_qty","_rnd","_iPos","_obj","_type","_config","_pos","_itemTypes","_positions","_bias"];
|
||||
private ["_lootChance"];
|
||||
_obj = _this;
|
||||
_type = typeOf _obj;
|
||||
_type = configName (configFile >> "CfgBuildingLoot" >> (typeOf _obj)); //make sure we return the same case
|
||||
_config = configFile >> "CfgBuildingLoot" >> _type;
|
||||
_pos = [] + getArray (_config >> "lootPos");
|
||||
_itemTypes = [] + getArray (_config >> "lootType");
|
||||
@@ -33,7 +32,6 @@ _ShuffleArray = {
|
||||
};
|
||||
_positions = _pos call _ShuffleArray;
|
||||
|
||||
|
||||
// bias for this building. The lower it is, the lower chance some of the lootpiles will spawn
|
||||
_bias = 50 max _lootSpawnBias;
|
||||
_bias = 100 min _bias;
|
||||
|
||||
Reference in New Issue
Block a user