mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
0.67
This commit is contained in:
@@ -1087,7 +1087,7 @@ class FSM
|
||||
"_world = toUpper(worldName); //toUpper(getText (configFile >> ""CfgWorlds"" >> (worldName) >> ""description""));" \n
|
||||
"_nearestCity = (nearestLocations [getPos player, [""NameCityCapital"",""NameCity"",""NameVillage"",""NameLocal""],1000] select 0);" \n
|
||||
"_town = ""Wilderness"";" \n
|
||||
"if (!isNil _nearestCity) then {_town = text _nearestCity};" \n
|
||||
"if (!isNil ""_nearestCity"") then {_town = text _nearestCity};" \n
|
||||
"" \n
|
||||
"_strTime = call curTimeStr;" \n
|
||||
"_strDate = date;" \n
|
||||
|
||||
@@ -73,11 +73,11 @@ _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
|
||||
while {_retry < 99} do {
|
||||
while {_retry < 15} do {
|
||||
|
||||
// GET DB ID
|
||||
_key = format["CHILD:388:%1:",_uid];
|
||||
@@ -98,17 +98,18 @@ while {_retry < 99} do {
|
||||
};
|
||||
};
|
||||
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";
|
||||
|
||||
// try this instead of commented out ID code above
|
||||
_object setVariable ["ObjectUID", _uid, true];
|
||||
// worked except vehicle pos was not saved
|
||||
// _object setVariable ["ObjectUID", _uid, true];
|
||||
|
||||
_object setVariable ["lastUpdate",time];
|
||||
_object setVariable ["CharacterID", _characterID, true];
|
||||
|
||||
@@ -322,14 +322,11 @@ spawn_roadblocks = {
|
||||
|
||||
if((count _istoomany) > 0) exitWith { diag_log("DEBUG: Too many at " + str(_position)); };
|
||||
|
||||
//_isRoad = isOnRoad _position;
|
||||
//_marker = createMarker [str(_position) , _position];
|
||||
//_marker setMarkerShape "ICON";
|
||||
//_marker setMarkerType "DOT";
|
||||
//_marker setMarkerText "ON";
|
||||
|
||||
_marker = createMarker [str(_position) , _position];
|
||||
_marker setMarkerShape "ICON";
|
||||
_marker setMarkerType "DOT";
|
||||
_marker setMarkerText "ON";
|
||||
|
||||
|
||||
waitUntil{!isNil "BIS_fnc_selectRandom"};
|
||||
_spawnveh = _WreckList call BIS_fnc_selectRandom;
|
||||
waitUntil{!isNil "BIS_fnc_selectRandom"};
|
||||
@@ -346,7 +343,7 @@ spawn_roadblocks = {
|
||||
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_veh];
|
||||
_veh setVariable ["ObjectID",1,true];
|
||||
|
||||
_num = round(random 3) + 1;
|
||||
_num = round(random 3);
|
||||
_config = configFile >> "CfgBuildingLoot" >> _spawnloot;
|
||||
_itemType = [] + getArray (_config >> "itemType");
|
||||
_itemChance = [] + getArray (_config >> "itemChance");
|
||||
|
||||
Reference in New Issue
Block a user