Merge pull request #439 from EpochModTeam/experimental

Release 0.3.5.055
This commit is contained in:
vbawol 2015-12-02 15:23:18 -06:00
commit de524b44ea
9 changed files with 18 additions and 6 deletions

View File

@ -32,3 +32,9 @@
[Fixed] EPOCH_fnc_returnConfigEntry and V2 functions did not use defaults properly. [Fixed] EPOCH_fnc_returnConfigEntry and V2 functions did not use defaults properly.
[Info] Server pack Tools folder now contains InstalEpoch.cmd that is an updated version of the command line download Epoch client files download script for steam workshop. [Info] Server pack Tools folder now contains InstalEpoch.cmd that is an updated version of the command line download Epoch client files download script for steam workshop.
[Info] Removed old .bikey and added new one for 0350. [Info] Removed old .bikey and added new one for 0350.
Build 052-055
[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] Disable simulation of locked storage devices. This also prevents removal of items until device is unlocked/re-simulated.

View File

@ -51,7 +51,7 @@ class Esseker {
"water_source_f.p3d", "water_source_f.p3d",
"kasna_new.p3d" "kasna_new.p3d"
}; };
// main config // main config
TrashClasses[] = { "Trash", "TrashSmall", "TrashVehicle", "PumpkinPatch", "TrashFood" }; TrashClasses[] = { "Trash", "TrashSmall", "TrashVehicle", "PumpkinPatch", "TrashFood" };
TrashSmall[] = { TrashSmall[] = {
@ -60,7 +60,7 @@ class Esseker {
}; };
PumpkinPatch[] = { PumpkinPatch[] = {
"p_pumpkin_summer.p3d", "p_pumpkin_summer.p3d",
"pumpkin.p3d", "pumpkin.p3d"
}; };
TrashFood[] = { TrashFood[] = {
}; };
@ -158,4 +158,4 @@ class Esseker {
"uaz_wrecked.p3d", "uaz_wrecked.p3d",
"ural_wrecked.p3d" "ural_wrecked.p3d"
}; };
}; };

View File

@ -123,9 +123,10 @@ if (typename _this == "ARRAY") then {
}; };
_newPlyr = _group createUnit[_class, _location, [], 0, "CAN_COLLIDE"]; _newPlyr = _group createUnit[_class, _location, [], 0, "CAN_COLLIDE"];
if !(isNull _newPlyr) then { if !(isNull _newPlyr) then {
addToRemainsCollector[_newPlyr];
//diag_log format ["DEBUG Created New Player: %1", _newPlyr]; //diag_log format ["DEBUG Created New Player: %1", _newPlyr];
{ {
_newPlyr disableAI _x; _newPlyr disableAI _x;

View File

@ -90,6 +90,8 @@ if (!local _plyr) then {
_newPlyr = _group createUnit[_class, _location, [], 0, "CAN_COLLIDE"]; _newPlyr = _group createUnit[_class, _location, [], 0, "CAN_COLLIDE"];
addToRemainsCollector[_newPlyr];
_newPlyr allowDammage false; _newPlyr allowDammage false;
{ {
_newPlyr disableAI _x; _newPlyr disableAI _x;

View File

@ -72,7 +72,7 @@ for "_i" from 1 to _this do {
}; };
// temp set damage to mark for maint // temp set damage to mark for maint
_vehicle setDamage 0.99; _vehicle setDamage 0.01;
_vehicle setposATL _location; _vehicle setposATL _location;
@ -109,6 +109,7 @@ for "_i" from 1 to _this do {
// set locked state of secure storage // set locked state of secure storage
if ((_arr select 6) != -1) then { if ((_arr select 6) != -1) then {
_vehicle setVariable["EPOCH_Locked", true, true]; _vehicle setVariable["EPOCH_Locked", true, true];
_vehicle enableSimulationGlobal false;
}; };
}; };
}; };

View File

@ -16,9 +16,11 @@ _fnc_lock = {
_this setVariable ["EPOCH_Locked", true, true]; _this setVariable ["EPOCH_Locked", true, true];
// force save on lock // force save on lock
if !(_this in EPOCH_saveStorQueue) then { EPOCH_saveStorQueue pushBack _this }; if !(_this in EPOCH_saveStorQueue) then { EPOCH_saveStorQueue pushBack _this };
_this enableSimulationGlobal false;
}; };
_fnc_unlock = { _fnc_unlock = {
_this setVariable ["EPOCH_Locked", false, true]; _this setVariable ["EPOCH_Locked", false, true];
_this enableSimulationGlobal true;
}; };
// functions // functions

View File

@ -64,7 +64,7 @@ class CfgSecConf
checks[] = {"Fired","InventoryClosed","InventoryOpened","Killed","HandleDamage","HandleHeal","Dammaged","Hit","HitPart"}; checks[] = {"Fired","InventoryClosed","InventoryOpened","Killed","HandleDamage","HandleHeal","Dammaged","Hit","HitPart"};
Fired = "_this call EPOCH_fnc_playerFired;"; Fired = "_this call EPOCH_fnc_playerFired;";
InventoryClosed = "if !(EPOCH_arr_interactedObjs isEqualTo[]) then {EPOCH_arr_interactedObjs remoteExec['EPOCH_server_save_vehicles', 2]; EPOCH_arr_interactedObjs = [];};"; InventoryClosed = "if !(EPOCH_arr_interactedObjs isEqualTo[]) then {EPOCH_arr_interactedObjs remoteExec['EPOCH_server_save_vehicles', 2]; EPOCH_arr_interactedObjs = [];};";
InventoryOpened = "_this spawn EPOCH_initUI; (locked (_this select 1) in [2, 3] || (_this select 1) getVariable['EPOCH_Locked', false])"; InventoryOpened = "_this spawn EPOCH_initUI;_container = _this select 1; _lockedNear = false;if (_container isKindOf 'GroundWeaponHolder') then {{if (locked _x in [2, 3] || _x getVariable['EPOCH_Locked', false]) exitWith {_lockedNear = true}} forEach (player nearSupplies 5);};(locked _container in [2, 3] || _container getVariable['EPOCH_Locked', false] || _lockedNear)";
Killed = "_this call EPOCH_fnc_playerDeath;"; Killed = "_this call EPOCH_fnc_playerDeath;";
HandleDamage = ""; HandleDamage = "";
HandleHeal = ""; HandleHeal = "";