mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-25 01:49:19 +03:00
MPMissions updates
This commit is contained in:
@@ -42,7 +42,7 @@ AllowedVehiclesList = [
|
||||
["SUV_Charcoal",1],
|
||||
["SUV_Blue",1],
|
||||
["UH1H_DZ",2],
|
||||
["Mi17_Civilian_DZ",3],
|
||||
["Mi17_Civilian",3],
|
||||
["Mi17_DZ",1],
|
||||
["LandRover_CZ_EP1",2],
|
||||
["HMMWV_Ambulance",2],
|
||||
|
||||
@@ -25,7 +25,6 @@ MaxDynamicDebris = 50; // Default = 100
|
||||
dayz_MapArea = 2000; // Default = 10000
|
||||
dayz_maxLocalZombies = 40; // Default = 40
|
||||
|
||||
|
||||
//Load in compiled functions
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
|
||||
progressLoadingScreen 0.1;
|
||||
@@ -48,18 +47,16 @@ waitUntil {time > 3};
|
||||
|
||||
if ((!isServer) && (player != player)) then
|
||||
{
|
||||
waitUntil {player == player};
|
||||
waitUntil {player == player};
|
||||
waitUntil {time > 3};
|
||||
};
|
||||
|
||||
if (isServer) then {
|
||||
|
||||
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
|
||||
|
||||
// Add trader citys
|
||||
_nil = [] execVM "mission.sqf";
|
||||
_serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
|
||||
|
||||
};
|
||||
|
||||
if (!isDedicated) then {
|
||||
@@ -71,4 +68,5 @@ if (!isDedicated) then {
|
||||
//Run the player monitor
|
||||
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
|
||||
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
|
||||
_void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
|
||||
};
|
||||
@@ -174,87 +174,6 @@ if (true) then
|
||||
_this setPos [512.4303, 1107.9641, -7.6293945e-006];
|
||||
};
|
||||
|
||||
_this = createCenter civilian;
|
||||
_center_1 = _this;
|
||||
|
||||
_group_1 = createGroup _center_1;
|
||||
|
||||
_unit_11 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = _group_1 createUnit ["Dr_Hladik_EP1", [510.58932, 1099.1537, 7.6293945e-006], [], 0, "CAN_COLLIDE"];
|
||||
_unit_11 = _this;
|
||||
_this setDir -93.945122;
|
||||
_this setVehicleVarName "mad_sci";
|
||||
mad_sci = _this;
|
||||
_this setVehicleInit "this allowDammage false;"; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET';
|
||||
_this setUnitAbility 0.60000002;
|
||||
if (false) then {_group_1 selectLeader _this;};
|
||||
};
|
||||
|
||||
_unit_12 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = _group_1 createUnit ["CIV_EuroMan01_EP1", [495.85626, 1085.181, -3.8146973e-006], [], 0, "CAN_COLLIDE"];
|
||||
_unit_12 = _this;
|
||||
_this setVehicleVarName "parts_trader_1";
|
||||
parts_trader_1 = _this;
|
||||
_this setVehicleInit "this allowDammage false;"; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET';
|
||||
_this setUnitAbility 0.60000002;
|
||||
if (true) then {_group_1 selectLeader _this;};
|
||||
};
|
||||
|
||||
_unit_15 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = _group_1 createUnit ["CIV_EuroMan02_EP1", [484.38507, 1082.6261, 1.9073486e-006], [], 0, "CAN_COLLIDE"];
|
||||
_unit_15 = _this;
|
||||
_this setVehicleVarName "auto_trader_1";
|
||||
auto_trader_1 = _this;
|
||||
_this setVehicleInit "this allowDammage false;"; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET';
|
||||
_this setUnitAbility 0.60000002;
|
||||
if (false) then {_group_1 selectLeader _this;};
|
||||
};
|
||||
|
||||
_unit_16 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = _group_1 createUnit ["Functionary1", [464.14493, 1091.6976, -5.7220459e-006], [], 0, "CAN_COLLIDE"];
|
||||
_unit_16 = _this;
|
||||
_this setDir 76.695313;
|
||||
_this setVehicleVarName "can_trader_1";
|
||||
can_trader_1 = _this;
|
||||
_this setVehicleInit "this allowDammage false;"; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET';
|
||||
_this setUnitAbility 0.60000002;
|
||||
if (false) then {_group_1 selectLeader _this;};
|
||||
};
|
||||
|
||||
_unit_17 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = _group_1 createUnit ["Policeman", [472.3385, 1097.6085, 5.7220459e-006], [], 0, "CAN_COLLIDE"];
|
||||
_unit_17 = _this;
|
||||
_this setDir 101.12498;
|
||||
_this setVehicleVarName "weapon_trader_1";
|
||||
weapon_trader_1 = _this;
|
||||
_this setVehicleInit "this allowDammage false;"; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET';
|
||||
_this setUnitAbility 0.60000002;
|
||||
if (false) then {_group_1 selectLeader _this;};
|
||||
};
|
||||
|
||||
_unit_18 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = _group_1 createUnit ["Profiteer4", [476.09497, 1088.0248, 1.9073486e-006], [], 0, "CAN_COLLIDE"];
|
||||
_unit_18 = _this;
|
||||
_this setDir 45.5686;
|
||||
_this setVehicleVarName "ammo_trader_1";
|
||||
ammo_trader_1 = _this;
|
||||
_this setVehicleInit "this allowDammage false;"; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET';
|
||||
_this setUnitAbility 0.60000002;
|
||||
if (false) then {_group_1 selectLeader _this;};
|
||||
};
|
||||
|
||||
_vehicle_116 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
@@ -280,15 +199,6 @@ if (true) then
|
||||
_this setPos [508.49933, 1096.7793, 3.8146973e-006];
|
||||
};
|
||||
|
||||
_vehicle_139 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createVehicle ["ShootingRange_ACR", [464.41138, 1088.8826], [], 0, "CAN_COLLIDE"];
|
||||
_vehicle_139 = _this;
|
||||
_this setDir 163.60194;
|
||||
_this setPos [464.41138, 1088.8826];
|
||||
};
|
||||
|
||||
_vehicle_143 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
@@ -307,28 +217,6 @@ if (true) then
|
||||
_this setPos [465.18674, 1095.3278, 2.2888184e-005];
|
||||
};
|
||||
|
||||
_unit_21 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = _group_1 createUnit ["RU_Profiteer3", [502.0412, 1123.3787, 0.10360086], [], 0, "CAN_COLLIDE"];
|
||||
_unit_21 = _this;
|
||||
_this setDir 185.64281;
|
||||
_this setVehicleVarName "metals_trader";
|
||||
metals_trader = _this;
|
||||
_this setVehicleInit "this allowDammage false;"; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET';
|
||||
_this setUnitAbility 0.60000002;
|
||||
if (false) then {_group_1 selectLeader _this;};
|
||||
};
|
||||
|
||||
_vehicle_157 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createVehicle ["TargetPopup_ACR", [330.98611, 1041.3842, 1.9073486e-006], [], 0, "CAN_COLLIDE"];
|
||||
_vehicle_157 = _this;
|
||||
_this setDir -107.06186;
|
||||
_this setPos [330.98611, 1041.3842, 1.9073486e-006];
|
||||
};
|
||||
|
||||
_vehicle_160 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
@@ -338,15 +226,6 @@ if (true) then
|
||||
_this setPos [468.33167, 1086.3636, 3.8146973e-006];
|
||||
};
|
||||
|
||||
_vehicle_166 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createVehicle ["TargetPopup_ACR", [385.03134, 1062.3904, 3.8146973e-006], [], 0, "CAN_COLLIDE"];
|
||||
_vehicle_166 = _this;
|
||||
_this setDir -107.06186;
|
||||
_this setPos [385.03134, 1062.3904, 3.8146973e-006];
|
||||
};
|
||||
|
||||
_vehicle_170 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
@@ -397,16 +276,6 @@ if (true) then
|
||||
_this setPos [506.37302, 1117.0841, 7.6293945e-006];
|
||||
};
|
||||
|
||||
_unit_24 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = _group_1 createUnit ["RU_Pilot", [469.495, 1071.1565, -5.7220459e-006], [], 0, "CAN_COLLIDE"];
|
||||
_unit_24 = _this;
|
||||
_this setDir -108.01817;
|
||||
_this setVehicleInit "this allowDammage false;"; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET';
|
||||
_this setUnitAbility 0.60000002;
|
||||
if (false) then {_group_1 selectLeader _this;};
|
||||
};
|
||||
|
||||
_vehicle_189 = objNull;
|
||||
if (true) then
|
||||
@@ -525,15 +394,6 @@ if (true) then
|
||||
_this setPos [464.0036, 1088.788, 1.7166138e-005];
|
||||
};
|
||||
|
||||
_vehicle_239 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createVehicle ["TargetPopup_ACR", [267.32697, 1015.8035, 1.1444092e-005], [], 0, "CAN_COLLIDE"];
|
||||
_vehicle_239 = _this;
|
||||
_this setDir -107.06186;
|
||||
_this setPos [267.32697, 1015.8035, 1.1444092e-005];
|
||||
};
|
||||
|
||||
_vehicle_241 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
|
||||
@@ -13,16 +13,11 @@ class Mission
|
||||
"ca_modules_functions",
|
||||
"warfarebuildings",
|
||||
"cacharacters_e",
|
||||
"glt_m300t",
|
||||
"CSJ_GyroAC",
|
||||
"cacharacters2",
|
||||
"SUV_COL",
|
||||
"cawheeled_acr_octavia",
|
||||
"CAWheeled_E_ATV",
|
||||
"CAWheeled_E_LandRover",
|
||||
"cawheeled_acr_t810",
|
||||
"cawheeled_acr_hmmwv",
|
||||
"camisc_acr_pbx"
|
||||
"glt_m300t",
|
||||
"sigisolda",
|
||||
"suv_col",
|
||||
"csj_gyroac",
|
||||
};
|
||||
addOnsAuto[]=
|
||||
{
|
||||
|
||||
@@ -1,91 +0,0 @@
|
||||
// DayZ Epoch TRADERS
|
||||
serverTraders = [
|
||||
"Policeman",
|
||||
"CIV_EuroMan01_EP1",
|
||||
"Profiteer4",
|
||||
"Functionary1",
|
||||
"CIV_EuroMan02_EP1",
|
||||
"RU_Pilot",
|
||||
"RU_WorkWoman5",
|
||||
"Dr_Hladik_EP1",
|
||||
"RU_Profiteer3",
|
||||
"Citizen3_EP1"
|
||||
];
|
||||
|
||||
// Weapons Traders
|
||||
menu_Policeman = [
|
||||
[["Sidearm",30011],["Rifle",30012],["Shotgun",30013],["Assault Rifle",1414],["Machine Gun",1515],["Sniper Rifle",1616]],
|
||||
[],
|
||||
"neutral"
|
||||
];
|
||||
|
||||
// Parts Traders
|
||||
menu_CIV_EuroMan01_EP1 = [
|
||||
[["Car Parts",30021],["Building Supplies",30022],["Explosives",30023]],
|
||||
[],
|
||||
"neutral"
|
||||
];
|
||||
|
||||
|
||||
// Can Traders
|
||||
menu_Profiteer4 = [
|
||||
[["Food and Drinks",30051],["Backpacks",30052],["Toolbelt",30053],["Clothes",30054]],
|
||||
[
|
||||
["ItemCopperBar","ItemSodaEmpty",1,3,"buy","Empty Soda Cans","Copper Bar",103],
|
||||
["ItemCopperBar","TrashTinCan",1,3,"buy","Empty Tin Cans","Copper Bar",102],
|
||||
["ItemCopperBar","TrashJackDaniels",1,1,"buy","Empty Wiskey Bottle","Copper Bar",101]
|
||||
],
|
||||
"neutral"
|
||||
];
|
||||
|
||||
// Ammo Traders
|
||||
menu_Functionary1 = [
|
||||
[["Sidearm Ammo",30001],["Rifle Ammo",30002],["Shotgun and Crossbow Ammo",30003],["Assault Rifle Ammo",4004],["Machine Gun Ammo",5005],["Sniper Rifle Ammo",6006]],
|
||||
[],
|
||||
"neutral"
|
||||
];
|
||||
|
||||
// Auto Traders
|
||||
menu_CIV_EuroMan02_EP1 = [
|
||||
[["Cars",30041],["Trucks Unarmed",30042],["SUV",30466],["Buses and Vans",30467],["Offroad",30043],["Helicopter Unarmed",30044],["Military Unarmed",30045]],
|
||||
[],
|
||||
"neutral"
|
||||
];
|
||||
menu_RU_Pilot = [
|
||||
[["Trucks Armed",30422],["Utility",30046],["Helicopter Armed",30444],["Military Armed",30455],["Fuel Trucks",30047],["Heavy Armor Unarmed",30048]],
|
||||
[],
|
||||
"neutral"
|
||||
];
|
||||
|
||||
// Doctors
|
||||
menu_Dr_Hladik_EP1 = [
|
||||
[["Medical Supplies",30031],["Chem-lites/Flares",30032],["Smoke Grenades",30033]],
|
||||
[["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
|
||||
"neutral"
|
||||
];
|
||||
|
||||
// Metals Traders
|
||||
menu_RU_Profiteer3 = [
|
||||
[["Vaults",30411]],
|
||||
[
|
||||
["ItemSilverBar","ItemCopperBar",1,6,"buy","Copper","Silver",103],
|
||||
["ItemCopperBar","ItemSilverBar",6,1,"buy","Silver","Copper",102],
|
||||
["ItemGoldBar","ItemSilverBar",1,6,"buy","Silver","Gold",101],
|
||||
["ItemSilverBar","ItemGoldBar",6,1,"buy","Gold","Silver",100]
|
||||
],
|
||||
"neutral"
|
||||
];
|
||||
|
||||
// Boat Traders
|
||||
menu_Citizen3_EP1 = [
|
||||
[["Boats Unarmed",30049],["Boats Armed",30499]],
|
||||
[
|
||||
["ItemJerrycanEmpty","ItemCopperBar",1,1,"buy","Copper Bar","Empty Jerrycan",101],
|
||||
["ItemGenerator","ItemGoldBar",1,3,"buy","Gold Bars","Portable Generator",100]
|
||||
],
|
||||
"neutral"
|
||||
];
|
||||
|
||||
// ["friendly"] must have more than -2000 humanity,
|
||||
// ["neutral"] can have any ammount of humanity
|
||||
// ["hostile"] must have lower than -2000
|
||||
|
||||
Reference in New Issue
Block a user