mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
commit
ffb9e2350b
@ -19,3 +19,6 @@
|
||||
[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.
|
||||
|
||||
**Server Build 025**
|
||||
[Fixed] New workaround for inventoryOpened and locked storage protection.
|
||||
|
Binary file not shown.
Binary file not shown.
@ -3,7 +3,7 @@ private["_unit"];
|
||||
|
||||
for "_i" from 0 to 4 step 1 do {
|
||||
_unit = createGroup RESISTANCE createUnit ["Epoch_Female_F", getPos player, [], 400, "CAN_COLLIDE"];
|
||||
_unit addBackPack "B_Kitbag_Base";
|
||||
_unit addBackPack "B_FieldPack_blk";
|
||||
_unit addWeapon "Hatchet";
|
||||
_unit addMagazine "hatchet_swing";
|
||||
{_unit disableAI _x}count["TARGET","AUTOTARGET","FSM"];
|
||||
|
@ -109,7 +109,7 @@ for "_i" from 1 to _this do {
|
||||
// set locked state of secure storage
|
||||
if ((_arr select 6) != -1) then {
|
||||
_vehicle setVariable["EPOCH_Locked", true, true];
|
||||
_vehicle enableSimulationGlobal false;
|
||||
//_vehicle enableSimulationGlobal false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -16,11 +16,11 @@ _fnc_lock = {
|
||||
_this setVariable ["EPOCH_Locked", true, true];
|
||||
// force save on lock
|
||||
if !(_this in EPOCH_saveStorQueue) then { EPOCH_saveStorQueue pushBack _this };
|
||||
_this enableSimulationGlobal false;
|
||||
//_this enableSimulationGlobal false;
|
||||
};
|
||||
_fnc_unlock = {
|
||||
_this setVariable ["EPOCH_Locked", false, true];
|
||||
_this enableSimulationGlobal true;
|
||||
//_this enableSimulationGlobal true;
|
||||
};
|
||||
// functions
|
||||
|
||||
|
@ -74,7 +74,7 @@ class CfgSecConf
|
||||
checks[] = {"Fired","InventoryClosed","InventoryOpened","Killed","HandleDamage","HandleHeal","Dammaged","Hit","HitPart"};
|
||||
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 = [];};";
|
||||
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)";
|
||||
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 10);};if (locked _container in [2, 3] || _container getVariable['EPOCH_Locked', false] || _lockedNear) then {[] spawn {disableSerialization;waitUntil {!isNull findDisplay 602};_display = findDisplay 602;_ctrl_cargo = _display displayCtrl 6401;_ctrl_ground = _display displayCtrl 6321;_ctrl_cargo ctrlEnable false;ctrlSetFocus _ctrl_ground;ctrlActivate _ctrl_ground;};};";
|
||||
Killed = "_this call EPOCH_fnc_playerDeath;";
|
||||
HandleDamage = "";
|
||||
HandleHeal = "";
|
||||
|
Loading…
Reference in New Issue
Block a user