mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Remove SQF Based Duplicate UID Fix
Use the new DLL
This commit is contained in:
@@ -224,16 +224,6 @@ dayz_objectUID2 = {
|
|||||||
_key = _key + str(round(_dir));
|
_key = _key + str(round(_dir));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
// Make sure the generated key is not a duplicate
|
|
||||||
while {true} do {
|
|
||||||
if !(_key in currentObjectUIDs) exitWith {currentObjectUIDs set [count currentObjectUIDs,_key];};
|
|
||||||
keyStartNumber = keyStartNumber + 1;
|
|
||||||
if (keyStartNumber > 40000) exitWith { //Should never fail more times than total number of objects in database
|
|
||||||
diag_log format["ERROR: dayz_objectUID2 failed to correct duplicate objectUID: %1. This should not happen.",_key];
|
|
||||||
};
|
|
||||||
_key = str keyStartNumber;
|
|
||||||
diag_log format["Duplicate UID generated by dayz_objectUID2. Automatically corrected to +1= %1. This should rarely happen.",_key];
|
|
||||||
};
|
|
||||||
_key
|
_key
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ if (_status == "ObjectStreamStart") then {
|
|||||||
_hitPoints = if ((typeName (_x select 6)) == "ARRAY") then { _x select 6 } else { [] };
|
_hitPoints = if ((typeName (_x select 6)) == "ARRAY") then { _x select 6 } else { [] };
|
||||||
_fuel = if ((typeName (_x select 7)) == "SCALAR") then { _x select 7 } else { 0 };
|
_fuel = if ((typeName (_x select 7)) == "SCALAR") then { _x select 7 } else { 0 };
|
||||||
_damage = if ((typeName (_x select 8)) == "SCALAR") then { _x select 8 } else { 0.9 };
|
_damage = if ((typeName (_x select 8)) == "SCALAR") then { _x select 8 } else { 0.9 };
|
||||||
_worldspace call dayz_objectUID2; // Set objectUIDs in currentObjectUIDs list to prevent duplicates
|
|
||||||
|
|
||||||
//set object to be in maintenance mode
|
//set object to be in maintenance mode
|
||||||
_maintenanceMode = false;
|
_maintenanceMode = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user