mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
@@ -1,43 +0,0 @@
|
|||||||
/*
|
|
||||||
Created exclusively for ArmA2:OA - DayZMod.
|
|
||||||
Please request permission to use/alter from R4Z0R49.
|
|
||||||
*/
|
|
||||||
|
|
||||||
//"Infected Camps: [[[7020.76,4072.34,0],40],[[10066.8,12114.3,0],20],[[10033.4,12525,0],20],[[9125.71,7742.72,0],40],[[6057.93,2655.66,0],40]]"
|
|
||||||
//Server_InfectedCamps, [[[_basePos],_amount,_radius]]
|
|
||||||
|
|
||||||
//diag_log(str(__FILE__));
|
|
||||||
|
|
||||||
private ["_markerstr","_counter","_camp","_campName","_campPos","_campAmount","_campRadius","_trigger","_trgcode","_array"];
|
|
||||||
_array = _this;
|
|
||||||
_counter = 0;
|
|
||||||
|
|
||||||
{
|
|
||||||
_counter = _counter + 1;
|
|
||||||
_camp = _x;
|
|
||||||
_campName = format["BaseCamp_%1",_counter];
|
|
||||||
//diag_log ("Camp: " +str(_x));
|
|
||||||
_campPos = _camp select 0;
|
|
||||||
//diag_log ("CampPos: " +str(_campPos));
|
|
||||||
_campAmount = _camp select 1;
|
|
||||||
//diag_log ("CampAmont: " +str(_campAmount));
|
|
||||||
_campRadius = _camp select 2;
|
|
||||||
//diag_log ("CampRadius: " +str(_campRadius));
|
|
||||||
/*
|
|
||||||
_trigger = createTrigger["EmptyDetector",_campPos];
|
|
||||||
_trigger setTriggerArea[_campRadius,_campRadius+100,false];
|
|
||||||
_trigger setTriggerActivation["ANY","PRESENT",false];
|
|
||||||
_trgcode = format["[%1,%2] call camp_spawnZombies;",_campPos,_campAmount];
|
|
||||||
_trigger setTriggerStatements["player in thislist", _trgcode, ""];
|
|
||||||
//_trigger setTriggerTimeout [0, 5, 3, false];
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ("ItemMap_Debug" in items player) then {
|
|
||||||
_markerstr = createMarker [_campName,_campPos];
|
|
||||||
_markerstr setMarkerColor "ColorRed";
|
|
||||||
_markerstr setMarkerShape "ELLIPSE";
|
|
||||||
_markerstr setMarkerBrush "Border";
|
|
||||||
_markerstr setMarkerSizeLocal [_campRadius, _campRadius];
|
|
||||||
};
|
|
||||||
|
|
||||||
} foreach _array;
|
|
||||||
@@ -145,8 +145,6 @@ if (!isDedicated) then {
|
|||||||
|
|
||||||
//System
|
//System
|
||||||
player_spawn_2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\player_spawn_2.sqf";
|
player_spawn_2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\player_spawn_2.sqf";
|
||||||
infectedcamps = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_infectedcamps.sqf";
|
|
||||||
//camp_spawnZombies = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\camp_spawnZombies.sqf"; //Server compile, used for loiter behaviour
|
|
||||||
|
|
||||||
//Crafting
|
//Crafting
|
||||||
fn_updateCraftUI = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_updateCraftUI.sqf";
|
fn_updateCraftUI = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_updateCraftUI.sqf";
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
"PVCDZ_veh_SetFuel" addPublicVariableEventHandler {(_this select 1) spawn local_setFuel};
|
"PVCDZ_veh_SetFuel" addPublicVariableEventHandler {(_this select 1) spawn local_setFuel};
|
||||||
"PVCDZ_veh_engineSwitch" addPublicVariableEventHandler {(_this select 1) spawn dayz_engineSwitch};
|
"PVCDZ_veh_engineSwitch" addPublicVariableEventHandler {(_this select 1) spawn dayz_engineSwitch};
|
||||||
"PVCDZ_OpenTarget_Reset" addPublicVariableEventHandler { OpenTarget_Time = diag_tickTime; }; //reset OpenTarget timer
|
"PVCDZ_OpenTarget_Reset" addPublicVariableEventHandler { OpenTarget_Time = diag_tickTime; }; //reset OpenTarget timer
|
||||||
//"dayzInfectedCamps" addPublicVariableEventHandler {(_this select 1) call infectedcamps};
|
|
||||||
|
|
||||||
// EPOCH ADDITIONS
|
// EPOCH ADDITIONS
|
||||||
"PVDZE_veh_Lock" addPublicVariableEventHandler {(_this select 1) call local_lockUnlock};
|
"PVDZE_veh_Lock" addPublicVariableEventHandler {(_this select 1) call local_lockUnlock};
|
||||||
|
|||||||
@@ -572,7 +572,6 @@ TimeOutDisplayed = false;
|
|||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
dead_bodyCleanup = [];
|
dead_bodyCleanup = [];
|
||||||
needUpdate_objects = [];
|
needUpdate_objects = [];
|
||||||
Server_InfectedCamps = [];
|
|
||||||
//dayz_spawnCrashSite_clutterCutter=0; // helicrash spawn... 0: loot hidden in grass, 1: loot lifted, 2: no grass
|
//dayz_spawnCrashSite_clutterCutter=0; // helicrash spawn... 0: loot hidden in grass, 1: loot lifted, 2: no grass
|
||||||
//dayz_spawnInfectedSite_clutterCutter=0; // infected base spawn... 0: loot hidden in grass, 1: loot lifted, 2: no grass
|
//dayz_spawnInfectedSite_clutterCutter=0; // infected base spawn... 0: loot hidden in grass, 1: loot lifted, 2: no grass
|
||||||
//Objects to remove when killed.
|
//Objects to remove when killed.
|
||||||
|
|||||||
@@ -1134,11 +1134,6 @@ class FSM
|
|||||||
name = "Initialize";
|
name = "Initialize";
|
||||||
itemno = 31;
|
itemno = 31;
|
||||||
init = /*%FSM<STATEINIT""">*/"if (_debug == 1) then {diag_log [diag_tickTime,'Initialize'];};" \n
|
init = /*%FSM<STATEINIT""">*/"if (_debug == 1) then {diag_log [diag_tickTime,'Initialize'];};" \n
|
||||||
"" \n
|
|
||||||
"if (!isNil ""dayzInfectedCamps"") then {" \n
|
|
||||||
" //diag_log (""Infected Camps: "" +str(dayzInfectedCamps));" \n
|
|
||||||
" dayzInfectedCamps call infectedcamps;" \n
|
|
||||||
"};" \n
|
|
||||||
"" \n
|
"" \n
|
||||||
"//Medical" \n
|
"//Medical" \n
|
||||||
"dayz_medicalH = [] execVM ""\z\addons\dayz_code\medical\init_medical.sqf""; //Medical Monitor Script (client only)" \n
|
"dayz_medicalH = [] execVM ""\z\addons\dayz_code\medical\init_medical.sqf""; //Medical Monitor Script (client only)" \n
|
||||||
|
|||||||
Reference in New Issue
Block a user