test to fix case sensitivity with building spawn loot

This commit is contained in:
vbawol
2013-04-10 18:33:45 -05:00
parent 844c814cfe
commit 4a2cb2a15f

View File

@@ -1,7 +1,10 @@
private["_obj","_type","_config","_positions","_iPos","_nearBy","_itemType","_itemTypes","_itemChances","_lootChance","_weights","_cntWeights","_index"];
_obj = _this select 0;
_type = typeOf _obj;
// experiment to get true classname to prevent issues with case
_type = configName (configFile >> "CfgVehicles" >> (typeOf _obj));
diag_log format["Spawning loot for: %1", _type];
_config = configFile >> "CfgBuildingLoot" >> _type;
_positions = [] + getArray (_config >> "lootPos");