From 88ded0f3c09055b047f93898bbab818458688fcf Mon Sep 17 00:00:00 2001 From: icomrade Date: Tue, 27 May 2014 13:51:35 -0400 Subject: [PATCH] Fixes --- SQF/dayz_code/medical/self_transfusion.sqf | 2 +- SQF/dayz_server/modules/crash_spawner.sqf | 2 +- SQF/dayz_server/modules/supply_drop.sqf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/medical/self_transfusion.sqf b/SQF/dayz_code/medical/self_transfusion.sqf index 2457ab7d4..b573e8075 100644 --- a/SQF/dayz_code/medical/self_transfusion.sqf +++ b/SQF/dayz_code/medical/self_transfusion.sqf @@ -2,7 +2,7 @@ private ["_started","_finished","_animState","_isMedic","_num_removed","_unit"," if (!DZE_SelfTransfuse) exitWith {}; _unit = player; _lastused = selfTransfusionTime; -_timeout = (DZE_selfTransfuse_Values select 3); +_timeout = (DZE_selfTransfuse_Values select 2); if ((round(time - _lastused)) <= _timeout) exitWith {cutText [format[(localize "str_actions_medical_18"),(_timeout - (round(time - _lastused)))] , "PLAIN DOWN"]}; call fnc_usec_medic_removeActions; diff --git a/SQF/dayz_server/modules/crash_spawner.sqf b/SQF/dayz_server/modules/crash_spawner.sqf index 44941f626..3dee0a21f 100644 --- a/SQF/dayz_server/modules/crash_spawner.sqf +++ b/SQF/dayz_server/modules/crash_spawner.sqf @@ -79,7 +79,7 @@ if (_spawnRoll <= _spawnChance) then { } else { _itemTypes = [] + getArray (configFile >> "CfgBuildingLoot" >> _lootTable >> "lootType"); }; - _CBLBase = dayz_CBLBase find _lootTable; + _CBLBase = dayz_CBLBase find (toLower(_lootTable)); _weights = dayz_CBLChances select _CBLBase; _cntWeights = count _weights; diff --git a/SQF/dayz_server/modules/supply_drop.sqf b/SQF/dayz_server/modules/supply_drop.sqf index 3951a24f6..5ce05007a 100644 --- a/SQF/dayz_server/modules/supply_drop.sqf +++ b/SQF/dayz_server/modules/supply_drop.sqf @@ -45,7 +45,7 @@ if (_spawnRoll <= _spawnChance) then { } else { _itemTypes = [] + getArray (configFile >> "CfgBuildingLoot" >> _lootTable >> "lootType"); }; - _CBLBase = dayz_CBLBase find _lootTable; + _CBLBase = dayz_CBLBase find (toLower(_lootTable)); _weights = dayz_CBLChances select _CBLBase; _cntWeights = count _weights;