mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-21 15:40:50 +03:00
0.66
This commit is contained in:
@@ -73,6 +73,7 @@ _key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, _da
|
||||
diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_key call server_hiveWrite;
|
||||
|
||||
/*
|
||||
_done = false;
|
||||
_retry = 0;
|
||||
// TODO: Needs major overhaul
|
||||
@@ -96,18 +97,18 @@ while {_retry < 99} do {
|
||||
_retry = _retry + 1;
|
||||
};
|
||||
};
|
||||
|
||||
if(!_done) exitWith { deleteVehicle _object; diag_log("CUSTOM: failed to get id for : " + str(_uid)); };
|
||||
*/
|
||||
|
||||
// disable marker later
|
||||
//_marker = createMarker [str(_location) , _location];
|
||||
//_marker setMarkerShape "ICON";
|
||||
//_marker setMarkerType "DOT";
|
||||
//_marker setMarkerText (typeOf _object);
|
||||
//_marker setMarkerColor "ColorBlue";
|
||||
_marker = createMarker [str(_location) , _location];
|
||||
_marker setMarkerShape "ICON";
|
||||
_marker setMarkerType "DOT";
|
||||
_marker setMarkerText (typeOf _object);
|
||||
_marker setMarkerColor "ColorBlue";
|
||||
|
||||
// not needed yet
|
||||
// _object setVariable ["ObjectUID", _uid, true];
|
||||
// try this instead of commented out ID code above
|
||||
_object setVariable ["ObjectUID", _uid, true];
|
||||
|
||||
_object setVariable ["lastUpdate",time];
|
||||
_object setVariable ["CharacterID", _characterID, true];
|
||||
|
||||
@@ -204,14 +204,14 @@ spawn_vehicles = {
|
||||
_qty = {_x == _vehicle} count serverVehicleCounter;
|
||||
|
||||
// If under limit allow to proceed
|
||||
if(_qty < _velimit) then {
|
||||
if(_qty <= _velimit) then {
|
||||
_isOverLimit = false;
|
||||
};
|
||||
|
||||
// TODO add counter to stop after X attempts
|
||||
// counter to stop after 5 attempts
|
||||
_counter = _counter + 1;
|
||||
|
||||
if(_counter > 5) then {
|
||||
if(_counter >= 5) then {
|
||||
_isOverLimit = false;
|
||||
_isAbort = true;
|
||||
};
|
||||
|
||||
@@ -169,7 +169,7 @@ diag_log "HIVE: Starting";
|
||||
_totalvehicles = _totalvehicles + 1;
|
||||
|
||||
// total each vehicle
|
||||
serverVehicleCounter set [count _serverVehicleCounter,_type];
|
||||
serverVehicleCounter set [count serverVehicleCounter,_type];
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user