0.3.6.006

This commit is contained in:
vbawol 2015-12-08 11:07:43 -06:00
parent f29efacc2d
commit 40327bab0f
5 changed files with 26 additions and 20 deletions

View File

@ -1,4 +1,5 @@
**Client**
[Fixed] Updated Hitpoints to 1.54 for all custom Epoch characters, this fixes the hitpoint .rpt errors since 1.54 as well.
[Fixed] Reduce run speed of Sappers since 1.54 update.
@ -6,5 +7,7 @@
[Fixed] Typo in server side AH event handler code and repacked a3_server_settings.pbo.
[Fixed] Storage was incorrectly set to set damage to 99% instead of 1% to temp force maintenance option after restart.
[Fixed] Add player objects to remains collector, this should allow for proper corpse cleanup.
[Changed] Weapons will now only spawn with a single magazine and a random ammo count.
[Changed] Magazines now spawn with a random ammo count.
[Changed] Disable simulation of locked storage devices. This also prevents removal of items until device is unlocked/re-simulated.
[Info] Removed old .bikey and added new one for 0360.

View File

@ -21,7 +21,7 @@ if (!isNull findDisplay 602) then {
_bar = uiNameSpace getVariable "RscCustomProgressUniform";
_uniformArmor = (uniform player) call EPOCH_uniformArmorCalc;
_totalArmor = _totalArmor + _uniformArmor;
_finalArmor = linearConversion [0,EPOCH_MAX_ARMOR select 0,_uniformArmor,0.01,1];
_finalArmor = linearConversion [0,EPOCH_MAX_ARMOR select 0,_uniformArmor,0.01,1,true];
_bar progressSetPosition _finalArmor;
if (_selectedItem == 801) then {
@ -33,7 +33,7 @@ if (!isNull findDisplay 602) then {
_bar = uiNameSpace getVariable "RscCustomProgressVest";
_vestArmor = (vest player) call EPOCH_gearArmorCalc;
_totalArmor = _totalArmor + _vestArmor;
_finalArmor = linearConversion [0,EPOCH_MAX_ARMOR select 1,_vestArmor,0.01,1];
_finalArmor = linearConversion [0,EPOCH_MAX_ARMOR select 1,_vestArmor,0.01,1,true];
_bar progressSetPosition _finalArmor;
if (_selectedItem == 701) then {
@ -45,7 +45,7 @@ if (!isNull findDisplay 602) then {
_bar = uiNameSpace getVariable "RscCustomProgressHeadgear";
_headgearArmor = (headgear player) call EPOCH_gearArmorCalc;
_totalArmor = _totalArmor + _headgearArmor;
_finalArmor = linearConversion [0,EPOCH_MAX_ARMOR select 2,_headgearArmor,0.01,1];
_finalArmor = linearConversion [0,EPOCH_MAX_ARMOR select 2,_headgearArmor,0.01,1,true];
_bar progressSetPosition _finalArmor;
if (_selectedItem == 605) then {
@ -56,11 +56,11 @@ if (!isNull findDisplay 602) then {
_totalArmorUI = uiNameSpace getVariable "RscCustomProgressTotal";
_bar = _totalArmorUI select 0;
_finalArmor = linearConversion [0,_totalArmorMax,_totalArmor,0.01,1];
_finalArmor = linearConversion [0,_totalArmorMax,_totalArmor,0.01,1,true];
_bar progressSetPosition _finalArmor;
_bar_compare = _totalArmorUI select 1;
_finalArmor = linearConversion [0,_totalArmorMax,_newArmor,0.01,1];
_finalArmor = linearConversion [0,_totalArmorMax,_newArmor,0.01,1,true];
_bar_compare progressSetPosition _finalArmor;
};

View File

@ -71,14 +71,14 @@
_thirst ctrlShow (EPOCH_playerThirst <= 625);
if (ctrlShown _thirst) then {
[_thirst,_thirsty] call _fadeUI;
_thirstScale = linearConversion [0,EPOCH_playerThirst,2500,0.01,1];
_thirstScale = linearConversion [0,EPOCH_playerThirst,2500,0.01,1,true];
_thirst ctrlSetTextColor [_thirstScale, _thirstScale, 0.9, 1];
};
_hunger ctrlShow (EPOCH_playerHunger <= 1250);
if (ctrlShown _hunger) then {
[_hunger,_hungry] call _fadeUI;
_hungerScale = linearConversion [0,EPOCH_playerHunger,5000,0.01,1];
_hungerScale = linearConversion [0,EPOCH_playerHunger,5000,0.01,1,true];
_hunger ctrlSetTextColor [1, _hungerScale, _hungerScale, 1];
};
@ -92,7 +92,7 @@
_hazzard ctrlShow (EPOCH_playerToxicity > 1);
if (ctrlShown _hazzard) then {
[_hazzard,(EPOCH_playerToxicity >= 55)] call _fadeUI;
_toxicScale = 1-linearConversion [0,EPOCH_playerToxicity,100,0.01,1];
_toxicScale = 1-linearConversion [0,EPOCH_playerToxicity,100,0.01,1,true];
_hazzard ctrlSetTextColor [_toxicScale, 1, _toxicScale, 1];
};
@ -122,7 +122,7 @@
_emergency ctrlShow _critical;
if (ctrlShown _emergency) then {
[_emergency,(EPOCH_playerBloodP > 140)] call _fadeUI;
_emergencyScale = 1-linearConversion [0,EPOCH_playerBloodP,180,0.01,1];
_emergencyScale = 1-linearConversion [0,EPOCH_playerBloodP,180,0.01,1,true];
_emergency ctrlSetTextColor [1, _emergencyScale, _emergencyScale, 1];
};

View File

@ -32,17 +32,17 @@ if !(isNull _object) then{
_lootItemWeightedArray = [_x, "CfgLootTable", "items"] call EPOCH_weightedArray;
// diag_log format["%1: lootItemWeightedArray1 %2", __FILE__, _lootItemWeightedArray];
_lootItemArray = _lootItemWeightedArray select 0;
if !(_lootItemArray isEqualTo[]) then {
_weightedItemArray = _lootItemWeightedArray select 1;
_weightedItemArrayCount = _lootItemWeightedArray select 2;
_randomItemArray = _lootItemArray select (_weightedItemArray select floor(random _weightedItemArrayCount));
_randomItem = _randomItemArray select 0;
_type = _randomItemArray select 1;
_quan = 1;
/*
@ -62,7 +62,10 @@ if !(isNull _object) then{
_loop = false;
};
case "magazine": {
_object addMagazineCargoGlobal [_randomItem, _quan];
//_object addMagazineCargoGlobal [_randomItem, _quan];
_magazineSize = getNumber (configFile >> "CfgMagazines" >> _randomItem >> "count");
_object addMagazineAmmoCargo[_randomItem, _quan, ceil(random(_magazineSize))]];
_loop = false;
};
case "backpack": {
@ -72,19 +75,19 @@ if !(isNull _object) then{
case "weapon": {
_object addWeaponCargoGlobal [_randomItem, _quan];
_mags = getArray (configFile >> "CfgWeapons" >> _randomItem >> "magazines");
if !(_mags isEqualTo []) then {
_object addMagazineCargoGlobal [_mags select 0, ceil(random 2)];
// add only one free magazine with random ammo count
_magazineSize = getNumber (configFile >> "CfgMagazines" >> (_mags select 0) >> "count");
_object addMagazineAmmoCargo[_mags select 0, 1, ceil(random(_magazineSize))];
};
_loop = false;
};
case "CfgLootTable": {
// go down the rabit hole
// go down the rabit hole
_lootItemWeightedArray = [_randomItem, "CfgLootTable", "items"] call EPOCH_weightedArray;
// diag_log format["%1: lootItemWeightedArray2 %2", __FILE__, _lootItemWeightedArray];
_lootItemArray = _lootItemWeightedArray select 0;
if !(_lootItemArray isEqualTo[]) then {
@ -111,4 +114,4 @@ if !(isNull _object) then{
} forEach _loots;
};
};
};