mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-18 02:06:39 +03:00
added document
This commit is contained in:
@@ -40,7 +40,7 @@ class CfgLoot {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
0.07,
|
0.07,
|
||||||
0.09,
|
0.08,
|
||||||
0.09,
|
0.09,
|
||||||
0.09,
|
0.09,
|
||||||
0.09,
|
0.09,
|
||||||
@@ -56,7 +56,7 @@ class CfgLoot {
|
|||||||
0.06,
|
0.06,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01
|
0.02
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
office2[] = {
|
office2[] = {
|
||||||
@@ -84,7 +84,7 @@ class CfgLoot {
|
|||||||
{
|
{
|
||||||
0.07,
|
0.07,
|
||||||
0.08,
|
0.08,
|
||||||
0.09,
|
0.08,
|
||||||
0.09,
|
0.09,
|
||||||
0.09,
|
0.09,
|
||||||
0.05,
|
0.05,
|
||||||
@@ -100,7 +100,7 @@ class CfgLoot {
|
|||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01
|
0.02
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
food[] = {
|
food[] = {
|
||||||
@@ -181,7 +181,7 @@ class CfgLoot {
|
|||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.08,
|
0.07,
|
||||||
0.03,
|
0.03,
|
||||||
0.01,
|
0.01,
|
||||||
0.04,
|
0.04,
|
||||||
@@ -198,7 +198,7 @@ class CfgLoot {
|
|||||||
0.03,
|
0.03,
|
||||||
0.03,
|
0.03,
|
||||||
0.04,
|
0.04,
|
||||||
0.01
|
0.02
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
generic[] = {
|
generic[] = {
|
||||||
@@ -339,10 +339,11 @@ class CfgLoot {
|
|||||||
"FoodMRE",
|
"FoodMRE",
|
||||||
"8Rnd_9x18_MakarovSD",
|
"8Rnd_9x18_MakarovSD",
|
||||||
"20Rnd_B_765x17_Ball",
|
"20Rnd_B_765x17_Ball",
|
||||||
"30Rnd_9x19_UZI_SD"
|
"30Rnd_9x19_UZI_SD",
|
||||||
|
"ItemDocument"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
0.09,
|
0.07,
|
||||||
0.04,
|
0.04,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
@@ -383,6 +384,7 @@ class CfgLoot {
|
|||||||
0.01,
|
0.01,
|
||||||
0.04,
|
0.04,
|
||||||
0.01,
|
0.01,
|
||||||
|
0.02
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
policeman[] = {
|
policeman[] = {
|
||||||
@@ -405,14 +407,14 @@ class CfgLoot {
|
|||||||
0.08,
|
0.08,
|
||||||
0.08,
|
0.08,
|
||||||
0.14,
|
0.14,
|
||||||
0.16,
|
0.17,
|
||||||
0.08,
|
0.08,
|
||||||
0.01,
|
0.01,
|
||||||
0.05,
|
0.05,
|
||||||
0.04,
|
0.04,
|
||||||
0.04,
|
0.04,
|
||||||
0.01,
|
0.01,
|
||||||
0.01
|
0.02
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
hunter[] = {
|
hunter[] = {
|
||||||
@@ -430,7 +432,7 @@ class CfgLoot {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
0.4,
|
0.4,
|
||||||
0.16,
|
0.15,
|
||||||
0.03,
|
0.03,
|
||||||
0.1,
|
0.1,
|
||||||
0.05,
|
0.05,
|
||||||
@@ -438,7 +440,7 @@ class CfgLoot {
|
|||||||
0.02,
|
0.02,
|
||||||
0.01,
|
0.01,
|
||||||
0.02,
|
0.02,
|
||||||
0.01
|
0.02
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -463,7 +465,7 @@ class CfgLoot {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
0.09,
|
0.09,
|
||||||
0.10,
|
0.09,
|
||||||
0.10,
|
0.10,
|
||||||
0.10,
|
0.10,
|
||||||
0.10,
|
0.10,
|
||||||
@@ -477,7 +479,7 @@ class CfgLoot {
|
|||||||
0.03,
|
0.03,
|
||||||
0.04,
|
0.04,
|
||||||
0.02,
|
0.02,
|
||||||
0.01
|
0.02
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ class RscDisplayMain : RscStandardDisplay
|
|||||||
class DAYZ_Version : CA_Version
|
class DAYZ_Version : CA_Version
|
||||||
{
|
{
|
||||||
idc = -1;
|
idc = -1;
|
||||||
text = "DayZ Epoch 1.0.2.4 RC2";
|
text = "DayZ Epoch 1.0.2.4 RC3";
|
||||||
y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)";
|
y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)";
|
||||||
};
|
};
|
||||||
delete CA_TitleMainMenu;
|
delete CA_TitleMainMenu;
|
||||||
|
|||||||
@@ -71,8 +71,8 @@ if (_canDo) then {
|
|||||||
_inputWeapons = getArray (configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "inputweapons");
|
_inputWeapons = getArray (configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "inputweapons");
|
||||||
|
|
||||||
_randomOutput = 0;
|
_randomOutput = 0;
|
||||||
if(isNumber (configFile >> _baseClass >> _item >> "randomOutput")) then {
|
if(isNumber (configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "randomOutput")) then {
|
||||||
_randomOutput = getNumber(configFile >> _baseClass >> _item >> "randomOutput");
|
_randomOutput = getNumber(configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "randomOutput");
|
||||||
};
|
};
|
||||||
|
|
||||||
_craft_doLoop = true;
|
_craft_doLoop = true;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class CfgMods
|
|||||||
hidePicture = 0;
|
hidePicture = 0;
|
||||||
hideName = 0;
|
hideName = 0;
|
||||||
action = "http://www.dayzepoch.com";
|
action = "http://www.dayzepoch.com";
|
||||||
version = "1.0.2.396";
|
version = "1.0.2.397";
|
||||||
hiveVersion = 0.96; //0.93
|
hiveVersion = 0.96; //0.93
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -172,7 +172,6 @@ spawn_vehicles = {
|
|||||||
private ["_weights","_isOverLimit","_isAbort","_counter","_index","_vehicle","_velimit","_qty","_isAir","_isShip","_position","_dir","_istoomany","_veh","_objPosition","_marker","_iClass","_itemTypes","_cntWeights","_itemType","_num","_allCfgLoots"];
|
private ["_weights","_isOverLimit","_isAbort","_counter","_index","_vehicle","_velimit","_qty","_isAir","_isShip","_position","_dir","_istoomany","_veh","_objPosition","_marker","_iClass","_itemTypes","_cntWeights","_itemType","_num","_allCfgLoots"];
|
||||||
|
|
||||||
if (isDedicated) then {
|
if (isDedicated) then {
|
||||||
waituntil {!isnil "fnc_buildWeightedArray"};
|
|
||||||
|
|
||||||
_isOverLimit = true;
|
_isOverLimit = true;
|
||||||
_isAbort = false;
|
_isAbort = false;
|
||||||
@@ -215,12 +214,12 @@ spawn_vehicles = {
|
|||||||
if(_isShip || _isAir) then {
|
if(_isShip || _isAir) then {
|
||||||
if(_isShip) then {
|
if(_isShip) then {
|
||||||
// Spawn anywhere on coast on water
|
// Spawn anywhere on coast on water
|
||||||
waitUntil{!isNil "BIS_fnc_selectRandom"};
|
waitUntil{!isNil "BIS_fnc_findSafePos"};
|
||||||
_position = [MarkerPosition,0,DynamicVehicleArea,10,1,2000,1] call BIS_fnc_findSafePos;
|
_position = [MarkerPosition,0,DynamicVehicleArea,10,1,2000,1] call BIS_fnc_findSafePos;
|
||||||
//diag_log("DEBUG: spawning boat near coast " + str(_position));
|
//diag_log("DEBUG: spawning boat near coast " + str(_position));
|
||||||
} else {
|
} else {
|
||||||
// Spawn air anywhere that is flat
|
// Spawn air anywhere that is flat
|
||||||
waitUntil{!isNil "BIS_fnc_selectRandom"};
|
waitUntil{!isNil "BIS_fnc_findSafePos"};
|
||||||
_position = [MarkerPosition,0,DynamicVehicleArea,10,0,2000,0] call BIS_fnc_findSafePos;
|
_position = [MarkerPosition,0,DynamicVehicleArea,10,0,2000,0] call BIS_fnc_findSafePos;
|
||||||
//diag_log("DEBUG: spawning air anywhere flat " + str(_position));
|
//diag_log("DEBUG: spawning air anywhere flat " + str(_position));
|
||||||
};
|
};
|
||||||
@@ -306,6 +305,40 @@ spawn_vehicles = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
spawn_ammosupply = {
|
||||||
|
private ["_position","_veh","_istoomany","_marker","_spawnveh","_WreckList"];
|
||||||
|
if (isDedicated) then {
|
||||||
|
_WreckList = ["Supply_Crate_DZE"];
|
||||||
|
waitUntil{!isNil "BIS_fnc_selectRandom"};
|
||||||
|
_position = RoadList call BIS_fnc_selectRandom;
|
||||||
|
_position = _position modelToWorld [0,0,0];
|
||||||
|
waitUntil{!isNil "BIS_fnc_findSafePos"};
|
||||||
|
_position = [_position,5,20,5,0,2000,0] call BIS_fnc_findSafePos;
|
||||||
|
if ((count _position) == 2) then {
|
||||||
|
|
||||||
|
_istoomany = _position nearObjects ["All",5];
|
||||||
|
|
||||||
|
if((count _istoomany) > 0) exitWith { diag_log("DEBUG VEIN: Too many at " + str(_position)); };
|
||||||
|
|
||||||
|
_spawnveh = _WreckList call BIS_fnc_selectRandom;
|
||||||
|
|
||||||
|
//if(DZEdebug) then {
|
||||||
|
_marker = createMarker [str(_position) , _position];
|
||||||
|
_marker setMarkerShape "ICON";
|
||||||
|
_marker setMarkerType "DOT";
|
||||||
|
_marker setMarkerText str(_spawnveh);
|
||||||
|
//};
|
||||||
|
|
||||||
|
_veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"];
|
||||||
|
_veh enableSimulation false;
|
||||||
|
_veh setDir round(random 360);
|
||||||
|
_veh setpos _position;
|
||||||
|
_veh setVariable ["ObjectID","1",true];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
spawn_roadblocks = {
|
spawn_roadblocks = {
|
||||||
private ["_position","_veh","_istoomany","_marker","_spawnveh","_WreckList"];
|
private ["_position","_veh","_istoomany","_marker","_spawnveh","_WreckList"];
|
||||||
_WreckList = ["SKODAWreck","HMMWVWreck","UralWreck","datsun01Wreck","hiluxWreck","datsun02Wreck","UAZWreck","Land_Misc_Garb_Heap_EP1","Fort_Barricade_EP1","Rubbish2"];
|
_WreckList = ["SKODAWreck","HMMWVWreck","UralWreck","datsun01Wreck","hiluxWreck","datsun02Wreck","UAZWreck","Land_Misc_Garb_Heap_EP1","Fort_Barricade_EP1","Rubbish2"];
|
||||||
@@ -327,14 +360,15 @@ spawn_roadblocks = {
|
|||||||
|
|
||||||
if((count _istoomany) > 0) exitWith { diag_log("DEBUG: Too many at " + str(_position)); };
|
if((count _istoomany) > 0) exitWith { diag_log("DEBUG: Too many at " + str(_position)); };
|
||||||
|
|
||||||
if(DZEdebug) then {
|
waitUntil{!isNil "BIS_fnc_selectRandom"};
|
||||||
|
_spawnveh = _WreckList call BIS_fnc_selectRandom;
|
||||||
|
|
||||||
|
//if(DZEdebug) then {
|
||||||
_marker = createMarker [str(_position) , _position];
|
_marker = createMarker [str(_position) , _position];
|
||||||
_marker setMarkerShape "ICON";
|
_marker setMarkerShape "ICON";
|
||||||
_marker setMarkerType "DOT";
|
_marker setMarkerType "DOT";
|
||||||
};
|
_marker setMarkerText str(_spawnveh);
|
||||||
|
//};
|
||||||
waitUntil{!isNil "BIS_fnc_selectRandom"};
|
|
||||||
_spawnveh = _WreckList call BIS_fnc_selectRandom;
|
|
||||||
|
|
||||||
//diag_log("DEBUG: Spawning a crashed " + _spawnveh + " with " + _spawnloot + " at " + str(_position));
|
//diag_log("DEBUG: Spawning a crashed " + _spawnveh + " with " + _spawnloot + " at " + str(_position));
|
||||||
_veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"];
|
_veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"];
|
||||||
@@ -504,13 +538,17 @@ dayz_recordLogin = {
|
|||||||
server_cleanDead = {
|
server_cleanDead = {
|
||||||
private ["_objectPos","_noPlayerNear"];
|
private ["_objectPos","_noPlayerNear"];
|
||||||
{
|
{
|
||||||
if (_x isKindOf "zZombie_Base") then
|
_objectPos = getPosATL _x;
|
||||||
|
_noPlayerNear = {isPlayer _x} count (_objectPos nearEntities ["CAManBase",35]) == 0;
|
||||||
|
if (_noPlayerNear) then
|
||||||
{
|
{
|
||||||
deleteVehicle _x;
|
if (_x isKindOf "zZombie_Base") then
|
||||||
|
{
|
||||||
|
deleteVehicle _x;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
} forEach allDead;
|
} forEach allDead;
|
||||||
};
|
};
|
||||||
|
|
||||||
server_cleanLoot =
|
server_cleanLoot =
|
||||||
{
|
{
|
||||||
private ["_deletedLoot","_startTime","_looted","_objectPos","_noPlayerNear","_nearObj"];
|
private ["_deletedLoot","_startTime","_looted","_objectPos","_noPlayerNear","_nearObj"];
|
||||||
|
|||||||
Reference in New Issue
Block a user