shapur baf 0.84 mission updates

This commit is contained in:
vbawol
2013-01-31 16:11:04 -06:00
parent c387676545
commit d69e34617a
7 changed files with 224 additions and 117 deletions

View File

@@ -1,12 +1,14 @@
respawn = "BASE";
respawndelay = 5;
onLoadMission="DayZ Epoch Shapur BAF";
OnLoadIntro = "Welcome to Shapur BAF";
onLoadMission= "DayZ Epoch Shapur";
OnLoadIntro = "Welcome to DayZ Epoch Shapur";
OnLoadIntroTime = False;
OnLoadMissionTime = False;
disabledAI = true;
disableChannels[]={0,2,6};
enableItemsDropping=0;
disableChannels[]={0,1,2,6};
enableItemsDropping = 0;
onPauseScript = "onpause.sqf";
loadScreen = "\z\addons\dayz_code\gui\dayz_logo_ca.paa";
class Header
{

View File

@@ -0,0 +1,73 @@
AllowedVehiclesList = [
["Old_moto_TK_Civ_EP1",10],
["MMT_Civ",10],
["Old_bike_TK_INS_EP1",10],
["TT650_Ins",1],
["TT650_Civ",1],
["TT650_TK_CIV_EP1",1],
["ATV_US_EP1",10],
["hilux1_civil_3_open_EP1",5],
["hilux1_civil_2_covered",2],
["datsun1_civil_3_open",5],
["Pickup_PK_TK_GUE_EP1",5],
["Octavia_ACR",2],
["VWGolf",2],
["Lada1",1],
["Lada2",1],
["LadaLM",1],
["Lada2_TK_CIV_EP1",2],
["Skoda",1],
["SkodaGreen",1],
["SkodaRed",1],
["SkodaBlue",1],
["car_sedan",2],
["car_hatchback",2],
["policecar",1],
["GLT_M300_LT",1],
["GLT_M300_ST",1],
["Volha_1_TK_CIV_EP1",2],
["VolhaLimo_TK_CIV_EP1",2],
["UAZ_Unarmed_TK_EP1",1],
["UAZ_RU",1],
["UAZ_INS",1],
["Ikarus",3],
["SUV_TK_CIV_EP1",2],
["SUV_Green",1],
["SUV_Yellow",1],
["SUV_White",1],
["SUV_Silver",1],
["SUV_Red",1],
["SUV_Pink",1],
["SUV_Orange",1],
["SUV_Charcoal",1],
["SUV_Blue",1],
["UH1H_DZ",2],
["Mi17_Civilian",3],
["Mi17_DZ",1],
["LandRover_CZ_EP1",2],
["HMMWV_Ambulance",2],
["HMMWV_DES_EP1",1],
["PBX",3],
["Zodiac",2],
["RHIB",2],
["Fishing_Boat",2],
["Smallboat_1",2],
["Smallboat_2",2],
["M113Ambul_UN_EP1",1],
["KamazRefuel",1],
["UralRefuel_TK_EP1",1],
["MtvrRefuel_DES_EP1",1],
["Ural_UN_EP1",2],
["Ural_TK_CIV_EP1",2],
["Ural_CDF",2],
["Kamaz",2],
["tractor",3],
["CSJ_GyroP",5],
["S1203_ambulance_EP1",1],
["S1203_TK_CIV_EP1",2],
["MH6J_DZ",1],
["AH6X_DZ",1],
["MTVR_DES_EP1",1],
["LandRover_MG_TK_EP1",1],
["M1030_US_DES_EP1",1]
];

View File

@@ -6,9 +6,7 @@ cutText ["","BLACK OUT"];
enableSaving [false, false];
//REALLY IMPORTANT VALUES
dayZ_hivePipe1 = "\\.\pipe\dayz"; //The named pipe
dayZ_instance = 3; //The instance
hiveInUse = true;
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;
@@ -27,16 +25,6 @@ MaxDynamicDebris = 50; // Default = 100
dayz_MapArea = 2000; // Default = 10000
dayz_maxLocalZombies = 40; // Default = 40
// DayZ Epoch TRADERS
weapon_trader = 'Policeman';
parts_trader = 'CIV_EuroMan01_EP1';
can_trader = 'Profiteer4';
ammo_trader = 'Functionary1';
auto_trader = 'CIV_EuroMan02_EP1';
auto_trader_2 = 'RU_Pilot';
mad_sci = 'Dr_Hladik_EP1';
metals_trader = 'RU_Profiteer3';
boat_trader = 'Citizen3_EP1';
//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
@@ -46,6 +34,8 @@ progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
@@ -64,83 +54,12 @@ if ((!isServer) && (player != player)) then
if (isServer) then {
// TODO: Still Needs major overhaul current method is not ideal
AllowedVehiclesList = [ "Old_moto_TK_Civ_EP1",
"MMT_Civ",
"ATV_US_EP1",
"hilux1_civil_3_open_EP1",
"datsun1_civil_3_open",
"Pickup_PK_TK_GUE_EP1",
"Lada1",
"Skoda",
"car_sedan",
"Volha_1_TK_CIV_EP1",
"UAZ_Unarmed_TK_EP1",
"Ikarus",
"SUV_TK_CIV_EP1",
"UH1H_DZ",
"Mi17_Civilian",
"LandRover_CZ_EP1",
"HMMWV_Ambulance",
"ArmoredSUV_PMC",
"PBX",
"RHIB",
"M113Ambul_UN_EP1",
"KamazRefuel",
"CSJ_GyroP"];
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
AllowedVehiclesChance = [ 0.25, // "Old_moto_TK_Civ_EP1",
0.55, // "MMT_Civ"
0.45, // "ATV_US_EP1",
0.55, // "hilux1_civil_3_open_EP1",
0.25, // "datsun1_civil_3_open",
0.40, // "Pickup_PK_TK_GUE_EP1",
0.25, // "Lada1",
0.25, // "Skoda",
0.2, // "car_sedan",
0.2, // "Volha_1_TK_CIV_EP1",
0.15, // "UAZ_Unarmed_TK_EP1"
0.01, // "Ikarus"
0.1, // "SUV_TK_CIV_EP1"
0.05, // "UH1H_DZ"
0.09, // "Mi17_Civilian"
0.11, // "LandRover_CZ_EP1"
0.11, // "HMMWV_Ambulance"
0.05, // "ArmoredSUV_PMC"
0.15, // "PBX"
0.01, // "RHIB"
0.01, // "M113Ambul_UN_EP1"
0.01, // "KamazRefuel"
0.1]; // "CSJ_GyroP"
AllowedVehiclesLimit = [ 2, // "Old_moto_TK_Civ_EP1",
5, // "MMT_Civ"
2, // "ATV_US_EP1",
2, // "hilux1_civil_3_open_EP1",
2, // "datsun1_civil_3_open",
1, // "Pickup_PK_TK_GUE_EP1",
2, // "Lada1",
2, // "Skoda",
2, // "car_sedan",
2, // "Volha_1_TK_CIV_EP1",
2, // "UAZ_Unarmed_TK_EP1"
1, // "Ikarus"
1, // "SUV_TK_CIV_EP1"
1, // "UH1H_DZ"
1, // "Mi17_Civilian"
2, // "LandRover_CZ_EP1"
2, // "HMMWV_Ambulance"
1, // "ArmoredSUV_PMC"
2, // "PBX"
1, // "RHIB"
1, // "M113Ambul_UN_EP1"
1, // "KamazRefuel"
3]; // "CSJ_GyroP"
hiveInUse = true;
_serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
// Add trader citys
_nil = [] execVM "mission.sqf";
_serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};
if (!isDedicated) then {

View File

@@ -187,7 +187,7 @@ if (true) then
_this setDir -93.945122;
_this setVehicleVarName "mad_sci";
mad_sci = _this;
_this setVehicleInit "this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
_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;};
};
@@ -199,7 +199,7 @@ if (true) then
_unit_12 = _this;
_this setVehicleVarName "parts_trader_1";
parts_trader_1 = _this;
_this setVehicleInit "this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
_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;};
};
@@ -211,7 +211,7 @@ if (true) then
_unit_15 = _this;
_this setVehicleVarName "auto_trader_1";
auto_trader_1 = _this;
_this setVehicleInit "this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
_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;};
};
@@ -224,7 +224,7 @@ if (true) then
_this setDir 76.695313;
_this setVehicleVarName "can_trader_1";
can_trader_1 = _this;
_this setVehicleInit "this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
_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;};
};
@@ -237,7 +237,7 @@ if (true) then
_this setDir 101.12498;
_this setVehicleVarName "weapon_trader_1";
weapon_trader_1 = _this;
_this setVehicleInit "this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
_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;};
};
@@ -250,7 +250,7 @@ if (true) then
_this setDir 45.5686;
_this setVehicleVarName "ammo_trader_1";
ammo_trader_1 = _this;
_this setVehicleInit "this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
_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;};
};
@@ -315,7 +315,7 @@ if (true) then
_this setDir 185.64281;
_this setVehicleVarName "metals_trader";
metals_trader = _this;
_this setVehicleInit "this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
_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;};
};
@@ -403,7 +403,7 @@ 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 enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
_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;};
};
@@ -417,24 +417,6 @@ if (true) then
_this setPos [485.03888, 1081.0292, -1.9073486e-006];
};
_vehicle_198 = objNull;
if (true) then
{
_this = createVehicle ["ACRE_RadioBox", [470.888, 1112.5718, -1.9073486e-006], [], 0, "CAN_COLLIDE"];
_vehicle_198 = _this;
_this setDir 144.19466;
_this setPos [470.888, 1112.5718, -1.9073486e-006];
};
_vehicle_199 = objNull;
if (true) then
{
_this = createVehicle ["ACRE_OE_303", [469.99954, 1110.0946, 9.5367432e-006], [], 0, "CAN_COLLIDE"];
_vehicle_199 = _this;
_this setDir 35.181255;
_this setPos [469.99954, 1110.0946, 9.5367432e-006];
};
_vehicle_201 = objNull;
if (true) then
{

View File

@@ -16,7 +16,13 @@ class Mission
"glt_m300t",
"CSJ_GyroAC",
"cacharacters2",
"SUV_COL"
"SUV_COL",
"cawheeled_acr_octavia",
"CAWheeled_E_ATV",
"CAWheeled_E_LandRover",
"cawheeled_acr_t810",
"cawheeled_acr_hmmwv",
"camisc_acr_pbx"
};
addOnsAuto[]=
{

View File

@@ -0,0 +1,34 @@
private["_display","_btnRespawn","_btnAbort","_timeOut","_timeMax"];
disableSerialization;
_display = _this select 0;
_btnRespawn = _display displayCtrl 1010;
_btnAbort = _display displayCtrl 104;
_btnRespawn ctrlEnable false;
_btnAbort ctrlEnable false;
_timeOut = 0;
_timeMax = 30;
while {!isNull _display} do {
switch true do {
case ({isPlayer _x} count (player nearEntities ["AllVehicles", 6]) > 1) : {
_btnAbort ctrlEnable false;
cutText ["Cannot Abort near another player!", "PLAIN DOWN"];
};
case (_timeOut < _timeMax && count (player nearEntities ["zZombie_Base", 50]) > 0) : {
_btnAbort ctrlEnable false;
cutText [format ["Can Abort in %1", (_timeMax - _timeOut)], "PLAIN DOWN"];
_timeOut = _timeOut + 1;
};
case (player getVariable["combattimeout", 0] >= time) : {
_btnAbort ctrlEnable false;
cutText ["Cannot Abort while in combat!", "PLAIN DOWN"];
};
default {
_btnAbort ctrlEnable true;
cutText ["", "PLAIN DOWN"];
};
};
sleep 1;
};
cutText ["", "PLAIN DOWN"];

View File

@@ -0,0 +1,91 @@
// 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