mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Greatly optimize safe gear handling
- Safe inventory arrays are no longer sent over network to all machines on server startup and on each lock/unlock - Disabled user input then closed gear dialog during safe lock/unlock/pack to block various duping methods. - Moved safe creation, deletion and gear handling to server. This cuts down on add[Magazine/Weapon/Backpack]Cargo, createVehicle and deleteVehicle BE logs.
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
/*
|
||||
1. Waits for an object to be created and then reveals it to the player.
|
||||
2. Optionally deletes a temporary sign or marker placeholder object.
|
||||
|
||||
Parameters:
|
||||
_this select 0: string - object class name to reveal
|
||||
_this select 1: object - sign object or ObjNull if none
|
||||
|
||||
["objectClassName", objNull] spawn fn_waitForObject;
|
||||
*/
|
||||
|
||||
private ["_object","_sign"];
|
||||
|
||||
_object = _this select 0;
|
||||
@@ -8,5 +19,8 @@ waitUntil {
|
||||
!isNull (nearestObject [player,_object])
|
||||
};
|
||||
|
||||
deleteVehicle _sign;
|
||||
if (!isNull _sign) then {
|
||||
deleteVehicle _sign;
|
||||
};
|
||||
|
||||
player reveal (nearestObject [player,_object]);
|
||||
Reference in New Issue
Block a user