Build 213

Improvements in how location for missions is found.
This commit is contained in:
Chris Cardozo 2020-08-01 14:56:22 -04:00
parent ddbf64be29
commit 0789181c6a
15 changed files with 1587 additions and 23 deletions

View File

@ -47,7 +47,7 @@ _fn_buildBlacklistedLocationsList = {
{
_blacklistedLocs append ([] call blck_fnc_getAllDMSMarkers);
};
//diag_log format["_blacklistedLocs = %1",_blacklistedLocs];
_blacklistedLocs
};
@ -58,36 +58,47 @@ private _mindistToMissions = blck_MinDistanceFromMission;
private _minToRecentMissionLocation = 200;
private _coords = [];
private _blacklistedLocations = [_minDistToBases,_minDistToPlayers,_minDistToTowns,_mindistToMissions,_minToRecentMissionLocation] call _fn_buildBlacklistedLocationsList;
//diag_log format["_blacklistedLocations = %1",_blacklistedLocations];
private _count = 25;
while {_coords isEqualTo [] && _count > 0} do
private "_isFlatCoords";
private _slope = 0.10;
_coords = [blck_mapCenter,0,blck_mapRange,10,0,_slope,0,_blacklistedLocations] call BIS_fnc_findSafePos;
if !(_coords isEqualTo []) then
{
/*
6-13-20
Notes
increased min distance to objects from 3 to 10
decreased max slope from 5 to 0.5
*/
_isFlatCoords = _coords isFlatEmpty [10,0,_slope,30,0,false];
};
_coords = [blck_mapCenter,0,blck_mapRange,10,0,0.5,0,_blacklistedLocations] call BIS_fnc_findSafePos;
while { (_isFlatCoords isEqualTo [] || _coords isEqualTo []) && _count > 0} do
{
_coords = [blck_mapCenter,0,blck_mapRange,10,0,_slope,0,_blacklistedLocations] call BIS_fnc_findSafePos;
/* Check whether the location is flat enough: returns [] if not. */
private _isFlat = _coords isFlatEmpty [20,0,0.5,100,0,false];
if (_coords isEqualTo [] || !(_isFlat isEqualTo [])) then
// position isFlatEmpty [minDistance, mode, maxGradient, maxGradientRadius, overLandOrWater, shoreLine, ignoreObject]
if !(_coords isEqualTo []) then
{
_isFlatCoords = _coords isFlatEmpty [10,0,_slope,30,0,false];
};
if (_coords isEqualTo [] || !(_isFlatCoords isEqualTo [])) then
{
{
//private _range = (_x select 1) * 0.7;
_x set[1,(_x select 1) * 0.75];
} forEach _blackListedLocations;
_count = _count - 1;
_slope = _slope + 0.02;
uiSleep 0.1;
};
};
if (_coords isEqualTo []) then
if (_coords isEqualTo [] || _isFlatCoords isEqualTo []) then
{
diag_log format["[blckeagls] <ERROR> Could not find a safe position for a mission, consider reducing values for minimum distances between missions and players, bases, other missions or towns"];
} else {
_isFlatCoords set[2, 0];
};
_coords
_isFlatCoords

View File

@ -306,6 +306,7 @@ _missionParameters params[
// Everything spawned withouth serous errors so lets keep the mission active for future monitoring
blck_activeMissionsList pushBack _el;
if (blck_debugOn) then {[format["Spawned Mission %1 | description %2 | difficulty %3 at %4",_markerName, _markerMissionName, _difficulty, diag_tickTime]] call blck_fnc_log;}
}
catch
@ -477,6 +478,7 @@ _missionParameters params[
_waitTime = diag_tickTime + _tMin + random(_tMax - _tMin);
_missionCategoryDescriptors set [noActive,_noActive - 1];
_missionCategoryDescriptors set [waitTime,_waitTime];
if (blck_debugOn) then {[format["Ended Mission %1 | description %2 | difficulty %3 at %4",_markerName, _markerMissionName, _difficulty, diag_tickTime]] call blck_fnc_log;}
};
case 2: { // Abort, crate moved.
_endMsg = "Crate Removed from Mission Site Before Mission Completion: Mission Aborted";

View File

@ -0,0 +1,141 @@
/*
Mission Template by Ghostrider [GRG]
Mission Compositions by Bill prepared for ghostridergaming
Copyright 2016
Last modified 3/20/17
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
#include "\q\addons\custom_server\Missions\privateVars.sqf";
//diag_log "[blckeagls] Spawning Green Mission with template = default";
_crateLoot = blck_BoxLoot_Green;
_lootCounts = blck_lootCountsGreen;
_startMsg = "An enemy garrison!";
_endMsg = "The garrison is under survivor control!";
_markerLabel = "";
_markerType = ["ellipse",[225,225],"GRID"];
_markerColor = "ColorBlue";
_markerMissionName = "Garrison";
_missionLandscapeMode = "precise"; // acceptable values are "none","random","precise"
_garrisonedBuildings_BuildingPosnSystem = [
["Land_Unfinished_Building_02_F",[-28.137,-48.6494,-0.00268841],0,true,true,0.67,3,[],4],
["Land_i_Shop_02_V2_F",[22.688,35.2515,-0.00268841],0,true,true,0.67,3,[],4]
];
_garrisonedBuilding_ATLsystem = [
["Land_Unfinished_Building_02_F",[-28.3966,34.8145,-0.00268841],0,true,true,[["B_HMG_01_high_F",[-5.76953,1.16504,7.21168],360]],[]],
["Land_Unfinished_Building_02_F",[20.1816,-44.2554,-0.00268841],0,true,true,[],[[[4.68567,3.59082,0.257384],0],[[-5.20032,5.66797,3.96986],0]]]
];
_missionLandscape = [
["Land_i_House_Big_02_V3_F",[-64.5577,-100.259,-0.00268841],0,true,true],
["Land_u_House_Big_01_V1_F",[-65.2944,63.9878,-0.00268841],0,true,true],
["Sign_Sphere100cm_F",[-25.4528,-44.6294,0.614402],0,true,true],
["Sign_Arrow_Direction_Green_F",[24.8673,-40.6646,0.254696],0,true,true],
["Sign_Arrow_Direction_Green_F",[14.9813,-38.5874,3.96717],0,true,true],
["Sign_Arrow_F",[10.937,-14.8413,1.03384],0,true,true],
["Sign_Sphere100cm_F",[18.4126,35.3154,0.499284],0,true,true],
["Land_i_House_Big_02_V1_F",[53.7161,-101.875,-0.00268841],0,true,true],
["Land_i_House_Big_02_V2_F",[52.6943,66.0278,-0.00268841],0,true,true]
];
_missionLootBoxes = [
["Box_IND_AmmoOrd_F",[-25.7473,-46.3496,3.72631],_crateLoot,_lootCounts,359.995],
["Box_NATO_Ammo_F",[-31.2815,14.4961,-0.00268984],_crateLoot,_lootCounts,359.995],
["Box_AAF_Equip_F",[-2.56213,-16.4194,-0.00268888],_crateLoot,_lootCounts,359.999],
["Box_IND_AmmoOrd_F",[3.29309,-24.7749,-0.00268984],_crateLoot,_lootCounts,359.995],
["Box_NATO_Wps_F",[18.3497,-0.543945,-0.00268888],_crateLoot,_lootCounts,360]
];
_missionLootVehicles = [
["B_G_Van_01_transport_F",[10.937,-14.8413,1.03384],_crateLoot,_lootCounts,0]
];
_missionPatrolVehicles = [
["B_LSV_01_armed_F",[-1.72729,-70.439,-0.0251398],0.00168032],
["B_MRAP_01_gmg_F",[-3.96387,50.4224,-0.0167227],0.000187991]
//["B_G_Van_01_transport_F",[11.2661,-13.9561,0.0110526],359.998]
];
_submarinePatrolParameters = [
];
_airPatrols = [
["B_Heli_Light_01_dynamicLoadout_F",[-52.1934,-2.21631,0.00351906],0.0012961]
];
_missionEmplacedWeapons = [
["B_HMG_01_high_F",[-34.1661,35.9795,7.20899],360],
["B_GMG_01_high_F",[43.4441,-24.4961,-0.0144982],360]
];
_missionGroups = [
[[-31.2625,5.21875,-0.00124931],3,6,"Red",30,45],
[[-46.3765,18.731,-0.00124931],3,6,"Red",30,45],
[[-21.8778,18.8506,-0.00124931],3,6,"Red",30,45],
[[-3.32458,-42.5176,-0.00124931],3,6,"Red",30,45],
[[-2.06714,36.3027,-0.00124931],3,6,"Red",30,45],
[[29.3705,-18.0239,-0.00124931],3,6,"Red",30,45]
];
_scubaGroupParameters = [
];
// Change _useMines to true/false below to enable mission-specific settings.
_useMines = blck_useMines;
_minNoAI = blck_MinAI_Green;
_maxNoAI = blck_MaxAI_Green;
_noAIGroups = blck_AIGrps_Green;
_noVehiclePatrols = blck_SpawnVeh_Green;
_noEmplacedWeapons = blck_SpawnEmplaced_Green;
_minNoAI = blck_MinAI_Blue; // Setting this in the mission file overrides the defaults such as blck_MinAI_Blue
_maxNoAI = blck_MaxAI_Blue; // Setting this in the mission file overrides the defaults
_noAIGroups = blck_AIGrps_Blue; // Setting this in the mission file overrides the defaults
_noVehiclePatrols = blck_SpawnVeh_Blue; // Setting this in the mission file overrides the defaults
_noEmplacedWeapons = blck_SpawnEmplaced_Blue; // Setting this in the mission file overrides the defaults
// Change _useMines to true/false below to enable mission-specific settings.
_useMines = blck_useMines; // Setting this in the mission file overrides the defaults
_uniforms = blck_SkinList; // Setting this in the mission file overrides the defaults
_headgear = blck_headgear; // Setting this in the mission file overrides the defaults
_vests = blck_vests;
_backpacks = blck_backpacks;
_weaponList = ["blue"] call blck_fnc_selectAILoadout;
_sideArms = blck_Pistols;
_chanceHeliPatrol = blck_chanceHeliPatrolBlue; // Setting this in the mission file overrides the defaults
_noChoppers = blck_noPatrolHelisBlue;
_missionHelis = blck_patrolHelisBlue;
_chancePara = blck_chanceParaBlue; // Setting this in the mission file overrides the defaults
_noPara = blck_noParaBlue; // Setting this in the mission file overrides the defaults
_paraTriggerDistance = 400; // Distance from mission at which a player triggers these reinforcements and any supplemental loot. // To have paras spawn at the time the mission spawns with/without accompanying loot set this to 0.
_paraSkill = "red"; // Choose any skill you like; bump up skill or add AI to justify more valuable loot.
_chanceLoot = 0.0;
_paraLoot = blck_BoxLoot_Blue;
_paraLootCounts = blck_lootCountsRed; // Throw in something more exotic than found at a normal blue mission.
_spawnCratesTiming = blck_spawnCratesTiming; // Choices: "atMissionSpawnGround","atMissionEndGround","atMissionEndAir".
// Crates spawned in the air will be spawned at mission center or the position(s) defined in the mission file and dropped under a parachute.
// This sets the default value but can be overridden by defining _spawnCrateTiming in the file defining a particular mission.
_loadCratesTiming = blck_loadCratesTiming; // valid choices are "atMissionCompletion" and "atMissionSpawn";
// Pertains only to crates spawned at mission spawn.
// This sets the default but can be overridden for specific missions by defining _loadCratesTiming
// Examples:
// To spawn crates at mission start loaded with gear set blck_spawnCratesTiming = "atMissionSpawnGround" && blck_loadCratesTiming = "atMissionSpawn"
// To spawn crates at mission start but load gear only after the mission is completed set blck_spawnCratesTiming = "atMissionSpawnGround" && blck_loadCratesTiming = "atMissionCompletion"
// To spawn crates on the ground at mission completion set blck_spawnCratesTiming = "atMissionEndGround" // Note that a loaded crate will be spawned.
// To spawn crates in the air and drop them by chutes set blck_spawnCratesTiming = "atMissionEndAir" // Note that a loaded crate will be spawned.
_endCondition = blck_missionEndCondition; // Options are "allUnitsKilled", "playerNear", "allKilledOrPlayerNear"
// Setting this in the mission file overrides the defaults
//_timeOut = -1;
#include "\q\addons\custom_server\Compiles\Missions\GMS_fnc_missionSpawner.sqf";

View File

@ -14,13 +14,13 @@
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
private _pathBlue = "Blue";
private _missionListBlue = ["default","hostage1","captive1","medicalCamp","redCamp","resupplyCamp"];
private _missionListBlue = ["default","hostage1","captive1","medicalCamp","redCamp","resupplyCamp","garrison"];
private _pathRed = "Red";
private _missionListRed = ["default","redCamp","medicalCamp","resupplyCamp"];
private _missionListRed = ["default","redCamp","medicalCamp","resupplyCamp","carThieves"];
private _pathGreen = "Green";
private _missionListGreen = ["default","medicalCamp","redCamp","resupplyCamp"];
private _missionListGreen = ["default","medicalCamp","redCamp","resupplyCamp","banditVillage","charlston","factory","fortification","munitionsResearch"];
private _pathOrange = "Orange";
private _missionListOrange = ["default","medicalCamp","redCamp","resupplyCamp"];
private _missionListOrange = ["default","medicalCamp","redCamp","resupplyCamp","bunker","dashq","tko_camp"];

View File

@ -0,0 +1,112 @@
/*
Mission Template by Ghostrider [GRG]
Mission Compositions by Bill prepared for ghostridergaming
Copyright 2016
Last modified 3/20/17
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
#include "\q\addons\custom_server\Missions\privateVars.sqf";
//diag_log "[blckeagls] Spawning Green Mission with template = default";
_crateLoot = blck_BoxLoot_Green;
_lootCounts = blck_lootCountsGreen;
_startMsg = "An enemy village was sighted in a nearby sector! Check the Green marker on your map for the location!";
_endMsg = "The Sector at the Green Marker is under survivor control!";
_markerLabel = "";
_markerType = ["ellipse",[225,225],"GRID"];
_markerColor = "ColorGreen";
_markerMissionName = "Village";
_missionLandscapeMode = "precise"; // acceptable values are "none","random","precise"
_garrisonedBuildings_BuildingPosnSystem = [
["Land_Unfinished_Building_02_F",[-28.137,-48.6494,0],0,true,true,0.67,3,[],4],
["Land_i_Shop_02_V2_F",[22.688,35.2515,0],0,true,true,0.67,3,[],4]
];
_garrisonedBuilding_ATLsystem = [
["Land_Unfinished_Building_02_F",[-28.3966,34.8145,0],0,true,true,[["B_HMG_01_high_F",[-5.76953,1.16504,7.2248],0]],[]],
["Land_Unfinished_Building_02_F",[20.1816,-44.2554,0],0,true,true,[],[[[4.68567,3.59082,0.257384],0],[[-5.20032,5.66797,3.96986],0]]]
];
_missionLandscape = [
["Land_i_House_Big_02_V3_F",[-64.5577,-100.259,0],0,true,true],
["Land_u_House_Big_01_V1_F",[-65.2944,63.9878,0],0,true,true],
// ["Sign_Sphere100cm_F",[-25.4528,-44.6294,0.617091],0,true,true],
// ["Sign_Arrow_Direction_Green_F",[24.8673,-40.6646,0.257384],0,true,true],
// ["Sign_Arrow_Direction_Green_F",[14.9813,-38.5874,3.96986],0,true,true],
//["Sign_Arrow_F",[10.937,-14.8413,1.03653],0,true,true],
// ["Sign_Sphere100cm_F",[18.4126,35.3154,0.501973],0,true,true],
["Land_i_House_Big_02_V1_F",[53.7161,-101.875,0],0,true,true],
["Land_i_House_Big_02_V2_F",[52.6943,66.0278,0],0,true,true]
];
_missionLootBoxes = [
selectRandom[
["Box_IND_AmmoOrd_F",[-25.7473,-46.3496,3.73],_crateLoot,_lootCounts,0],
["Box_NATO_Ammo_F",[-31.2815,14.4961,0],_crateLoot,_lootCounts,0],
["Box_AAF_Equip_F",[-2.56213,-16.4194,0],_crateLoot,_lootCounts,0],
["Box_IND_AmmoOrd_F",[3.29309,-24.7749,0],_crateLoot,_lootCounts,0],
["Box_NATO_Wps_F",[18.3497,-0.543945,0],_crateLoot,_lootCounts,0]
]
];
_missionLootVehicles = [
// ["",[10.937,-14.8413,1.03653],_crateLoot,_lootCounts,0]
];
_missionPatrolVehicles = [
//["B_LSV_01_armed_F",[-1.72583,-70.4502,0],0],
//["B_MRAP_01_gmg_F",[-3.95642,50.4224,-9.53674e-007],0],
// ["B_G_Van_01_transport_F",[11.2654,-13.9736,-0.000131607],0]
];
_submarinePatrolParameters = [
];
_airPatrols = [
["B_Heli_Light_01_dynamicLoadout_F",[-52.1934,-2.21387,0],0]
];
_missionEmplacedWeapons = [
["B_HMG_01_high_F",[-34.1661,35.9795,7.2248],0],
["B_GMG_01_high_F",[43.4441,-24.4961,0],0]
];
_missionGroups = [
[[-31.2625,5.21875,0.00143909],3,6,"Green",30,45],
[[-3.32458,-42.5176,0.00143909],3,6,"Green",30,45],
[[-7.85986,-2.72217,0.00143909],3,6,"Green",30,45],
[[-2.06714,36.3027,0.00143909],3,6,"Green",30,45],
[[29.3705,-18.0239,0.00143909],3,6,"Green",30,45]
];
_scubaGroupParameters = [
];
// Change _useMines to true/false below to enable mission-specific settings.
_useMines = blck_useMines;
_minNoAI = blck_MinAI_Green;
_maxNoAI = blck_MaxAI_Green;
_noAIGroups = blck_AIGrps_Green;
_noVehiclePatrols = blck_SpawnVeh_Green;
_noEmplacedWeapons = blck_SpawnEmplaced_Green;
_uniforms = blck_SkinList;
_headgear = blck_headgear;
_chanceLoot = 0.6;
private _lootIndex = selectRandom[1,2,3,4];
private _paralootChoices = [blck_contructionLoot,blck_contructionLoot,blck_highPoweredLoot,blck_supportLoot];
private _paralootCountsChoices = [[0,0,0,8,8,0],[0,0,0,8,8,0],[8,8,0,0,0,0],[0,0,0,0,12,0]];
_paraLoot = _paralootChoices select _lootIndex;
_paraLootCounts = _paralootCountsChoices select _lootIndex; // Throw in something more exotic than found at a normal blue mission.
//_endCondition = "allKilledOrPlayerNear"; // Options are "allUnitsKilled", "playerNear", "allKilledOrPlayerNear"
//_timeOut = -1;
#include "\q\addons\custom_server\Compiles\Missions\GMS_fnc_missionSpawner.sqf";

View File

@ -0,0 +1,185 @@
/*
Mission Template by Ghostrider [GRG]
Mission Compositions by Bill prepared for ghostridergaming
Copyright 2016
Last modified 3/20/17
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
#include "\q\addons\custom_server\Missions\privateVars.sqf";
_crateLoot = blck_BoxLoot_Red;
_lootCounts = blck_lootCountsRed;
_startMsg = "Camp Charlston is being built by the enemy in a nearby sector.";
_endMsg = "Camp Charleston is under survivor control!";
_markerLabel = "";
_markerType = ["ellipse",[200,200],"GRID"];
_markerColor = "ColorRed";
_markerMissionName = "Camp Charleston";
_missionLandscapeMode = "precise"; // acceptable values are "none","random","precise"
//////////
// Past the output of the script here
_garrisonedBuildings_BuildingPosnSystem = [];
_garrisonedBuilding_ATLsystem = [
["Land_Cargo_Patrol_V1_F",[4.47693,-36.1753,-0.00143862],0,true,true,[["B_HMG_01_high_F",[1.09753,-0.78125,4.33092],182.337],["B_HMG_01_high_F",[-8.18188,3.96289,-0.0121179],270.389],["B_HMG_01_high_F",[11.7308,-7.875,-0.0121193],181.165]],[]],
["Land_Cargo_Tower_V1_F",[6.56189,-19.98,-0.00143909],180,true,true,[["B_HMG_01_high_F",[12.7545,4.6084,-0.0121183],225.183],["B_HMG_01_high_F",[-4.78821,0.935547,17.8764],270.571],["B_HMG_01_high_F",[3.17285,4.91357,17.7788],0.00164279]],[]],
["Land_Cargo_HQ_V1_F",[2.97693,0.074707,-0.00143862],180,true,true,[["B_HMG_01_high_F",[-5.3407,0.772461,3.1134],181.165]],[]],
["Land_Cargo_Patrol_V1_F",[41.4769,-36.1753,-0.00143862],0,true,true,[["B_HMG_01_high_F",[1.27466,-0.849121,4.33092],181.165],["B_HMG_01_high_F",[-7.82532,-8.49463,-0.0121193],181.165]],[]]
];
_missionLandscape = [
["Land_CncWall4_F",[-8.77258,1.07471,-0.00143909],90,true,true],
["Land_CncWall4_F",[-8.77258,-4.17529,-0.00143909],90,true,true],
["Land_CncWall4_F",[-8.77258,6.32471,-0.00143909],90,true,true],
["Land_CncWall4_F",[-6.52258,8.57471,-0.00143909],180,true,true],
["Land_CncWall1_F",[-8.77258,-7.42529,-0.00143909],90,true,true],
["Land_CncWall1_F",[-8.52258,-8.67529,-0.00143909],60,true,true],
["Land_New_WiredFence_10m_F",[-9.77258,-4.92529,-0.00143909],90,true,true],
["Land_New_WiredFence_10m_F",[-9.77258,5.07471,-0.00143909],90,true,true],
["Land_LampShabby_F",[19.8737,-40.29,-0.00143909],149.832,true,true],
["Land_BagFence_Round_F",[-4.80505,-33.3926,-0.00143909],45.9826,true,true],
["Land_BagFence_Round_F",[14.8495,-44.9292,-0.00143909],45,true,true],
["Land_BagFence_Round_F",[-4.76855,-31.2666,-0.00143909],135.983,true,true],
["Land_BagFence_Round_F",[14.599,-41.1792,-0.00143909],120,true,true],
["Land_BagFence_Long_F",[11.2294,-22.6245,-0.00143909],180,true,true],
["Land_BagFence_Long_F",[12.6,-24.3042,-0.00143909],270,true,true],
["Land_BagFence_Long_F",[11.224,-25.6792,-0.00143909],180,true,true],
["Land_BagFence_Long_F",[-2.69324,-34.1782,-0.00143909],180.983,true,true],
["Land_BagFence_Long_F",[17.1,-45.6792,-0.00143909],180,true,true],
["Land_BagFence_Long_F",[18.4745,-44.1792,-0.00143909],90,true,true],
["Land_CncBarrier_F",[19.975,-35.6792,-0.00143909],270,true,true],
["Land_PortableLight_double_F",[7.0155,-26.8413,-0.00143909],270,true,true],
["Land_CncWall4_F",[4.47742,-22.6753,-0.00143909],90,true,true],
["Land_CncWall4_F",[1.22742,-35.1753,-0.00143909],90,true,true],
["Land_CncWall4_F",[3.47742,-37.4253,-0.00143909],0,true,true],
["Land_CncWall1_F",[1.47742,-31.9253,-0.00143909],105,true,true],
["Land_CncWall1_F",[7.97742,-36.6753,-0.00143909],330,true,true],
["Land_CncWall1_F",[6.72742,-37.1753,-0.00143909],345,true,true],
["Land_CncWall1_F",[5.31714,-26.9092,-0.00143909],75,true,true],
["Land_CncWall1_F",[4.80066,-25.6685,-0.00143909],60,true,true],
["Land_BagFence_End_F",[15.9755,-40.3042,-0.00143909],0,true,true],
["Land_BagFence_End_F",[-1.75403,-30.4434,-0.00143909],330.983,true,true],
["Land_BagFence_End_F",[18.8319,-42.6753,-0.00143909],330,true,true],
["Land_BagFence_End_F",[-0.797119,-32.9614,-0.00143909],300.983,true,true],
["Land_New_WiredFence_10m_F",[4.97937,-39.5308,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_F",[14.7274,-39.4253,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_F",[0.272339,-34.5835,-0.00143909],90,true,true],
["Land_BagFence_Corner_F",[-1.31201,-33.8271,-0.00143909],90.9826,true,true],
["Land_BarGate_F",[24.7274,-41.9253,-0.00143909],0,true,true],
["Land_Mil_WiredFence_Gate_F",[24.7274,-39.6675,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_Dam_F",[0.227417,-24.6753,-0.00143909],90,true,true],
["Land_BagFence_Short_F",[-2.88318,-30.6743,-0.00143909],180.983,true,true],
["Land_BagFence_Short_F",[14.224,-43.0542,-0.00143909],270,true,true],
["Land_Mil_WallBig_4m_F",[25.6038,-18.8174,-0.00143909],270,true,true],
["Land_BagFence_Round_F",[18.3368,-16.3926,-0.00143909],45,true,true],
["Land_BagFence_Long_F",[11.349,-18.1792,-0.00143909],180,true,true],
["Land_BagFence_Long_F",[12.7245,-16.8042,-0.00143909],90,true,true],
["Land_BagFence_Long_F",[11.349,-15.4312,-0.00143909],180,true,true],
["Land_BagFence_Long_F",[20.8373,-17.0176,-0.00143909],0,true,true],
["Land_CncWall4_F",[-0.272583,-9.17529,-0.00143909],0,true,true],
["Land_CncWall4_F",[-5.64758,-9.17529,-0.00143909],0,true,true],
["Land_CncWall4_F",[5.10242,-9.17529,-0.00143909],0,true,true],
["Land_CncWall4_F",[3.97742,8.57471,-0.00143909],180,true,true],
["Land_CncWall4_F",[4.47742,-17.4253,-0.00143909],90,true,true],
["Land_CncWall4_F",[8.72742,7.19971,-0.00143909],210,true,true],
["Land_CncWall4_F",[-1.27258,8.57471,-0.00143909],180,true,true],
["Land_CncWall4_F",[4.48242,-12.2109,-0.00143909],90,true,true],
["Land_CncWall4_F",[12.7274,-3.80029,-0.00143909],270,true,true],
["Land_CncWall4_F",[12.7274,1.44971,-0.00143909],270,true,true],
["Land_CncWall1_F",[11.6024,-7.92529,-0.00143909],315,true,true],
["Land_CncWall1_F",[11.6024,5.44971,-0.00143909],210,true,true],
["Land_CncWall1_F",[12.4774,4.57471,-0.00143909],240,true,true],
["Land_CncWall1_F",[10.6024,-8.55029,-0.00143909],345,true,true],
["Land_CncWall1_F",[12.3524,-6.92529,-0.00143909],300,true,true],
["Land_New_WiredFence_10m_F",[14.9774,9.57471,-0.00143909],180,true,true],
["Land_New_WiredFence_10m_F",[4.97742,9.57471,-0.00143909],180,true,true],
["Land_New_WiredFence_10m_F",[-5.27258,-9.42529,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_F",[-5.02258,9.57471,-0.00143909],180,true,true],
["Land_New_WiredFence_10m_F",[0.227417,-14.6753,-0.00143909],90,true,true],
["Land_CncShelter_F",[8.84314,-9.19678,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_Dam_F",[24.9774,-0.050293,-0.00143909],180,true,true],
["Land_New_WiredFence_10m_Dam_F",[19.7274,5.07471,-0.00143909],270,true,true],
["Land_BagFence_Short_F",[17.7123,-14.3945,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[23.4019,-2.35938,-0.00143909],0,true,true],
["Land_Mil_WallBig_4m_F",[17.7269,-11.4253,-0.00143909],270,true,true],
["Land_Mil_WallBig_4m_F",[19.2269,-6.17529,-0.00143909],0,true,true],
["Land_Mil_WallBig_4m_F",[20.0457,-13.5703,-0.00143909],180,true,true],
["Land_Mil_WallBig_4m_F",[21.1479,-4.53125,-0.00143909],270,true,true],
["Land_LampShabby_F",[29.5619,-40.2676,-0.00143909],210,true,true],
["Land_LampShabby_F",[40.4146,-21.3286,-0.00143909],326.67,true,true],
["Land_BagFence_Round_F",[34.9688,-45.8774,-0.00143909],315,true,true],
["Land_BagFence_Round_F",[32.8423,-45.8774,-0.00143909],45,true,true],
["Land_BagFence_Long_F",[35.7183,-43.7524,-0.00143909],90,true,true],
["Land_CncBarrier_F",[29.725,-35.5542,-0.00143909],270,true,true],
["Land_CncWall4_F",[41.7274,-38.6753,-0.00143909],0,true,true],
["Land_CncWall4_F",[43.9774,-36.4253,-0.00143909],270,true,true],
["Land_CncWall1_F",[38.4774,-38.4253,-0.00143909],15,true,true],
["Land_CncWall1_F",[37.2401,-37.894,-0.00143909],30,true,true],
["Land_CncWall1_F",[43.7274,-33.1753,-0.00143909],255,true,true],
["Land_BagFence_End_F",[34.4688,-41.8774,-0.00143909],210,true,true],
["Land_BagFence_End_F",[31.9678,-42.8774,-0.00143909],240,true,true],
["Land_New_WiredFence_10m_F",[44.515,-24.8999,-0.00143909],270,true,true],
["Land_New_WiredFence_10m_F",[34.7274,-39.1753,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_F",[44.515,-34.6499,-0.00143909],270,true,true],
["Land_BagFence_Corner_F",[35.3433,-42.3774,-0.00143909],0,true,true],
["Land_New_WiredFence_5m_F",[42.2655,-39.1499,-0.00143909],0,true,true],
["Land_BagFence_Short_F",[32.2178,-44.0024,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[39.1169,-22.2583,-0.00143909],180,true,true],
["Land_Mil_WallBig_4m_F",[31.9081,-20.9619,-0.00143909],180,true,true],
["Land_Mil_WallBig_4m_F",[41.4412,-20.3794,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[27.9435,-20.9658,-0.00143909],180,true,true],
["Land_Cargo_HQ_V1_F",[33.7463,-12.4639,-0.00143862],271.492,true,true],
["Land_New_WiredFence_10m_F",[44.4774,-4.92529,-0.00143909],270,true,true],
["Land_New_WiredFence_10m_F",[44.4774,-14.9253,-0.00143909],270,true,true],
["Land_New_WiredFence_10m_F",[34.9774,-0.175293,-0.00143909],180,true,true],
["Land_New_WiredFence_5m_F",[42.4774,-0.175293,-0.00143909],180,true,true],
["Land_Mil_WallBig_4m_F",[31.3369,-2.34375,-0.00143909],0,true,true],
["Land_Mil_WallBig_4m_F",[41.4467,-8.47168,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[41.4458,-12.4146,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[41.4386,-16.4019,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[35.2737,-2.33789,-0.00143909],0,true,true],
["Land_Mil_WallBig_4m_F",[41.4539,-4.48438,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[39.1295,-2.32617,-0.00143909],0,true,true],
["Land_Mil_WallBig_4m_F",[27.3386,-2.35352,-0.00143909],0,true,true]
];
_missionLootBoxes = [];
_missionLootVehicles = [];
_missionPatrolVehicles = [
// ["B_G_Offroad_01_armed_F",[21.4174,19.0781,0.00804281],90.3115],
// ["B_G_Offroad_01_armed_F",[27.5131,-53.1431,0.00819397],268.528]
];
_missionLootBoxes = []; // Parameters are "Box Item Code", array defining the loot to be spawned, and position.
_missionLootVehicles = []; // Parameters are "Box Item Code", array defining the loot to be spawned, and position.
_missionEmplacedWeapons = [];
_missionGroups = [];
// Change _useMines to true/false below to enable mission-specific settings.
_useMines = blck_useMines;
_minNoAI = blck_MinAI_Red;
_maxNoAI = blck_MaxAI_Red;
_noAIGroups = blck_AIGrps_Red;
_noVehiclePatrols = blck_SpawnVeh_Red;
_noEmplacedWeapons = blck_SpawnEmplaced_Red;
_uniforms = blck_SkinList;
_headgear = blck_headgear;
_chanceLoot = 0.6;
private _lootIndex = selectRandom[1,2,3,4];
private _paralootChoices = [blck_contructionLoot,blck_contructionLoot,blck_highPoweredLoot,blck_supportLoot];
private _paralootCountsChoices = [[0,0,0,8,8,0],[0,0,0,8,8,0],[8,8,0,0,0,0],[0,0,0,0,12,0]];
_paraLoot = _paralootChoices select _lootIndex;
_paraLootCounts = _paralootCountsChoices select _lootIndex; // Throw in something more exotic than found at a normal blue mission.
//_endCondition = "allKilledOrPlayerNear"; // Options are "allUnitsKilled", "playerNear", "allKilledOrPlayerNear"
//_timeOut = -1;
#include "\q\addons\custom_server\Compiles\Missions\GMS_fnc_missionSpawner.sqf";

View File

@ -0,0 +1,136 @@
/*
Mission Template by Ghostrider [GRG]
Mission Compositions by Bill prepaGreen for ghostridergaming
Copyright 2016
Last modified 3/20/17
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
#include "\q\addons\custom_server\Missions\privateVars.sqf";
//diag_log "[blckeagls] Spawning Green Mission with template = default";
_crateLoot = blck_BoxLoot_Green;
_lootCounts = blck_lootCountsGreen;
_startMsg = "An Ammunition Factory was sighted in a nearby sector! Check the Green marker on your map for the location!";
_endMsg = "The Factory at the Green Marker is under survivor control!";
_markerLabel = "";
_markerType = ["ELLIPSE",[300,300],"Solid"];
_markerColor = "ColorGreen";
_markerMissionName = "Factory";
_missionLandscapeMode = "precise"; // acceptable values are "none","random","precise"
//////////
// Past the output of the script here
_garrisonedBuildings_BuildingPosnSystem = [
];
_garrisonedBuilding_ATLsystem = [
["Land_Cargo_Tower_V3_F",[-18.6987,-51.7905,-0.0014348],91.6296,true,true,[["B_HMG_01_high_F",[3.31396,2.89209,8.57585],359.999],["B_HMG_01_high_F",[13.0347,0.8479,-0.0121226],360],["B_HMG_01_high_F",[-9.4834,13.5967,-0.0121226],0.00158913],["B_HMG_01_high_F",[-0.601074,3.90967,17.8764],359.999],["B_HMG_01_high_F",[-0.877441,-4.83179,17.8764],359.999],["B_HMG_01_high_F",[-9.77783,29.3799,-0.0121226],360]],[]],
["Land_Cargo_Patrol_V3_F",[-27.1675,-15.407,-0.00143814],91.6296,true,true,[["B_HMG_01_high_F",[-1.15381,1.24658,4.33092],275.276]],[]],
["Land_Cargo_Patrol_V3_F",[-10.7632,4.77441,-0.00143814],181.63,true,true,[["B_HMG_01_high_F",[-1.32959,1.03662,4.33092],359.999]],[]],
["Land_Cargo_Patrol_V3_F",[12.9375,3.5835,-0.00143814],181.63,true,true,[["B_HMG_01_high_F",[1.57861,1.04736,4.33093],357.402],["B_HMG_01_high_F",[8.41357,-9.20557,-0.0121202],0.0033673]],[]]
];
_missionLandscape = [
//["babe_helper",[-4335.99,-3525.64,-0.00143862],0,true,true],
//["Sign_Arrow_Green_F",[-4333.49,-3526.14,-0.00143862],0,true,true],
//["Sign_Arrow_F",[-4333.49,-3526.14,-0.00143862],0,true,true],
//["Sign_Arrow_Yellow_F",[-4333.49,-3526.14,-0.00143862],0,true,true],
["Land_BagFence_Long_F",[-29.7012,-38.5171,-0.00143862],91.6296,true,true],
["Land_BagFence_Long_F",[-27.5103,-40.5801,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[-22.1475,-58.7117,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[-25.2705,-45.3574,-0.00143862],91.6296,true,true],
["Land_HBarrier_Big_F",[-25.3784,-53.6096,-0.00143862],91.6296,true,true],
["Land_BagFence_Corner_F",[-29.377,-40.2764,-0.00143862],181.63,true,true],
["Land_BagFence_Corner_F",[-25.5186,-40.8857,-0.00143862],1.62962,true,true],
["Land_BagFence_Long_F",[-27.6362,-36.2009,-0.00143862],1.62962,true,true],
["Land_HBarrier_Big_F",[-31.3271,-12.1621,-0.00143862],91.6296,true,true],
["Land_HBarrier_Big_F",[-26.2822,-19.4336,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[-31.4404,-20.5371,-0.00143862],91.6296,true,true],
["Land_BagFence_Corner_F",[-29.3945,-36.5234,-0.00143862],271.63,true,true],
["CamoNet_OPFOR_F",[-25.6099,-22.126,-0.00143862],1.62962,true,true],
["CamoNet_OPFOR_big_F",[-23.2964,2.06958,-0.00143862],1.62962,true,true],
["Land_HBarrier_Big_F",[-31.3423,-3.90796,-0.00143862],91.6296,true,true],
["Land_HBarrier_Big_F",[-27.8384,9.37231,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[-31.2295,4.46704,-0.00143862],91.6296,true,true],
["Land_HBarrier_Big_F",[-19.4634,9.25928,-0.00143862],181.63,true,true],
["Land_BagFence_Round_F",[-3.56348,-51.6428,-0.00143862],316.63,true,true],
["Land_BagFence_Long_F",[-6.08105,-52.1965,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[11.7363,-54.9075,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[3.36133,-54.7944,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[-8.54834,-55.4766,-0.00143862],91.6296,true,true],
["Land_HBarrier_Big_F",[-13.6416,-58.7065,-0.00143862],181.63,true,true],
["Land_dp_mainFactory_F",[7.44922,-29.397,-0.00143862],1.62962,true,true],
["Land_HBarrier_Big_F",[-6.04248,6.25171,-0.00143862],271.63,true,true],
["Land_HBarrier_Big_F",[11.5215,8.25244,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[-11.2095,9.27417,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[8.12988,3.34741,-0.00143862],91.6296,true,true],
["Land_HBarrier_Big_F",[19.9902,-54.8926,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[32.8569,-43.4072,-0.00143862],271.63,true,true],
["Land_HBarrier_Big_F",[28.146,-54.7991,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[32.873,-51.5361,-0.00143862],271.63,true,true],
["Land_BagFence_Round_F",[37.7549,-30.4514,-0.00143862],316.63,true,true],
["Land_BagFence_Round_F",[37.8594,-28.2903,-0.00143862],226.63,true,true],
["Land_BagFence_Long_F",[35.2378,-31.0051,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[33.3535,-19.7563,-0.00143862],271.63,true,true],
["Land_HBarrier_Big_F",[30.1147,-14.9102,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[32.8462,-34.9041,-0.00143862],271.63,true,true],
["Land_HBarrier_Big_F",[24.9575,-11.6372,-0.00143862],271.63,true,true],
["CamoNet_OPFOR_F",[21.7773,-9.21729,-0.00143862],91.6296,true,true],
["Land_HBarrier_Big_F",[19.8965,8.1394,-0.00143862],181.63,true,true],
["Land_HBarrier_Big_F",[24.9307,4.99487,-0.00143862],271.63,true,true],
["Land_HBarrier_Big_F",[24.9414,-3.5083,-0.00143862],271.63,true,true]
];
_missionLootBoxes = [];
_missionLootVehicles = [];
_missionPatrolVehicles = [
// ["B_G_Offroad_01_armed_F",[-53.8027,-29.7834,0.00867844],0.00103655],
// ["B_G_Offroad_01_armed_F",[51.0596,-25.7876,0.00815535],0.00104356]
];
_submarinePatrolParameters = [];
_airPatrols = [];
_missionEmplacedWeapons = []; //
_missionGroups = [];
//////////
// The lines below define additional variables you may wish to configure.
// Change _useMines to true/false below to enable mission-specific settings.
_useMines = blck_useMines;
_minNoAI = blck_MinAI_Green;
_maxNoAI = blck_MaxAI_Green;
_noAIGroups = blck_AIGrps_Green;
_noVehiclePatrols = blck_SpawnVeh_Green;
_noEmplacedWeapons = blck_SpawnEmplaced_Green;
_uniforms = blck_SkinList;
_headgear = blck_headgear;
_chancePara = 0.75; // Setting this in the mission file overrides the defaults
_noPara = 5; // Setting this in the mission file overrides the defaults
_paraTriggerDistance = 400; // Distance from mission at which a player triggers these reinforcements and any supplemental loot. // To have paras spawn at the time the mission spawns with/without accompanying loot set this to 0.
_paraSkill = "Green"; // Choose any skill you like; bump up skill or add AI to justify more valuable loot.
_chanceLoot = 0.7;
private _lootIndex = selectRandom[1,2,3,4];
private _paralootChoices = [blck_contructionLoot,blck_contructionLoot,blck_highPoweredLoot,blck_supportLoot];
private _paralootCountsChoices = [[0,0,0,10,10,0],[0,0,0,10,10,0],[10,10,0,0,0,0],[0,0,0,0,15,0]];
_paraLoot = _paralootChoices select _lootIndex;
_paraLootCounts = _paralootCountsChoices select _lootIndex; // Throw in something more exotic than found at a normal blue mission.
//_endCondition = "playerNear"; // Options are "allUnitsKilled", "playerNear", "allKilledOrPlayerNear"
//_timeOut = -1;
#include "\q\addons\custom_server\Compiles\Missions\GMS_fnc_missionSpawner.sqf";

View File

@ -0,0 +1,197 @@
/*
Mission Template by Ghostrider [GRG]
Mission Compositions by Bill prepared for ghostridergaming
Copyright 2016
Last modified 3/20/17
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
#include "\q\addons\custom_server\Missions\privateVars.sqf";
//diag_log "[blckeagls] Spawning Green Mission with template = default";
_crateLoot = blck_BoxLoot_Green;
_lootCounts = blck_lootCountsGreen;
_startMsg = "An enemy fortification was sighted in a nearby sector! Check the Green marker on your map for the location!";
_endMsg = "The Sector at the Green Marker is under survivor control!";
_markerLabel = "";
_markerType = ["ellipse",[225,225],"GRID"];
_markerColor = "ColorGreen";
_markerMissionName = "Fortification";
_missionLandscapeMode = "precise"; // acceptable values are "none","random","precise"
_garrisonedBuilding_ATLsystem = [
["Land_Cargo_Patrol_V1_F",[4.47693,-36.1753,-0.00143862],0,true,true,[["B_HMG_01_high_F",[1.09753,-0.78125,4.33092],182.337],["B_HMG_01_high_F",[-8.18188,3.96289,-0.0121179],270.389],["B_HMG_01_high_F",[11.7308,-7.875,-0.0121193],181.165]],[]],
["Land_Cargo_Tower_V1_F",[6.56189,-19.98,-0.00143909],180,true,true,[["B_HMG_01_high_F",[12.7545,4.6084,-0.0121183],225.183],["B_HMG_01_high_F",[-4.78821,0.935547,17.8764],270.571],["B_HMG_01_high_F",[3.17285,4.91357,17.7788],0.00164279]],[]],
["Land_Cargo_HQ_V1_F",[2.97693,0.074707,-0.00143862],180,true,true,[["B_HMG_01_high_F",[-5.3407,0.772461,3.1134],181.165]],[]],
["Land_Cargo_Patrol_V1_F",[41.4769,-36.1753,-0.00143862],0,true,true,[["B_HMG_01_high_F",[1.27466,-0.849121,4.33092],181.165],["B_HMG_01_high_F",[-7.82532,-8.49463,-0.0121193],181.165]],[]]
];
_missionLandscape = [
["Land_CncWall4_F",[-8.77258,1.07471,-0.00143909],90,true,true],
["Land_CncWall4_F",[-8.77258,-4.17529,-0.00143909],90,true,true],
["Land_CncWall4_F",[-8.77258,6.32471,-0.00143909],90,true,true],
["Land_CncWall4_F",[-6.52258,8.57471,-0.00143909],180,true,true],
["Land_CncWall1_F",[-8.77258,-7.42529,-0.00143909],90,true,true],
["Land_CncWall1_F",[-8.52258,-8.67529,-0.00143909],60,true,true],
["Land_New_WiredFence_10m_F",[-9.77258,-4.92529,-0.00143909],90,true,true],
["Land_New_WiredFence_10m_F",[-9.77258,5.07471,-0.00143909],90,true,true],
["Land_LampShabby_F",[19.8737,-40.29,-0.00143909],149.832,true,true],
["Land_BagFence_Round_F",[-4.80505,-33.3926,-0.00143909],45.9826,true,true],
["Land_BagFence_Round_F",[14.8495,-44.9292,-0.00143909],45,true,true],
["Land_BagFence_Round_F",[-4.76855,-31.2666,-0.00143909],135.983,true,true],
["Land_BagFence_Round_F",[14.599,-41.1792,-0.00143909],120,true,true],
["Land_BagFence_Long_F",[11.2294,-22.6245,-0.00143909],180,true,true],
["Land_BagFence_Long_F",[12.6,-24.3042,-0.00143909],270,true,true],
["Land_BagFence_Long_F",[11.224,-25.6792,-0.00143909],180,true,true],
["Land_BagFence_Long_F",[-2.69324,-34.1782,-0.00143909],180.983,true,true],
["Land_BagFence_Long_F",[17.1,-45.6792,-0.00143909],180,true,true],
["Land_BagFence_Long_F",[18.4745,-44.1792,-0.00143909],90,true,true],
["Land_CncBarrier_F",[19.975,-35.6792,-0.00143909],270,true,true],
["Land_PortableLight_double_F",[7.0155,-26.8413,-0.00143909],270,true,true],
["Land_CncWall4_F",[4.47742,-22.6753,-0.00143909],90,true,true],
["Land_CncWall4_F",[1.22742,-35.1753,-0.00143909],90,true,true],
["Land_CncWall4_F",[3.47742,-37.4253,-0.00143909],0,true,true],
["Land_CncWall1_F",[1.47742,-31.9253,-0.00143909],105,true,true],
["Land_CncWall1_F",[7.97742,-36.6753,-0.00143909],330,true,true],
["Land_CncWall1_F",[6.72742,-37.1753,-0.00143909],345,true,true],
["Land_CncWall1_F",[5.31714,-26.9092,-0.00143909],75,true,true],
["Land_CncWall1_F",[4.80066,-25.6685,-0.00143909],60,true,true],
["Land_BagFence_End_F",[15.9755,-40.3042,-0.00143909],0,true,true],
["Land_BagFence_End_F",[-1.75403,-30.4434,-0.00143909],330.983,true,true],
["Land_BagFence_End_F",[18.8319,-42.6753,-0.00143909],330,true,true],
["Land_BagFence_End_F",[-0.797119,-32.9614,-0.00143909],300.983,true,true],
["Land_New_WiredFence_10m_F",[4.97937,-39.5308,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_F",[14.7274,-39.4253,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_F",[0.272339,-34.5835,-0.00143909],90,true,true],
["Land_BagFence_Corner_F",[-1.31201,-33.8271,-0.00143909],90.9826,true,true],
["Land_BarGate_F",[24.7274,-41.9253,-0.00143909],0,true,true],
["Land_Mil_WiredFence_Gate_F",[24.7274,-39.6675,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_Dam_F",[0.227417,-24.6753,-0.00143909],90,true,true],
["Land_BagFence_Short_F",[-2.88318,-30.6743,-0.00143909],180.983,true,true],
["Land_BagFence_Short_F",[14.224,-43.0542,-0.00143909],270,true,true],
["Land_Mil_WallBig_4m_F",[25.6038,-18.8174,-0.00143909],270,true,true],
["Land_BagFence_Round_F",[18.3368,-16.3926,-0.00143909],45,true,true],
["Land_BagFence_Long_F",[11.349,-18.1792,-0.00143909],180,true,true],
["Land_BagFence_Long_F",[12.7245,-16.8042,-0.00143909],90,true,true],
["Land_BagFence_Long_F",[11.349,-15.4312,-0.00143909],180,true,true],
["Land_BagFence_Long_F",[20.8373,-17.0176,-0.00143909],0,true,true],
["Land_CncWall4_F",[-0.272583,-9.17529,-0.00143909],0,true,true],
["Land_CncWall4_F",[-5.64758,-9.17529,-0.00143909],0,true,true],
["Land_CncWall4_F",[5.10242,-9.17529,-0.00143909],0,true,true],
["Land_CncWall4_F",[3.97742,8.57471,-0.00143909],180,true,true],
["Land_CncWall4_F",[4.47742,-17.4253,-0.00143909],90,true,true],
["Land_CncWall4_F",[8.72742,7.19971,-0.00143909],210,true,true],
["Land_CncWall4_F",[-1.27258,8.57471,-0.00143909],180,true,true],
["Land_CncWall4_F",[4.48242,-12.2109,-0.00143909],90,true,true],
["Land_CncWall4_F",[12.7274,-3.80029,-0.00143909],270,true,true],
["Land_CncWall4_F",[12.7274,1.44971,-0.00143909],270,true,true],
["Land_CncWall1_F",[11.6024,-7.92529,-0.00143909],315,true,true],
["Land_CncWall1_F",[11.6024,5.44971,-0.00143909],210,true,true],
["Land_CncWall1_F",[12.4774,4.57471,-0.00143909],240,true,true],
["Land_CncWall1_F",[10.6024,-8.55029,-0.00143909],345,true,true],
["Land_CncWall1_F",[12.3524,-6.92529,-0.00143909],300,true,true],
["Land_New_WiredFence_10m_F",[14.9774,9.57471,-0.00143909],180,true,true],
["Land_New_WiredFence_10m_F",[4.97742,9.57471,-0.00143909],180,true,true],
["Land_New_WiredFence_10m_F",[-5.27258,-9.42529,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_F",[-5.02258,9.57471,-0.00143909],180,true,true],
["Land_New_WiredFence_10m_F",[0.227417,-14.6753,-0.00143909],90,true,true],
["Land_CncShelter_F",[8.84314,-9.19678,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_Dam_F",[24.9774,-0.050293,-0.00143909],180,true,true],
["Land_New_WiredFence_10m_Dam_F",[19.7274,5.07471,-0.00143909],270,true,true],
["Land_BagFence_Short_F",[17.7123,-14.3945,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[23.4019,-2.35938,-0.00143909],0,true,true],
["Land_Mil_WallBig_4m_F",[17.7269,-11.4253,-0.00143909],270,true,true],
["Land_Mil_WallBig_4m_F",[19.2269,-6.17529,-0.00143909],0,true,true],
["Land_Mil_WallBig_4m_F",[20.0457,-13.5703,-0.00143909],180,true,true],
["Land_Mil_WallBig_4m_F",[21.1479,-4.53125,-0.00143909],270,true,true],
["Land_LampShabby_F",[29.5619,-40.2676,-0.00143909],210,true,true],
["Land_LampShabby_F",[40.4146,-21.3286,-0.00143909],326.67,true,true],
["Land_BagFence_Round_F",[34.9688,-45.8774,-0.00143909],315,true,true],
["Land_BagFence_Round_F",[32.8423,-45.8774,-0.00143909],45,true,true],
["Land_BagFence_Long_F",[35.7183,-43.7524,-0.00143909],90,true,true],
["Land_CncBarrier_F",[29.725,-35.5542,-0.00143909],270,true,true],
["Land_CncWall4_F",[41.7274,-38.6753,-0.00143909],0,true,true],
["Land_CncWall4_F",[43.9774,-36.4253,-0.00143909],270,true,true],
["Land_CncWall1_F",[38.4774,-38.4253,-0.00143909],15,true,true],
["Land_CncWall1_F",[37.2401,-37.894,-0.00143909],30,true,true],
["Land_CncWall1_F",[43.7274,-33.1753,-0.00143909],255,true,true],
["Land_BagFence_End_F",[34.4688,-41.8774,-0.00143909],210,true,true],
["Land_BagFence_End_F",[31.9678,-42.8774,-0.00143909],240,true,true],
["Land_New_WiredFence_10m_F",[44.515,-24.8999,-0.00143909],270,true,true],
["Land_New_WiredFence_10m_F",[34.7274,-39.1753,-0.00143909],0,true,true],
["Land_New_WiredFence_10m_F",[44.515,-34.6499,-0.00143909],270,true,true],
["Land_BagFence_Corner_F",[35.3433,-42.3774,-0.00143909],0,true,true],
["Land_New_WiredFence_5m_F",[42.2655,-39.1499,-0.00143909],0,true,true],
["Land_BagFence_Short_F",[32.2178,-44.0024,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[39.1169,-22.2583,-0.00143909],180,true,true],
["Land_Mil_WallBig_4m_F",[31.9081,-20.9619,-0.00143909],180,true,true],
["Land_Mil_WallBig_4m_F",[41.4412,-20.3794,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[27.9435,-20.9658,-0.00143909],180,true,true],
["Land_Cargo_HQ_V1_F",[33.7463,-12.4639,-0.00143862],271.492,true,true],
["Land_New_WiredFence_10m_F",[44.4774,-4.92529,-0.00143909],270,true,true],
["Land_New_WiredFence_10m_F",[44.4774,-14.9253,-0.00143909],270,true,true],
["Land_New_WiredFence_10m_F",[34.9774,-0.175293,-0.00143909],180,true,true],
["Land_New_WiredFence_5m_F",[42.4774,-0.175293,-0.00143909],180,true,true],
["Land_Mil_WallBig_4m_F",[31.3369,-2.34375,-0.00143909],0,true,true],
["Land_Mil_WallBig_4m_F",[41.4467,-8.47168,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[41.4458,-12.4146,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[41.4386,-16.4019,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[35.2737,-2.33789,-0.00143909],0,true,true],
["Land_Mil_WallBig_4m_F",[41.4539,-4.48438,-0.00143909],90,true,true],
["Land_Mil_WallBig_4m_F",[39.1295,-2.32617,-0.00143909],0,true,true],
["Land_Mil_WallBig_4m_F",[27.3386,-2.35352,-0.00143909],0,true,true]
];
_missionLootBoxes = []; // Parameters are "Box Item Code", array defining the loot to be spawned, and position.
_missionLootVehicles = []; // Parameters are "Box Item Code", array defining the loot to be spawned, and position.
_missionPatrolVehicles = [
// ["B_G_Offroad_01_armed_F",[21.4174,19.0781,0.00804281],90.3115],
//["B_G_Offroad_01_armed_F",[27.5131,-53.1431,0.00819397],268.528]
];
_submarinePatrolParameters = [];
_airPatrols = [];
_missionEmplacedWeapons = [
["B_HMG_01_high_F",[16.2078,-44.0503,-0.0135579],181.165],
["B_HMG_01_high_F",[-3.70496,-32.2124,-0.0135565],270.389],
["B_HMG_01_high_F",[19.3164,-15.3716,-0.0135574],225.183],
["B_HMG_01_high_F",[33.6516,-44.6699,-0.0135579],181.165]
];
_missionGroups = [
[[14.1273,-35.917,0],3,6,"Green",30,45],
[[22.5463,-29.3013,0],3,6,"Green",30,45],
[[16.6399,3.69727,0],3,6,"Green",30,45],
[[10.8357,-1.10449,0],3,6,"Green",30,45],
[[8.39612,-12.7705,0],3,6,"Green",30,45],
[[21.4102,-9.12207,0],3,6,"Green",30,45],
[[39.7784,-27.1958,0],3,6,"Green",30,45]
];
_scubaGroupParameters = [];
// Change _useMines to true/false below to enable mission-specific settings.
_useMines = blck_useMines;
_minNoAI = blck_MinAI_Green;
_maxNoAI = blck_MaxAI_Green;
_noAIGroups = blck_AIGrps_Green;
_noVehiclePatrols = blck_SpawnVeh_Green;
_noEmplacedWeapons = blck_SpawnEmplaced_Green;
_uniforms = blck_SkinList;
_headgear = blck_headgear;
_chanceLoot = 0.6;
private _lootIndex = selectRandom[1,2,3,4];
private _paralootChoices = [blck_contructionLoot,blck_contructionLoot,blck_highPoweredLoot,blck_supportLoot];
private _paralootCountsChoices = [[0,0,0,8,8,0],[0,0,0,8,8,0],[8,8,0,0,0,0],[0,0,0,0,12,0]];
_paraLoot = _paralootChoices select _lootIndex;
_paraLootCounts = _paralootCountsChoices select _lootIndex; // Throw in something more exotic than found at a normal blue mission.
//_endCondition = "allKilledOrPlayerNear"; // Options are "allUnitsKilled", "playerNear", "allKilledOrPlayerNear"
//_timeOut = -1;
#include "\q\addons\custom_server\Compiles\Missions\GMS_fnc_missionSpawner.sqf";

View File

@ -0,0 +1,110 @@
/*
Mission Template by Ghostrider [GRG]
Mission Compositions by Bill prepared for ghostridergaming
Copyright 2016
Last modified 3/20/17
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
#include "\q\addons\custom_server\Missions\privateVars.sqf";
//diag_log "[blckeagls] Spawning Green Mission with template = default";
_crateLoot = blck_BoxLoot_Green;
_lootCounts = blck_lootCountsOrange;
_startMsg = "An munitions research center was sighted in a nearby sector! Check the Green marker on your map for the location!";
_endMsg = "The Sector at the Green Marker is under survivor control!";
_markerLabel = "";
_markerType = ["ellipse",[225,225],"GRID"];
_markerColor = "ColorGreen";
_markerMissionName = "Munitions";
_missionLandscapeMode = "precise"; // acceptable values are "none","random","precise"
_missionLandscape = [
["Flag_AltisColonial_F",[3,3,0],0,[false,false]],
["Land_Research_HQ_F",[-40.4258,-57.4492,-7.15256e-007],0,[true,false]],
["Land_Research_HQ_F",[79.9063,68.1406,2.38419e-007],0,[true,false]],
["Land_Research_house_V1_F",[-27.6895,70.9883,0],0,[true,false]],
["Land_Research_house_V1_F",[-110.166,14.3926,0],0,[true,false]],
["Land_Research_house_V1_F",[54.5078,-70.8457,0],0,[true,false]],
["Land_Cargo_Patrol_V1_F",[111.865,11.9375,9.53674e-007],0,[true,false]],
["Land_Cargo_HQ_V2_F",[-115.473,-44.5977,-4.76837e-007],0,[true,false]],
["Land_SharpRock_apart",[-59.6836,-59.5996,-4.76837e-007],0,[false,false]],
["Land_W_sharpRock_apart",[-81.6973,-42.4082,-4.76837e-007],0,[false,false]],
["Land_SharpRock_apart",[-96.2168,-5.32031,4.76837e-007],0,[false,false]],
["Land_Limestone_01_apart_F",[-79.2305,43.4219,0],0,[false,false]],
["Land_Limestone_01_apart_F",[-50.2344,82.4746,0],0,[false,false]],
["Land_BluntRock_apart",[3.88281,-71.5488,-2.38419e-007],0,[false,false]],
["Land_Limestone_01_apart_F",[35.8926,-77.5918,0],0,[false,false]],
["Land_Limestone_01_apart_F",[78.541,-52.3926,-4.76837e-007],0,[false,false]],
["Land_Limestone_01_apart_F",[103.91,-6.88867,0],0,[false,false]],
["Land_BluntRock_apart",[-11.5586,93.9688,-2.38419e-007],0,[false,false]],
["Land_W_sharpStone_02",[54.7344,96.7012,0],0,[false,false]],
["Land_BluntRock_apart",[77.4453,88.8301,-2.38419e-007],0,[false,false]],
["Land_SharpRock_apart",[104.758,45.668,0],0,[false,false]],
["Land_Limestone_01_02_F",[99.5117,23.752,-4.76837e-007],0,[false,false]],
["Land_Limestone_01_02_F",[49.8477,50.0039,0],0,[false,false]],
["Land_Limestone_01_02_F",[-8.14844,32.2227,4.76837e-007],0,[false,false]],
["Land_Limestone_01_02_F",[-35.334,35.1465,-2.38419e-007],0,[false,false]],
["Land_SharpStone_02",[-28.6523,1.33398,4.76837e-007],0,[false,false]],
["Land_SharpStone_02",[-58.707,-7.46094,-4.76837e-007],0,[false,false]],
["Land_Limestone_01_02_F",[64.5078,31.9707,0],0,[false,false]],
["Land_Limestone_01_02_F",[33.7246,11.5469,0],0,[false,false]],
["Land_SharpStone_02",[69.4277,-3.20313,0],0,[false,false]],
["Land_SharpStone_02",[53.7227,-40.1777,-2.38419e-007],0,[false,false]],
["Land_Limestone_01_02_F",[-6.26563,-46.0996,-4.76837e-007],0,[false,false]]
]; // list of objects to spawn as landscape
_missionLootBoxes = []; // Parameters are "Box Item Code", array defining the loot to be spawned, and position.
_missionLootVehicles = []; // Parameters are "Box Item Code", array defining the loot to be spawned, and position.
_missionEmplacedWeapons =
[
/*["B_HMG_01_high_F",[31.7266,-34.6699,-4.76837e-007],0,[true,false]],
["B_HMG_01_high_F",[-24.5781,-33.8281,-3.1268],0,[true,false]],
["B_G_Mortar_01_F",[73.1836,62.9492,-3.1265],0,[true,false]]
*/
["B_HMG_01_high_F",[47.1777,73.5469,-3.12644],0,[true,false]],
["B_GMG_01_high_F",[-32.8926,-35.8047,-3.1268],0,[true,false]],
["B_G_Mortar_01_F",[33.1582,-34.8867,-4.76837e-007],0,[true,false]]
]; // can be used to define the precise placement of static weapons [[1,2,3] /*loc 1*/, [2,3,4] /*loc 2*/]; if blank random locations will be used
_missionGroups =
[
//_x params["_position","_minAI","_maxAI","_skillLevel","_minPatrolRadius","_maxPatrolRadius"];
[[-52.6523,15.8281,-0.00143838],5,6,"Green",8,15],
[[-48.6113,-38.877,-0.00143886],5,6,"Green",8,15],
[[18.4492,-39.5684,-0.00143838],5,6,"Green",8,15],
[[42.6504,31.6621,-0.00143886],5,6,"Green",8,15],
[[7.51563,46.4531,-0.001438864],5,6,"Green",8,15],
[[-8.99219,-11.623,-0.00143838],5,6,"Green",8,15]
]; // Can be used to define spawn positions of AI patrols
_missionPatrolVehicles = [
[selectRandom blck_AIPatrolVehiclesGreen,[27.8945,100.275,0],0,[true,false]],
[selectRandom blck_AIPatrolVehiclesGreen,[-84.7793,72.2617,9.53674e-007],0,[true,false]],
[selectRandom blck_AIPatrolVehiclesGreen,[-87.8457,-109.947,7.15256e-007],0,[true,false]]
]; // can be used to define the spawn positions of vehicle patrols
// Change _useMines to true/false below to enable mission-specific settings.
_useMines = blck_useMines;
_minNoAI = blck_MinAI_Green;
_maxNoAI = blck_MaxAI_Green;
_noAIGroups = blck_AIGrps_Green;
_noVehiclePatrols = blck_SpawnVeh_Green;
_noEmplacedWeapons = blck_SpawnEmplaced_Green;
_uniforms = blck_SkinList;
_headgear = blck_headgear;
_chancePara = 2;
_chanceLoot = 2; //0.6;
private _lootIndex = selectRandom[1,2,3,4];
private _paralootChoices = [blck_contructionLoot,blck_contructionLoot,blck_highPoweredLoot,blck_supportLoot];
private _paralootCountsChoices = [[0,0,0,8,8,0],[0,0,0,8,8,0],[8,8,0,0,0,0],[0,0,0,0,12,0]];
_paraLoot = _paralootChoices select _lootIndex;
_paraLootCounts = _paralootCountsChoices select _lootIndex; // Throw in something more exotic than found at a normal blue mission.
//_endCondition = "allKilledOrPlayerNear"; // Options are "allUnitsKilled", "playerNear", "allKilledOrPlayerNear"
//_timeOut = -1;
#include "\q\addons\custom_server\Compiles\Missions\GMS_fnc_missionSpawner.sqf";

View File

@ -0,0 +1,147 @@
/*
Mission Template by Ghostrider [GRG]
Mission Compositions by Thomas TKO
Copyright 2016
Last modified 3/20/17
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
#include "\q\addons\custom_server\Missions\privateVars.sqf";
diag_log "[blckeagls] Spawning Orange Mission with template = bunkerMission";
_crateLoot = blck_BoxLoot_Orange;
_lootCounts = [15,50,20,60,44,5]; // blck_lootCountsOrange = [8,32,8,30,16,1];
_startMsg = "A Mafia General is building a heavily defended bunker. Stop him and claim a reward!";
_endMsg = "The Mafia General has been defeated!";
_markerLabel = "";
_markerType = ["ellipse",[300,300],"GRID"];
_markerColor = "ColorBlack";
_markerMissionName = " Bunker";
_missionLandscapeMode = "precise"; // acceptable values are "none","random","precise"
_garrisonedBuildings_BuildingPosnSystem = [];
_garrisonedBuilding_ATLsystem = [
["Land_Bunker_01_big_F",[-19.0896,9.22754,0.760561],90.071,true,true,[["O_HMG_01_high_F",[-1.09302,-0.0102539,3.2837],0.00152979],["O_HMG_01_high_F",[-5.45947,-3.38574,0.109706],359.994],["O_HMG_01_high_F",[-0.41333,-10.5659,-0.774119],360],["O_HMG_01_high_F",[-0.826416,11.6274,-0.774119],0.00143682],["O_HMG_01_high_F",[11.355,-8.68066,-0.774117],0.000274398]],[]],
["Land_Bunker_01_tall_F",[-18.5415,-8.59961,-0.00143909],90.071,true,true,[["O_HMG_01_high_F",[5.50562,-2.54395,-0.0121188],359.999],["O_HMG_01_high_F",[-1.72095,-0.109375,4.96893],359.998],["O_HMG_01_high_F",[11.7644,-6.72168,-0.0121179],0.000580947]],[]],
["Land_Bunker_01_tall_F",[-18.9246,28.8105,-0.00143909],90.071,true,true,[["O_HMG_01_high_F",[5.47437,2.47559,-0.0121174],0.000287307],["O_HMG_01_high_F",[-1.38867,-0.0722656,4.967],359.999],["O_HMG_01_high_F",[10.5693,2.00635,-0.0121202],0.00145235],["O_HMG_01_high_F",[11.8271,5.87988,-0.0121174],0.000287344]],[]],
["Land_Bunker_01_big_F",[17.0344,10.9336,0.760561],270.416,true,true,[["O_HMG_01_high_F",[0.966064,0.202148,3.2837],0.000261147],["O_HMG_01_high_F",[5.86353,3.25586,0.109696],0.000366296],["O_HMG_01_high_F",[-0.366211,10.3037,-0.774117],0.000287276],["O_HMG_01_high_F",[0.436768,-11.6377,-0.774117],0.000287533],["O_HMG_01_high_F",[-11.8674,-9.59229,-0.774119],359.999]],[]],
["Land_Bunker_01_tall_F",[16.7253,-8.66455,-0.00143909],270.416,true,true,[["O_HMG_01_high_F",[-5.13818,-2.33496,-0.0121202],0.00145227],["O_HMG_01_high_F",[1.45801,0.0512695,4.96698],360],["O_HMG_01_high_F",[-10.4924,-6.61719,-0.0121179],0.000581377]],[]],
["Land_Bunker_01_tall_F",[16.5664,28.7466,-0.00143909],270.416,true,true,[["O_HMG_01_high_F",[-5.00977,2.1792,-0.0121174],0.000287538],["O_HMG_01_high_F",[1.80957,0.26709,4.96756],0.000969946],["O_HMG_01_high_F",[-10.7739,2.07715,-0.0121174],0.000287469],["O_HMG_01_high_F",[-12.0127,6.1333,-0.0121188],360]],[]]
];
_missionLandscape = [
["Sign_Arrow_F",[-3166.38,-5166.64,-0.00143909],0,true,true],
["Sign_Arrow_Green_F",[-3166.38,-5166.64,-0.00143909],0,true,true],
["Sign_Arrow_Yellow_F",[-3166.38,-5166.64,-0.00143909],0,true,true],
["babe_helper",[-3168.88,-5166.14,-0.00143909],87.9418,true,true],
["Land_Bunker_01_blocks_3_F",[-16.9785,-4.23682,-0.00143909],270.35,true,true],
["Land_Bunker_01_blocks_3_F",[-8.35254,-12.7046,-0.00143909],179.955,true,true],
["Land_Bunker_01_blocks_3_F",[-3.26245,-12.6987,-0.00143909],179.955,true,true],
["Land_Bunker_01_blocks_3_F",[-13.3396,-12.7207,-0.502439],179.955,true,true],
["Land_Bunker_01_blocks_3_F",[-16.9604,0.749512,-0.00143909],270.35,true,true],
["Land_Bunker_01_blocks_3_F",[-16.9265,17.7563,-0.00143909],270.35,true,true],
["CamoNet_INDP_big_F",[-0.926514,-2.50049,-0.00143909],182.545,true,true],
["Land_Bunker_01_blocks_3_F",[-8.79468,32.8765,-0.00143909],0.106,true,true],
["Land_Bunker_01_blocks_3_F",[-13.7825,32.8735,-0.432439],0.106,true,true],
["Land_Bunker_01_blocks_3_F",[-5.68066,30.3096,-0.00143909],90.192,true,true],
["Land_Bunker_01_blocks_3_F",[-16.9097,22.7437,-0.00143909],270.35,true,true],
["Land_Bunker_01_blocks_3_F",[1.72437,-12.6807,-0.00143909],179.955,true,true],
["Land_Bunker_01_blocks_3_F",[14.7463,-2.58447,-0.00143909],90.695,true,true],
["Land_Bunker_01_blocks_3_F",[6.82544,-12.6665,-0.00143909],179.955,true,true],
["Land_Bunker_01_blocks_3_F",[14.7935,2.40039,-0.00143909],90.695,true,true],
["Land_Bunker_01_blocks_3_F",[11.8125,-12.6494,-0.529439],179.955,true,true],
["Land_Bunker_01_blocks_3_F",[3.42236,30.3735,-0.00143909],269.774,true,true],
["Land_Bunker_01_blocks_3_F",[14.9304,19.4072,-0.00143909],90.695,true,true],
["Land_Bunker_01_blocks_3_F",[6.38452,32.8735,-0.00143909],0.106,true,true],
["Land_Bunker_01_blocks_3_F",[14.9763,24.3936,-0.00143909],90.695,true,true],
["Land_Bunker_01_blocks_3_F",[11.3713,32.8774,-0.363439],0.106,true,true]
];
_missionLootBoxes = [
["B_supplyCrate_F",[0.0446777,-1.31494,-0.001441],_crateLoot,_lootCounts,0.00167282]
];
_missionLootVehicles = [
];
_missionPatrolVehicles = [
// ["O_LSV_02_armed_F",[-40.6245,8.75732,-0.0378561],359.999],
// ["O_LSV_02_unarmed_F",[35.2053,8.41943,-0.0378113],359.999]
];
_submarinePatrolParameters = [
];
_airPatrols = [
];
_missionEmplacedWeapons = [
["O_HMG_01_high_F",[-6.7771,-15.3213,-0.013557],0.000580947],
["O_HMG_01_high_F",[-7.73462,0.546875,-0.0135565],0.000274398],
["O_HMG_01_high_F",[-19.5029,-1.33838,-0.0135579],360],
["O_HMG_01_high_F",[-4.04785,-6.94092,-0.0135589],0.00145283],
["O_HMG_01_high_F",[-13.0359,-11.1436,-0.0135579],359.999],
["O_HMG_01_high_F",[-8.35522,30.8169,-0.0135593],0.00145235],
["O_HMG_01_high_F",[-7.09741,34.6904,-0.0135565],0.000287344],
["O_HMG_01_high_F",[-13.4502,31.2861,-0.0135565],0.000287307],
["O_HMG_01_high_F",[-19.916,20.855,-0.0135579],0.00143682],
["O_HMG_01_high_F",[6.23291,-15.2817,-0.013557],0.000581377],
["O_HMG_01_high_F",[5.16699,1.34131,-0.0135579],359.999],
["O_HMG_01_high_F",[11.5872,-10.9995,-0.0135593],0.00145227],
["O_HMG_01_high_F",[17.4712,-0.704102,-0.0135565],0.000287533],
["O_HMG_01_high_F",[2.62817,-6.73193,-0.0135579],359.999],
["O_HMG_01_high_F",[4.55371,34.8799,-0.0135579],360],
["O_HMG_01_high_F",[11.5566,30.9258,-0.0135565],0.000287538],
["O_HMG_01_high_F",[16.6682,21.2373,-0.0135565],0.000287276],
["O_HMG_01_high_F",[5.79248,30.8237,-0.0135565],0.000287469]
];
_missionGroups = [
[[-7.90332,-2.77295,0],3,6,"Orange",30,45],
[[-0.937012,12.8022,0],3,6,"Orange",30,45],
[[-9.20801,24.0776,0],3,6,"Orange",30,45],
[[8.76147,-1.29004,0],3,6,"Orange",30,45],
[[-0.792725,7.7959,0],3,6,"Orange",30,45],
[[-0.269531,30.3203,0],3,6,"Orange",30,45],
[[8.71509,21.3311,0],3,6,"Orange",30,45]
];
_scubaGroupParameters = [
];
// Change _useMines to true/false below to enable mission-specific settings.
_useMines = blck_useMines;
_minNoAI = blck_MinAI_Orange;
_maxNoAI = blck_MaxAI_Orange;
_noAIGroups = blck_AIGrps_Orange;
_noVehiclePatrols = blck_SpawnVeh_Orange;
_noEmplacedWeapons = blck_SpawnEmplaced_Orange;
_uniforms = blck_SkinList;
_headgear = blck_headgear;
_chanceHeliPatrol = blck_chanceHeliPatrolBlue; // Setting this in the mission file overrides the defaults
_noChoppers = blck_noPatrolHelisOrange;
_missionHelis = blck_patrolHelisOrange;
_chancePara = 0.75; // Setting this in the mission file overrides the defaults
_noPara = 5; // Setting this in the mission file overrides the defaults
_paraTriggerDistance = 400; // Distance from mission at which a player triggers these reinforcements and any supplemental loot. // To have paras spawn at the time the mission spawns with/without accompanying loot set this to 0.
_paraSkill = "orange"; // Choose any skill you like; bump up skill or add AI to justify more valuable loot.
_chanceLoot = 0.7;
private _lootIndex = selectRandom[1,2,3,4];
private _paralootChoices = [blck_contructionLoot,blck_contructionLoot,blck_highPoweredLoot,blck_supportLoot];
private _paralootCountsChoices = [[0,0,0,25,25,0],[0,0,0,25,25,0],[20,30,0,0,0,0],[0,0,0,0,30,0]];
_paraLoot = _paralootChoices select _lootIndex;
_paraLootCounts = _paralootCountsChoices select _lootIndex; // Throw in something more exotic than found at a normal blue mission.
diag_log format["[blckeagls] Bunker Mission Parameters Loaded at %1",diag_tickTime];

View File

@ -0,0 +1,248 @@
/*
Mission Template by Ghostrider [GRG]
Mission Compositions by Thomas TKO
Copyright 2016
Last modified 3/20/17
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
#include "\q\addons\custom_server\Missions\privateVars.sqf";
//diag_log "[blckeagls] Spawning Orange Mission with template = default";
_crateLoot = blck_BoxLoot_Orange;
_lootCounts = blck_lootCountsOrange;
_startMsg = "An enemy Operations Base was sighted in a nearby sector! Check the Orange marker on your map for the location!";
_endMsg = "The Operations Base at the Orange Marker is under survivor control!";
_markerLabel = "";
_markerType = ["ELLIPSE",[300,300],"Solid"];
_markerColor = "ColorOrange";
_markerMissionName = "Operations Base";
_missionLandscapeMode = "precise"; // acceptable values are "none","random","precise"
//////////
// Past the output of the script here
_garrisonedBuildings_BuildingPosnSystem = [
];
_garrisonedBuilding_ATLsystem = [
["Land_Cargo_HQ_V1_F",[-0.358154,-18.6514,-0.00143862],179.905,true,true,[["B_HMG_01_high_F",[-6.5437,1.09253,3.11855],145.121],["B_HMG_01_high_F",[-13.9094,-10.7791,-0.0121183],206.716]],[]]
];
_missionLandscape = [
["Land_PortableLight_double_F",[-42.614,-26.0178,-0.00143909],225.577,true,true],
["Land_CncWall4_F",[-45.3523,-21.509,-0.00143909],89.9051,true,true],
["Land_CncWall4_F",[-33.5913,-28.1145,-0.00143909],359.905,true,true],
["Land_CncWall4_F",[-38.842,-28.124,-0.00143909],359.905,true,true],
["Land_CncWall1_F",[-44.093,-26.7578,-0.00143909],44.9051,true,true],
["Land_CncWall1_F",[-43.0923,-27.5063,-0.00143909],29.9051,true,true],
["Land_CncWall1_F",[-45.2207,-24.6689,-0.00143909],74.9051,true,true],
["Land_CncWall1_F",[-44.845,-25.7581,-0.00143909],59.9051,true,true],
["Land_CncWall1_F",[-41.9668,-28.0046,-0.00143909],14.9051,true,true],
["Land_BagBunker_01_large_green_F",[-49.7271,-16.9226,-0.00143909],90.2555,true,true],
["Land_Cargo_Tower_V1_F",[-36.3582,-19.3394,-0.00143909],89.905,true,true],
["Land_CncWall4_F",[-33.4968,-9.73975,-0.00143909],179.905,true,true],
["Land_CncWall4_F",[-45.3792,-5.75879,-0.00143909],89.9051,true,true],
["Land_CncWall4_F",[-45.3867,-0.508789,-0.00143909],89.9051,true,true],
["Land_CncWall4_F",[-45.3694,-11.0095,-0.00143909],89.9051,true,true],
["Land_CncWall4_F",[-45.3955,4.74121,-0.00143909],89.9051,true,true],
["Land_CncWall4_F",[-45.4041,9.99072,-0.00143909],89.9051,true,true],
["Land_CncWall1_F",[-32.0076,1.70923,-0.00143909],74.9051,true,true],
["Land_CncWall1_F",[-31.6313,0.61792,-0.00143909],59.9051,true,true],
["Land_BagBunker_01_large_green_F",[-49.7959,14.4089,-0.00143909],90.2555,true,true],
["Land_Cargo_HQ_V1_F",[-34.4014,20.1455,-0.00143862],269.491,true,true],
["Land_CncWall4_F",[-45.4214,20.4915,-0.00143909],89.9051,true,true],
["Land_CncWall4_F",[-45.4302,25.7415,-0.00143909],89.9051,true,true],
["Land_CncWall4_F",[-38.8159,32.2512,-0.00143909],179.905,true,true],
["Land_CncWall4_F",[-33.5662,32.2607,-0.00143909],179.905,true,true],
["Land_CncWall1_F",[-43.0654,31.7451,-0.00143909],149.905,true,true],
["Land_CncWall1_F",[-41.9753,32.1199,-0.00143909],164.905,true,true],
["Land_CncWall1_F",[-44.0635,30.9924,-0.00143909],134.905,true,true],
["Land_CncWall1_F",[-44.8127,29.991,-0.00143909],119.905,true,true],
["Land_CncWall1_F",[-45.3108,28.8672,-0.00143909],104.905,true,true],
["Land_BagFence_Round_F",[-15.3367,-30.4338,-0.00143909],44.9051,true,true],
["Land_BagFence_Round_F",[-25.8376,-30.2017,-0.00143909],314.905,true,true],
["Land_PortableLight_double_F",[-2.30811,-29.9211,-0.00143909],44.7366,true,true],
["Land_CncWall4_F",[-2.09229,-28.0632,-0.00143909],359.905,true,true],
["Land_CncWall4_F",[-26.9856,-16.3538,-0.00143909],269.905,true,true],
["Land_CncWall4_F",[-13.8528,-21.4565,-0.00143909],89.9051,true,true],
["Land_CncWall4_F",[-26.9783,-21.6038,-0.00143909],269.905,true,true],
["Land_CncWall4_F",[-7.34155,-28.0718,-0.00143909],359.905,true,true],
["Land_CncWall4_F",[-13.8606,-16.2065,-0.00143909],89.9051,true,true],
["Land_CncWall1_F",[-13.3455,-25.7068,-0.00143909],59.9051,true,true],
["Land_CncWall1_F",[-12.593,-26.7058,-0.00143909],44.9051,true,true],
["Land_CncWall1_F",[-27.5952,-25.8552,-0.00143909],299.905,true,true],
["Land_CncWall1_F",[-27.0967,-24.7288,-0.00143909],284.905,true,true],
["Land_CncWall1_F",[-13.7209,-24.6165,-0.00143909],74.9051,true,true],
["Land_CncWall1_F",[-10.4666,-27.9514,-0.00143909],14.9051,true,true],
["Land_CncWall1_F",[-29.3428,-27.6084,-0.00143909],329.905,true,true],
["Land_CncWall1_F",[-30.4331,-27.9832,-0.00143909],344.905,true,true],
["Land_CncWall1_F",[-11.592,-27.4541,-0.00143909],29.9051,true,true],
["Land_CncWall1_F",[-28.3438,-26.855,-0.00143909],314.905,true,true],
["Land_BagFence_Long_F",[-25.2168,-27.7002,-0.00143909],269.905,true,true],
["Land_BagFence_Long_F",[-15.9658,-27.9348,-0.00143909],269.905,true,true],
["Land_BagFence_Long_F",[-12.8359,-31.0559,-0.00143909],359.905,true,true],
["Land_BagFence_Long_F",[-28.3364,-30.8318,-0.00143909],179.905,true,true],
["Land_BagFence_Round_F",[-7.19092,10.5073,-0.00143909],44.9051,true,true],
["Land_PortableLight_double_F",[-11.7207,0.158936,-0.00143909],135.598,true,true],
["Land_PortableLight_double_F",[-29.4041,0.418701,-0.00143909],218.658,true,true],
["Land_CncWall4_F",[-7.24731,-9.69678,-0.00143909],179.905,true,true],
["Land_CncWall4_F",[-20.376,-1.73682,-0.00143909],359.905,true,true],
["Land_CncWall4_F",[-25.6274,-1.74609,-0.00143909],359.905,true,true],
["Land_CncWall4_F",[-15.1272,-1.72925,-0.00143909],359.905,true,true],
["Land_CncWall1_F",[-10.4058,-9.82935,-0.00143909],164.905,true,true],
["Land_CncWall1_F",[-10.8779,-1.22144,-0.00143909],329.905,true,true],
["Land_CncWall1_F",[-9.13086,0.531982,-0.00143909],299.905,true,true],
["Land_CncWall1_F",[-11.4956,-10.2031,-0.00143909],149.905,true,true],
["Land_CncWall1_F",[-8.63257,1.65747,-0.00143909],284.905,true,true],
["Land_CncWall1_F",[-11.9688,-1.59668,-0.00143909],344.905,true,true],
["Land_CncWall1_F",[-27.4932,-12.1047,-0.00143909],239.905,true,true],
["Land_CncWall1_F",[-12.4951,-10.9553,-0.00143909],134.905,true,true],
["Land_CncWall1_F",[-13.2424,-11.9563,-0.00143909],119.905,true,true],
["Land_CncWall1_F",[-29.8777,-1.12744,-0.00143909],29.9051,true,true],
["Land_CncWall1_F",[-9.87939,-0.470703,-0.00143909],314.905,true,true],
["Land_CncWall1_F",[-30.3708,-9.86011,-0.00143909],194.905,true,true],
["Land_CncWall1_F",[-30.8787,-0.378906,-0.00143909],44.9051,true,true],
["Land_CncWall1_F",[-29.2468,-10.3582,-0.00143909],209.905,true,true],
["Land_CncWall1_F",[-13.7417,-13.0818,-0.00143909],104.905,true,true],
["Land_CncWall1_F",[-28.2449,-11.1069,-0.00143909],224.905,true,true],
["Land_CncWall1_F",[-27.1179,-13.1948,-0.00143909],254.905,true,true],
["Land_CncWall1_F",[-28.7524,-1.62573,-0.00143909],14.9051,true,true],
["Land_BagFence_Long_F",[-7.8208,13.0066,-0.00143909],269.905,true,true],
["Land_BagFence_Long_F",[-4.69067,9.88257,-0.00143909],359.905,true,true],
["Land_Cargo_Patrol_V1_F",[-19.8857,1.92358,-0.00143862],359.905,true,true],
["Land_Cargo_HQ_V1_F",[-17.6404,20.1672,-0.00143862],269.491,true,true],
["Land_HelipadSquare_F",[0.169189,17.6489,-0.00143909],359.936,true,true],
["Land_BagFence_Round_F",[-7.21484,25.1335,-0.00143909],134.905,true,true],
["Land_BagFence_Round_F",[-8.354,36.8232,-0.00143909],134.905,true,true],
["Land_CncWall4_F",[-23.0659,32.2773,-0.00143909],179.905,true,true],
["Land_CncWall4_F",[-12.615,32.3005,-0.00143909],179.905,true,true],
["Land_CncWall4_F",[-17.8164,32.2856,-0.00143909],179.905,true,true],
["Land_CncWall4_F",[-7.396,32.3115,-0.00143909],179.905,true,true],
["Land_CncWall4_F",[-2.25146,35.2305,-0.00143909],179.977,true,true],
["Land_CncWall4_F",[-28.3167,32.269,-0.00143909],179.905,true,true],
["Land_CncWall1_F",[-4.03638,32.6663,-0.00143909],149.461,true,true],
["Land_BagFence_Long_F",[-4.71533,25.7625,-0.00143909],359.905,true,true],
["Land_BagFence_Long_F",[-5.85449,37.4521,-0.00143909],359.905,true,true],
["Land_BagFence_Long_F",[-7.83618,22.6321,-0.00143909],89.9051,true,true],
["Land_BagFence_Long_F",[-8.97534,34.3218,-0.00143909],89.9051,true,true],
["Land_PortableLight_double_F",[12.1106,-26.1833,-0.00143909],149.905,true,true],
["Land_CncWall4_F",[15.0215,-21.5349,-0.00143909],269.905,true,true],
["Land_CncWall4_F",[8.38428,-28.1101,-0.00143909],359.905,true,true],
["Land_CncWall4_F",[15.0137,-16.2847,-0.00143909],269.905,true,true],
["Land_CncWall1_F",[14.9031,-24.6597,-0.00143909],284.905,true,true],
["Land_CncWall1_F",[12.6567,-27.5383,-0.00143909],329.905,true,true],
["Land_CncWall1_F",[11.5676,-27.9133,-0.00143909],344.905,true,true],
["Land_CncWall1_F",[14.4038,-25.7854,-0.00143909],299.905,true,true],
["Land_CncWall1_F",[13.656,-26.7861,-0.00143909],314.905,true,true],
["Land_BagFence_Long_F",[12.5037,-23.1807,-0.00143909],89.3707,true,true],
["Land_BagFence_Long_F",[11.072,-24.5706,-0.00143909],359.905,true,true],
["Land_BagFence_Long_F",[10.9707,-21.8315,-0.00143909],179.371,true,true],
["Land_BagFence_Long_F",[9.56812,-23.1921,-0.00143909],269.905,true,true],
["Land_BagBunker_01_large_green_F",[3.83936,-32.5405,-0.00143909],0,true,true],
["Land_TTowerSmall_2_F",[11.5024,-23.7861,-0.00143909],179.905,true,true],
["Land_Cargo_House_V1_F",[9.00171,-10.2603,-0.00143909],89.905,true,true],
["Land_Cargo_House_V1_F",[8.98071,2.86475,-0.00143909],89.905,true,true],
["Land_Medevac_house_V1_F",[8.99219,-3.76099,-0.00143909],90.3921,true,true],
["Land_BagFence_Round_F",[8.05933,10.2788,-0.00143909],314.905,true,true],
["Land_PortableLight_double_F",[12.8176,7.44629,-0.00143909],134.905,true,true],
["Land_CncWall4_F",[14.9788,4.71558,-0.00143909],269.905,true,true],
["Land_CncWall4_F",[15.0054,-11.0347,-0.00143909],269.905,true,true],
["Land_CncWall4_F",[14.9961,-5.78418,-0.00143909],269.905,true,true],
["Land_CncWall4_F",[14.9878,-0.533936,-0.00143909],269.905,true,true],
["Land_CncWall4_F",[14.9705,9.96558,-0.00143909],269.905,true,true],
["Land_BagFence_Long_F",[8.68018,12.7852,-0.00143909],269.905,true,true],
["Land_BagFence_Long_F",[5.55933,9.6499,-0.00143909],179.905,true,true],
["Land_BagBunker_01_large_green_F",[19.272,16.1316,-0.00143909],269.832,true,true],
["Land_BagFence_Round_F",[7.91089,24.9097,-0.00143909],224.905,true,true],
["Land_BagFence_Round_F",[9.05054,36.9314,-0.00143909],224.905,true,true],
["Land_PortableLight_double_F",[11.8816,29.2671,-0.00143909],44.7366,true,true],
["Land_CncWall4_F",[14.9529,20.4653,-0.00143909],269.905,true,true],
["Land_CncWall4_F",[8.43433,32.3303,-0.00143909],179.905,true,true],
["Land_CncWall4_F",[2.95288,35.22,-0.00143909],179.977,true,true],
["Land_CncWall4_F",[14.9443,25.7156,-0.00143909],269.905,true,true],
["Land_CncWall1_F",[14.4373,29.9646,-0.00143909],239.905,true,true],
["Land_CncWall1_F",[14.813,28.8745,-0.00143909],254.905,true,true],
["Land_CncWall1_F",[13.6853,30.9644,-0.00143909],224.905,true,true],
["Land_CncWall1_F",[12.6843,31.7119,-0.00143909],209.905,true,true],
["Land_CncWall1_F",[11.5593,32.2114,-0.00143909],194.905,true,true],
["Land_CncWall1_F",[5.11841,32.7061,-0.00143909],209.905,true,true],
["Land_BagFence_Long_F",[8.54004,22.4104,-0.00143909],89.9051,true,true],
["Land_BagFence_Long_F",[9.67969,34.4321,-0.00143909],89.9051,true,true],
["Land_BagFence_Long_F",[5.40894,25.5288,-0.00143909],179.905,true,true],
["Land_BagFence_Long_F",[6.54858,37.5505,-0.00143909],179.905,true,true]
];
_missionLootBoxes = [
["B_supplyCrate_F",[0.0717773,16.9431,-0.00143814],_crateLoot,_lootCounts,0.000320471]
];
_missionLootVehicles = [
];
_missionPatrolVehicles = [
// ["O_T_LSV_02_armed_F",[-62.7971,0.422119,-0.0236669],0.00164848],
// ["O_T_LSV_02_armed_F",[31.9084,-7.18774,-0.0238085],0.00168349]
];
_submarinePatrolParameters = [
];
_airPatrols = [
];
_missionEmplacedWeapons = [
["B_HMG_01_high_F",[-27.1521,-29.2402,-0.0135579],154.874],
["B_HMG_01_high_F",[-14.2676,-29.4304,-0.013557],206.716],
["B_HMG_01_high_F",[-12.8362,1.83374,-0.0135579],25.3994],
["B_HMG_01_high_F",[-26.5833,1.45483,-0.0135574],336.99],
["B_HMG_01_high_F",[-26.2922,25.8635,-0.0135584],25.3994],
["B_HMG_01_high_F",[-5.00732,29.4277,-0.0135579],359.999],
["B_HMG_01_high_F",[-7.33691,36.0117,-0.0135584],357.806],
["B_HMG_01_high_F",[8.54346,36.1248,-0.0135579],359.962]
];
_missionGroups = [
[[-41.0581,-3.45898,0],3,6,"Red",30,45],
[[-37.6394,8.57202,0],3,6,"Red",30,45],
[[-21.9045,-23.5044,0],3,6,"Red",30,45],
[[-4.78564,-4.45728,0],3,6,"Red",30,45],
[[-12.2888,11.2847,0],3,6,"Red",30,45],
[[-19.8623,-10.6353,0],3,6,"Red",30,45],
[[4.07446,-4.8584,0],3,6,"Red",30,45]
];
//////////
// The lines below define additional variables you may wish to configure.
// Change _useMines to true/false below to enable mission-specific settings.
_useMines = blck_useMines;
_minNoAI = blck_MinAI_Orange;
_maxNoAI = blck_MaxAI_Orange;
_noAIGroups = blck_AIGrps_Orange;
_noVehiclePatrols = blck_SpawnVeh_Orange;
_noEmplacedWeapons = blck_SpawnEmplaced_Orange;
//_uniforms = blck_SkinList;
//_headgear = blck_headgear;
_chancePara = 0.75; // Setting this in the mission file overrides the defaults
_noPara = 5; // Setting this in the mission file overrides the defaults
_paraTriggerDistance = 400; // Distance from mission at which a player triggers these reinforcements and any supplemental loot. // To have paras spawn at the time the mission spawns with/without accompanying loot set this to 0.
_paraSkill = "orange"; // Choose any skill you like; bump up skill or add AI to justify more valuable loot.
_chanceLoot = 0.7;
private _lootIndex = selectRandom[1,2,3,4];
private _paralootChoices = [blck_contructionLoot,blck_contructionLoot,blck_highPoweredLoot,blck_supportLoot];
private _paralootCountsChoices = [[0,0,0,10,10,0],[0,0,0,10,10,0],[10,10,0,0,0,0],[0,0,0,0,15,0]];
_paraLoot = _paralootChoices select _lootIndex;
_paraLootCounts = _paralootCountsChoices select _lootIndex; // Throw in something more exotic than found at a normal blue mission.
//_endCondition = "playerNear"; // Options are "allUnitsKilled", "playerNear", "allKilledOrPlayerNear"
//_timeOut = -1;
#include "\q\addons\custom_server\Compiles\Missions\GMS_fnc_missionSpawner.sqf";

View File

@ -0,0 +1,201 @@
/*
Mission Template by Ghostrider [GRG]
Mission Compositions by Bill prepared for ghostridergaming
Copyright 2016
Last modified 3/20/17
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
#include "\q\addons\custom_server\Missions\privateVars.sqf";
//diag_log "[blckeagls] Spawning Orange Mission with template = default";
_crateLoot = blck_BoxLoot_Orange;
_lootCounts = blck_lootCountsOrange;
_startMsg = "An enemy Military Camp was sighted in a nearby sector! Check the Orange marker on your map for the location!";
_endMsg = "The Military Camp at the Orange Marker is under survivor control!";
_markerLabel = "";
_markerType = ["ELLIPSE",[300,300],"Solid"];
_markerColor = "ColorOrange";
_markerMissionName = "Military Camp";
_missionLandscapeMode = "precise"; // acceptable values are "none","random","precise"
//////////
// Past the output of the script here
_garrisonedBuildings_BuildingPosnSystem = [
];
_garrisonedBuilding_ATLsystem = [
["Land_Cargo_House_V3_F",[8.00928,15.6453,-0.00143909],0,true,true,[["B_HMG_01_high_F",[-8.28516,3.27148,-0.0121188],0.000433404]],[]]
];
_missionLandscape = [
//["babe_helper",[-3327.46,-2809.42,-0.00143909],0,true,true],
//["Sign_Arrow_Green_F",[-3324.96,-2809.92,-0.00143909],0,true,true],
//["Sign_Arrow_F",[-3324.96,-2809.92,-0.00143909],0,true,true],
//["Sign_Arrow_Yellow_F",[-3324.96,-2809.92,-0.00143909],0,true,true],
["Land_HBarrier_Big_F",[-2.76221,-30.3596,-0.00143909],0,true,true],
["Land_HBarrier_1_F",[-9.74463,-27.0081,-0.00143909],180,true,true],
["Land_BagFence_Long_F",[-9.74268,-29.0042,-0.00143909],270,true,true],
["Land_BagFence_Long_F",[-8.36182,-30.3743,-0.00143909],180,true,true],
["CamoNet_OPFOR_open_F",[-0.361816,-1.01782,-0.00143909],180,true,true],
["Land_HBarrier_3_F",[-15.3853,-13.9866,-0.00143909],315,true,true],
["Land_HBarrier_Big_F",[-3.61768,-5.26782,-0.00143909],180,true,true],
["Land_HBarrier_Big_F",[-5.46533,3.40405,-0.00143909],0,true,true],
["Land_HBarrier_Big_F",[-18.5767,-14.5354,-0.00143909],45,true,true],
["Land_HBarrier_Big_F",[-12.4985,-20.3987,-0.00143909],45,true,true],
["Land_HBarrier_1_F",[-22.9692,-2.77563,-0.00143909],270,true,true],
["Land_HBarrier_1_F",[-23.3423,0.478271,-0.00143909],15,true,true],
["Land_BagFence_Long_F",[-24.5767,-9.90649,-0.00143909],315,true,true],
["Land_BagFence_Long_F",[-22.8071,-8.13794,-0.00143909],315,true,true],
["Land_BagFence_Long_F",[-18.7427,-12.3811,-0.00143909],315,true,true],
["Land_BagFence_Long_F",[-23.2368,2.26245,-0.00143909],90,true,true],
["Land_BagFence_Long_F",[-21.8657,6.25952,-0.00143909],0,true,true],
["Land_BagFence_Long_F",[-22.3657,-13.8772,-0.00143909],135,true,true],
["Land_BagFence_Long_F",[-9.74268,-25.1174,-0.00143909],90,true,true],
["Land_BagFence_Long_F",[-18.5649,-8.3147,-0.00143909],45,true,true],
["Land_BagFence_Long_F",[-23.2368,4.88843,-0.00143909],90,true,true],
["Land_BagFence_Long_F",[-25.2192,0.111084,-0.00143909],0,true,true],
["Land_BagFence_Long_F",[-25.2192,-2.76587,-0.00143909],0,true,true],
["Land_BagFence_Long_F",[-26.5884,-1.39282,-0.00143909],270,true,true],
["Land_BagFence_Long_F",[-24.3989,-13.9709,-0.00143909],225,true,true],
["Land_BagFence_Round_F",[-17.5747,-10.4006,-0.00143909],270,true,true],
["Land_BagFence_Round_F",[-25.5493,-11.9026,-0.00143909],90,true,true],
["Land_BagFence_Round_F",[-20.7212,-7.07642,-0.00143909],180,true,true],
["Land_BagFence_End_F",[-9.7583,-23.3167,-0.00143909],270,true,true],
["Land_Cargo_Patrol_V3_F",[-10.9263,-16.053,-0.00143862],45,true,true],
["Land_Cargo_House_V3_F",[-3.09424,-20.7424,-0.00143909],180,true,true],
["CamoNet_OPFOR_open_F",[-0.225098,8.17163,-0.00143909],0,true,true],
["Land_HBarrier_3_F",[-1.85596,17.1208,-0.00143909],180,true,true],
["Land_HBarrier_3_F",[-2.70752,19.4275,-0.00143909],90,true,true],
["Land_HBarrier_Big_F",[-19.6177,9.36694,-0.00143909],270,true,true],
["Land_HBarrier_Big_F",[-19.6646,17.5466,-0.00143909],90,true,true],
["Land_HBarrier_1_F",[-4.93994,9.58374,-0.00143909],270,true,true],
["Land_HBarrier_1_F",[-16.4673,27.1775,-0.00143909],285,true,true],
["Land_HBarrier_1_F",[-2.68408,25.3513,-0.00143909],120,true,true],
["Land_BagFence_Long_F",[-2.30908,23.7244,-0.00143909],270,true,true],
["Land_BagFence_Long_F",[-19.7173,23.0505,-0.00143909],270,true,true],
["Land_BagFence_Long_F",[-19.7153,25.9265,-0.00143909],270,true,true],
["Land_BagFence_Long_F",[-18.3462,27.4314,-0.00143909],0,true,true],
["Land_Cargo_Patrol_V3_F",[-15.4087,10.7146,-0.00143862],90,true,true],
["Land_HBarrier_5_F",[-15.7407,14.7517,-0.00143909],0,true,true],
["Land_HBarrier_5_F",[-6.33838,7.41382,-0.00143909],270,true,true],
["Land_HBarrier_Big_F",[4.87646,-28.4124,-0.00143909],330,true,true],
["Land_HBarrier_3_F",[10.5171,0.540771,-0.00143909],0,true,true],
["Land_HBarrier_3_F",[11.3687,-7.17212,-0.00143909],270,true,true],
["Land_HBarrier_Big_F",[23.0171,-13.6155,-0.00143909],285,true,true],
["Land_HBarrier_Big_F",[3.04834,3.62964,-0.00143909],1.36604e-005,true,true],
["Land_HBarrier_Big_F",[11.8745,-23.9084,-0.00143909],330,true,true],
["Land_HBarrier_Big_F",[7.90967,0.343506,-0.00143909],90,true,true],
["Land_HBarrier_Big_F",[24.978,-5.36938,-0.00143909],285,true,true],
["Land_HBarrier_Big_F",[11.2808,-4.62427,-0.00143909],180,true,true],
["Land_HBarrier_Big_F",[25.9077,2.68921,-0.00143909],270,true,true],
["Land_HBarrier_1_F",[4.35498,-2.41431,-0.00143909],90,true,true],
["Land_HBarrier_1_F",[21.0073,-21.7493,-0.00143909],30,true,true],
["Land_BagFence_Long_F",[19.1304,-21.6174,-0.00143909],0,true,true],
["Land_BagFence_Long_F",[16.5073,-21.6174,-0.00143909],0,true,true],
["Land_BagFence_Long_F",[7.89795,6.07788,-0.00143909],270,true,true],
["Land_Loudspeakers_F",[21.2026,-15.3088,-0.00143909],196,true,true],
["Land_HBarrier_5_F",[17.7847,6.20483,-0.00143909],270,true,true],
["Land_HBarrier_5_F",[11.3823,-11.5022,-0.00143909],270,true,true],
["Land_HBarrier_5_F",[5.75146,-0.244385,-0.00143909],90,true,true],
["Land_Cargo_House_V3_F",[5.49561,-9.99927,-0.00143909],90,true,true],
["Land_Cargo_House_V3_F",[5.03076,-17.6174,-0.00143909],150,true,true],
["CamoNet_OPFOR_open_F",[22.6538,9.88257,-0.00143909],270,true,true],
["Land_HBarrier_3_F",[18.7593,9.75757,-0.00143909],0,true,true],
["Land_HBarrier_Big_F",[9.20264,21.2849,-0.00143909],180,true,true],
["Land_HBarrier_Big_F",[15.9546,18.7849,-0.00143909],225,true,true],
["Land_HBarrier_Big_F",[22.4077,16.1892,-0.00143909],0,true,true],
["Land_HBarrier_Big_F",[0.70459,21.283,-0.00143909],180,true,true],
["Land_HBarrier_Big_F",[25.7827,11.0642,-0.00143909],90,true,true],
["Land_BagFence_Long_F",[4.57764,19.0466,-0.00143909],270,true,true],
["Land_BagFence_Long_F",[4.57764,16.1716,-0.00143909],270,true,true],
["Land_BagFence_Long_F",[11.3843,19.2634,-0.00143909],90,true,true],
["Land_BagFence_End_F",[4.57764,14.4216,-0.00143909],90,true,true],
["Land_BagFence_End_F",[7.68896,7.77515,-0.00143909],240,true,true],
["Land_BagFence_End_F",[11.3843,17.5134,-0.00143909],90,true,true]
];
_missionLootBoxes = [
["B_supplyCrate_F",[1.55273,0.0065918,-0.00143957],_crateLoot,_lootCounts,0.000522983]
];
_missionLootVehicles = [
];
_missionPatrolVehicles = [
["B_LSV_01_armed_F",[-41.377,-5.40894,-0.0238895],0.00171121],
["B_LSV_01_armed_F",[39.5627,-5.26709,-0.0237107],0.00169144]
];
_submarinePatrolParameters = [
];
_airPatrols = [
];
_missionEmplacedWeapons = [
["B_HMG_01_high_F",[-8.31958,-28.7351,-0.0135579],359.998],
["B_HMG_01_high_F",[-25.1523,-1.33643,-0.0135579],359.999],
["B_HMG_01_high_F",[-23.7974,-12.0527,-0.0135579],359.998],
["B_HMG_01_high_F",[-18.7363,-10.283,-0.0135579],359.998],
["B_HMG_01_high_F",[-21.9993,4.10132,-0.0135579],359.999],
["B_HMG_01_high_F",[-18.2954,25.033,-0.0135579],359.999],
["B_HMG_01_high_F",[-0.275879,18.9167,-0.0135579],0.000433404],
["B_HMG_01_high_F",[18.0608,-20.4434,-0.0135579],359.999],
["B_HMG_01_high_F",[5.96338,-3.91113,-0.0135593],286.946]
];
_missionGroups = [
//[[-2.42578,-9.81299,0],3,6,"Red",30,45],
//[[-16.3196,-3.59033,0],3,6,"Red",30,45],
//[[-4.65015,-0.520264,0],3,6,"Red",30,45],
//[[-7.48169,-14.3093,0],3,6,"Red",30,45],
//[[-5.94653,-0.124756,0],3,6,"Red",30,45],
//[[20.2122,-6.24878,0],3,6,"Red",30,45],
//[[20.0557,6.34253,0],3,6,"Red",30,45],
[[15.1677,-10.6943,0],3,6,"Red",30,45],
[[2.0083,-14.293,-4.76837e-007],3,6,"Red",30,45],
[[1.84692,-7.56616,-4.76837e-007],3,6,"Red",30,45],
[[2.71069,-14.7263,-4.76837e-007],3,6,"Red",30,45],
[[2.50513,-13.1191,0],3,6,"Red",30,45],
[[13.8992,11.4729,0],3,6,"Red",30,45],
[[3.75098,11.2024,0],3,6,"Red",30,45],
[[18.3645,19.8477,0],3,6,"Red",30,45],
[[3.17798,26.7761,0],3,6,"Red",30,45]
];
//////////
// The lines below define additional variables you may wish to configure.
// Change _useMines to true/false below to enable mission-specific settings.
_useMines = blck_useMines;
_minNoAI = blck_MinAI_Orange;
_maxNoAI = blck_MaxAI_Orange;
_noAIGroups = blck_AIGrps_Orange;
_noVehiclePatrols = blck_SpawnVeh_Orange;
_noEmplacedWeapons = blck_SpawnEmplaced_Orange;
//_uniforms = blck_SkinList;
//_headgear = blck_headgear;
_chancePara = 0.75; // Setting this in the mission file overrides the defaults
_noPara = 5; // Setting this in the mission file overrides the defaults
_paraTriggerDistance = 400; // Distance from mission at which a player triggers these reinforcements and any supplemental loot. // To have paras spawn at the time the mission spawns with/without accompanying loot set this to 0.
_paraSkill = "orange"; // Choose any skill you like; bump up skill or add AI to justify more valuable loot.
_chanceLoot = 0.7;
private _lootIndex = selectRandom[1,2,3,4];
private _paralootChoices = [blck_contructionLoot,blck_contructionLoot,blck_highPoweredLoot,blck_supportLoot];
private _paralootCountsChoices = [[0,0,0,10,10,0],[0,0,0,10,10,0],[10,10,0,0,0,0],[0,0,0,0,15,0]];
_paraLoot = _paralootChoices select _lootIndex;
_paraLootCounts = _paralootCountsChoices select _lootIndex; // Throw in something more exotic than found at a normal blue mission.
//_endCondition = "playerNear"; // Options are "allUnitsKilled", "playerNear", "allKilledOrPlayerNear"
//_timeOut = -1;
#include "\q\addons\custom_server\Compiles\Missions\GMS_fnc_missionSpawner.sqf";

View File

@ -0,0 +1,74 @@
/*
Mission Compositions by Ghostrider [GRG] for ghostridergaming
*/
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
#include "\q\addons\custom_server\Missions\privateVars.sqf";
//diag_log "[blckeagls] Spawning Red Mission with template = default";
_crateLoot = blck_BoxLoot_Red;
_lootCounts = blck_lootCountsRed;
_startMsg = "Car thieves were sighted in a nearby sector! Check the Red marker on your map for the location!";
_endMsg = "The Sector at the Red Marker is under survivor control!";
_markerLabel = "";
_markerType = ["ellipse",[200,200],"GRID"];
_markerColor = "ColorRed";
_markerMissionName = "Thieves";
_missionLandscapeMode = "precise"; // acceptable values are "none","random","precise"
_missionLandscape = [
["Flag_AAF_F",[4,4,0],0,[false,false]],
["Land_i_Garage_V2_F",[3.875,-30.1152,0],252.899,[true,true]],
["Land_i_Garage_V2_F",[-17.2246,28.0176,-0.00298452],65.4825,[true,true]],
["Land_i_House_Big_02_V2_F",[30.9844,14.6074,-2.38419e-007],77.0403,[true,true]],
["Land_i_House_Big_01_V3_F",[-42.3359,-7.80469,2.38419e-007],343.548,[true,true]],
["Land_Wreck_Truck_F",[48.3457,-1.48242,0],0,[false,false]],
["Land_Wreck_Car2_F",[34.3457,-12.3398,2.38419e-007],0,[false,false]],
["Land_Wreck_Car3_F",[23.7402,-24.3887,0],0,[false,false]],
["Land_Wreck_Hunter_F",[21.4395,-35.9492,2.38419e-007],0,[false,false]],
["Land_Wreck_Van_F",[14.5645,21.1934,-0.000167847],0,[false,false]],
["Land_Wreck_Offroad_F",[12.6328,29.0918,0.000607967],0,[false,false]],
["Land_Wreck_Offroad2_F",[-0.875,27.1035,0.00187802],0,[false,false]],
["Land_Wreck_UAZ_F",[-24.3984,22.4688,-0.000131845],0,[false,false]],
["Land_Wreck_Ural_F",[-31.2441,18.7832,-1.90735e-006],0,[false,false]],
["Land_Wreck_Truck_dropside_F",[-35.7227,7.54883,2.38419e-007],0,[false,false]],
["Land_Wreck_Heli_Attack_01_F",[-34.1113,27.1094,0.00630307],0,[false,false]],
["Land_Wreck_Heli_Attack_01_F",[-5.27734,-35.4395,2.38419e-007],0,[false,false]],
["Land_Wreck_Heli_Attack_02_F",[-15.1113,-41.4531,0],0,[false,false]],
["Land_UWreck_Heli_Attack_02_F",[-24.7617,-27.7559,0],0,[false,false]],
["Land_HistoricalPlaneDebris_04_F",[-15.4902,-27.8711,0],0,[false,false]],
["Land_HistoricalPlaneDebris_03_F",[-42.4453,13.793,0],0,[false,false]],
["Land_HistoricalPlaneDebris_02_F",[35.041,-24.9219,0],0,[false,false]],
["Land_HistoricalPlaneDebris_01_F",[42.6582,-17.5762,0],0,[false,false]],
["Land_Wreck_Slammer_hull_F",[25.1035,30.7656,0.00311899],0,[false,false]],
["Land_Wreck_Slammer_F",[-5.16797,38.9414,0.0154414],0,[false,false]],
["Land_CargoBox_V1_F",[-9.66406,-16.6582,0],0,[false,false]],
["Land_Cargo40_blue_F",[6.50195,-19.627,0],154.788,[false,false]],
["Land_Cargo40_blue_F",[-7.36914,-23.0078,0],0,[false,false]],
["Land_Cargo40_blue_F",[-19.6152,-18.0742,0],41.2042,[false,false]],
["Land_CncBarrier_F",[-6.70508,9.58203,0],141.162,[false,false]],
["Land_CncBarrierMedium4_F",[4.69141,12.666,0],0,[false,false]],
//["Land_CncBarrierMedium4_F",[-11.3613,5.03516,0],136.997,[false,false]],
["Land_CncBarrierMedium4_F",[-17.4824,-0.664063,0],136.997,[false,false]],
["Land_CncBarrierMedium4_F",[-22.625,-7.21289,0],301.167,[false,false]]
]; // list of objects to spawn as landscape
_missionLootBoxes = []; // Parameters are "Box Item Code", array defining the loot to be spawned, and position.
_missionLootVehicles = []; // Parameters are "Box Item Code", array defining the loot to be spawned, and position.
_missionEmplacedWeapons = []; // can be used to define the precise placement of static weapons [[1,2,3] /*loc 1*/, [2,3,4] /*loc 2*/]; if blank random locations will be used
_minNoAI = blck_MinAI_Red;
_maxNoAI = blck_MaxAI_Red;
_noAIGroups = blck_AIGrps_Red;
_noVehiclePatrols = blck_SpawnVeh_Red;
_noEmplacedWeapons = blck_SpawnEmplaced_Red;
// Change _useMines to true/false below to enable mission-specific settings.
_useMines = blck_useMines;
#ifdef blck_useCUP
_uniforms = blck_CUPUniforms;
_weaponList = blck_CUPWeapons;
_vests = blck_CUPVests;
_backpacs = blck_CUPBackpacks;
_headgear = blck_CUPHeadgear;
#endif
//_endCondition = "playerNear"; // Options are "allUnitsKilled", "playerNear", "allKilledOrPlayerNear"
//_timeOut = -1;
#include "\q\addons\custom_server\Compiles\Missions\GMS_fnc_missionSpawner.sqf";

View File

@ -34,8 +34,8 @@ switch (toLower worldName) do
blck_mapRange = 6000;
};
case "livonia":{
blck_mapCenter = [6500,6500,0];
blck_mapRange = 6100;
blck_mapCenter = [6500,6000,0];
blck_mapRange = 5800;
};
case "gm_weferlingen_summer":{
blck_mapCenter = [10000,10000,0];

View File

@ -1,4 +1,4 @@
#define blck_buildNumber 212
#define blck_buildNumber 214
#define blck_versionNumber 7.00
#define blck_buildDate "7-29-20"
#define blck_buildDate "8-1-20"