[AI] Stalker

DMS BANDIT MISSION NEW - ( Sorry - broken crate - do not use - will update when able )

19 posts in this topic

STALKER_AINC_objects

Spoiler

[
    ["Land_ConcreteWall_01_m_gate_F",[52.7512,3.8894,0],270.254],
    ["Land_ConcreteWall_01_m_8m_F",[33.1571,37.073,0],0.753531],
    ["Land_ConcreteWall_01_m_8m_F",[41.151,36.9485,0],0.753531],
    ["Land_ConcreteWall_01_m_8m_F",[17.067,37.0623,0],359.594],
    ["Land_ConcreteWall_01_m_8m_F",[25.0617,37.0994,0],359.594],
    ["Land_ConcreteWall_01_m_8m_F",[33.1784,-34.6165,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[41.1732,-34.5818,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[25.1791,-34.6726,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[17.1844,-34.7073,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[52.8531,20.7217,0],90.1478],
    ["Land_ConcreteWall_01_m_8m_F",[52.8931,28.7166,0],90.1478],
    ["Land_ConcreteWall_01_m_8m_F",[52.853,12.573,0],90.1478],
    ["Land_ConcreteWall_01_m_8m_F",[52.8751,-13.2778,0],90.1478],
    ["Land_ConcreteWall_01_m_8m_F",[52.915,-5.28296,0],90.1478],
    ["Land_ConcreteWall_01_m_8m_F",[52.8749,-21.4265,0],90.1478],
    ["Land_ConcreteWall_01_m_8m_F",[52.8388,-27.0129,0],90.1478],
    ["Land_Offices_01_V1_F",[-29.1908,3.84985,0],270.066],
    ["Land_i_House_Small_03_V1_F",[18.2533,-21.6797,0],179.324],
    ["Land_i_House_Small_03_V1_F",[42.4623,-20.5784,0],178.666],
    ["Land_ConcreteWall_01_m_8m_F",[1.1438,-34.7993,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[-6.85547,-34.8555,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[-14.8502,-34.8901,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[9.13855,-34.7646,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[0.981018,37.0461,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[-7.01825,36.99,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[8.97577,37.0808,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[-31.2035,36.8806,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[-39.2028,36.8245,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[-47.1975,36.7898,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[-23.2087,36.9153,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[-51.2402,21.1563,0],269.416],
    ["Land_ConcreteWall_01_m_8m_F",[-51.096,13.0195,0],269.416],
    ["Land_ConcreteWall_01_m_8m_F",[-51.0339,5.0249,0],269.416],
    ["Land_ConcreteWall_01_m_8m_F",[-51.2416,29.0132,0],269.416],
    ["Land_ConcreteWall_01_m_8m_F",[-51.0758,-11.1072,0],269.981],
    ["Land_ConcreteWall_01_m_8m_F",[-51.071,-19.1067,0],269.981],
    ["Land_ConcreteWall_01_m_8m_F",[-51.0876,-27.1016,0],269.981],
    ["Land_ConcreteWall_01_m_8m_F",[-51.0591,-3.1123,0],269.981],
    ["Land_ConcreteWall_01_m_8m_F",[-30.8726,-34.8391,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[-38.8719,-34.8953,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[-46.8666,-34.9299,0],359.613],
    ["Land_ConcreteWall_01_m_8m_F",[-22.8779,-34.8044,0],359.613],
    ["Land_ConcreteWall_01_m_gate_F",[8.5072,-9.97559,0],90.14],
    ["Land_ConcreteWall_01_m_8m_F",[8.36401,-18.6494,0],270.034],
    ["Land_ConcreteWall_01_m_8m_F",[8.34003,-26.644,0],270.034],
    ["Land_ConcreteWall_01_m_8m_F",[8.24054,-0.714355,0],270.034],
    ["Land_ConcreteWall_01_m_8m_F",[8.27435,15.3503,0],270.034],
    ["Land_ConcreteWall_01_m_8m_F",[8.25031,7.35522,0],270.034],
    ["Land_ConcreteWall_01_m_8m_F",[8.25824,23.4988,0],270.034],
    ["Land_ConcreteWall_01_m_8m_F",[8.28326,29.0854,0],270.034],
    ["Land_Airport_Tower_F",[2.66119,-21.541,0],0],
    ["Land_Airport_Tower_F",[2.3457,22.9624,0],179.813],
    ["Land_CampingChair_V2_F",[5.76691,2.37988,0],89.3145],
    ["Land_CampingChair_V2_F",[5.79193,3.43579,0],89.3145],
    ["Land_CampingChair_V2_F",[5.77637,4.4187,0],89.3145],
    ["Land_CampingChair_V2_F",[4.01276,4.42188,0],270.282],
    ["Land_CampingChair_V2_F",[3.98175,3.49121,0],270.282],
    ["Land_CampingChair_V2_F",[3.99951,2.45508,0],270.282],
    ["Land_CampingTable_F",[4.71643,3.97949,0],269.856],
    ["Land_CampingTable_F",[4.7464,2.01758,0],269.856],
    ["Land_CampingChair_V2_F",[5.76221,1.49023,0],89.3145],
    ["Land_CampingChair_V2_F",[4.052,1.51514,0],270.282],
    ["Land_PartyTent_01_F",[2.27148,4.10889,0],0],
    ["Land_CampingChair_V2_F",[0.791504,2.29565,0],89.3145],
    ["Land_CampingChair_V2_F",[0.816528,3.35156,0],89.3145],
    ["Land_CampingChair_V2_F",[0.800964,4.33447,0],89.3145],
    ["Land_CampingChair_V2_F",[-0.962646,4.33765,0],270.282],
    ["Land_CampingChair_V2_F",[-0.993652,3.40698,0],270.282],
    ["Land_CampingChair_V2_F",[-0.975891,2.37085,0],270.282],
    ["Land_CampingTable_F",[-0.258972,3.89526,0],269.856],
    ["Land_CampingTable_F",[-0.229004,1.93335,0],269.856],
    ["Land_CampingChair_V2_F",[0.786804,1.40601,0],89.3145],
    ["Land_CampingChair_V2_F",[-0.923401,1.43091,0],270.282],
    ["Land_CampingChair_V2_F",[4.93372,7.9375,0],359.514],
    ["Land_CampingChair_V2_F",[2.88568,6.19067,0],180.481],
    ["Land_CampingChair_V2_F",[3.81622,6.15625,0],180.481],
    ["Land_CampingChair_V2_F",[4.85242,6.17041,0],180.481],
    ["Land_CampingTable_F",[3.33051,6.89282,0],180.055],
    ["Land_CampingTable_F",[5.29248,6.91577,0],180.055],
    ["Land_CampingChair_V2_F",[5.82336,7.92993,0],359.514],
    ["Land_CampingChair_V2_F",[5.79254,6.21973,0],180.481],
    ["Land_CampingChair_V2_F",[2.89496,7.9541,0],359.514],
    ["Land_CampingChair_V2_F",[3.87793,7.96631,0],359.514],
    ["Land_CampingChair_V2_F",[-0.136353,7.8396,0],359.416],
    ["Land_CampingChair_V2_F",[-2.18146,6.08911,0],180.384],
    ["Land_CampingChair_V2_F",[-1.25085,6.0564,0],180.384],
    ["Land_CampingChair_V2_F",[-0.214661,6.07227,0],180.384],
    ["Land_CampingTable_F",[-1.73779,6.79199,0],179.958],
    ["Land_CampingTable_F",[0.224182,6.81836,0],179.958],
    ["Land_CampingChair_V2_F",[0.753296,7.83325,0],359.416],
    ["Land_CampingChair_V2_F",[0.725342,6.12305,0],180.384],
    ["Land_CampingChair_V2_F",[-2.17511,7.85254,0],359.416],
    ["Land_CampingChair_V2_F",[-1.1922,7.86646,0],359.416],
    ["Land_Airport_Tower_F",[-42.2912,-22.4778,0],0.127799],
    ["Land_Airport_Tower_F",[-43.2542,23.3545,0],179.289],
    ["Land_ConcreteWall_01_m_8m_F",[-15.0911,36.9375,0],359.613],
    ["Exile_Construction_StorageCrate_Preview",[-36.3248,15.8679,-0.915],0],
    ["Exile_Construction_StorageCrate_Preview",[-36.2129,-12.1887,-0.915001],0],
    ["Exile_Construction_StorageCrate_Preview",[-23.1365,3.53906,-0.914999],0],
    ["Exile_Construction_StorageCrate_Preview",[-22.6034,2.48828,-4.815],0],
    ["Exile_Construction_StorageCrate_Preview",[-32.6454,10.9141,-4.81454],0],
    ["Exile_Construction_StorageCrate_Preview",[-22.975,2.81616,-8.80006],0],
    ["Exile_Construction_StorageCrate_Preview",[-23.6992,10.4868,-8.80237],0],
    ["Exile_Construction_StorageCrate_Preview",[-22.5001,10.6467,-12.6383],0],
    ["Exile_Construction_StorageCrate_Preview",[-28.2034,15.9456,-12.6397],0],
    ["Exile_Construction_StorageCrate_Preview",[-32.5148,10.927,-12.6397],0],
    ["Exile_Construction_StorageCrate_Preview",[-20.8287,-4.01489,-17.8518],0],
    ["Exile_Construction_StorageCrate_Preview",[-22.6882,15.4871,-17.8518],0],
    ["Exile_Construction_StorageCrate_Preview",[-28.8776,-8.33032,-17.8518],0],
    ["Exile_Construction_StorageCrate_Preview",[3.61102,18.2871,-12.9193],0],
    ["Exile_Construction_StorageCrate_Preview",[3.2392,21.9778,-9.22237],0],
    ["Exile_Construction_StorageCrate_Preview",[3.45435,-21.5508,-9.22236],0],
    ["Exile_Construction_StorageCrate_Preview",[2.97266,-16.228,-12.9193],0],
    ["Exile_Construction_StorageCrate_Preview",[7.41614,-7.26099,0],0],
    ["Exile_Construction_StorageCrate_Preview",[21.7221,-21.4128,-0.32],0],
    ["Exile_Construction_StorageCrate_Preview",[18.4139,-18.9646,-0.32],0],
    ["Exile_Construction_StorageCrate_Preview",[15.0707,-20.9851,-0.32],0],
    ["Exile_Construction_StorageCrate_Preview",[14.1241,-18.1611,-0.32],0],
    ["Exile_Construction_StorageCrate_Preview",[38.4083,-18.9871,-0.32],0],
    ["Exile_Construction_StorageCrate_Preview",[43.086,-18.2959,-0.32],0],
    ["Exile_Construction_StorageCrate_Preview",[47.9188,-17.5525,-0.32],0],
    ["Land_ConcreteWall_01_m_8m_F",[52.7889,-31.0159,0],90.1478],
    ["Land_ConcreteWall_01_m_8m_F",[-50.9246,-31.1255,0],90.1478],
    ["Land_ConcreteWall_01_m_8m_F",[8.35651,-30.8691,0],90.1478],
    ["Land_ConcreteWall_01_m_8m_F",[-51.1862,32.668,0],269.416],
    ["Land_ConcreteWall_01_m_8m_F",[8.30121,33.2112,0],269.416],
    ["Land_ConcreteWall_01_m_8m_F",[52.9465,32.8687,0],269.416],
    ["Flag_AltisColonial_F",[-29.6306,3.53662,-17.8518],0],
    ["Land_ConcreteWall_01_m_8m_F",[48.8736,36.8452,0],0.753531],
    ["Land_ConcreteWall_01_m_8m_F",[48.7847,-34.6292,0],0.753531],
    ["Land_Medevac_house_V1_F",[30.621,-26.3838,0],178.852],
    ["Land_i_House_Small_03_V1_F",[43.1921,26.3733,0],359.851],
    ["Land_i_House_Small_03_V1_F",[18.9739,25.4946,0],359.193],
    ["Exile_Construction_StorageCrate_Preview",[39.721,26.1384,-0.32],180.527],
    ["Exile_Construction_StorageCrate_Preview",[43.0065,23.6597,-0.32],180.527],
    ["Exile_Construction_StorageCrate_Preview",[23.0132,23.8662,-0.32],180.527],
    ["Exile_Construction_StorageCrate_Preview",[18.3293,23.218,-0.32],180.527],
    ["Exile_Construction_StorageCrate_Preview",[13.4899,22.519,-0.32],180.527],
    ["Land_Medevac_house_V1_F",[30.8682,31.1909,0],359.379],
    ["Land_BarrelWater_F",[-2.55933,0.697021,0],0],
    ["Land_WaterBarrel_F",[-16.337,-22.5066,0],0],
    ["Land_WaterBarrel_F",[-18.308,-22.5188,0],0],
    ["Land_WaterBarrel_F",[-20.2323,-22.5481,0],0],
    ["Land_WaterBarrel_F",[-20.3335,-26.4592,0],0],
    ["Land_WaterBarrel_F",[-18.2866,-26.5137,0],0],
    ["Land_WaterBarrel_F",[-16.2122,-26.4238,0],0],
    ["Land_WaterBarrel_F",[-14.2271,-22.4573,0],0],
    ["Land_WaterBarrel_F",[-14.2138,-26.397,0],0],
    ["Land_WaterBarrel_F",[-20.2246,-30.3667,0],0],
    ["Land_WaterBarrel_F",[-18.2916,-30.4641,0],0],
    ["Land_WaterBarrel_F",[-16.2919,-30.4768,0],0],
    ["Land_WaterBarrel_F",[-14.2068,-30.4397,0],0],
    ["Land_PartyTent_01_F",[-17.1302,-26.0471,0],269.046],
    ["Land_PressureWasher_01_F",[-9.77039,-27.9875,0],0],
    ["StorageBladder_01_fuel_sand_F",[-26.527,27.2822,0],0]
];

 

STALKER_AINCcompound_Mission

Spoiler

/*
    COMPOUND mission created by AINC_STALKER with credit to AINC_Trades.
    Extended Crate Array and Crate Lists added to difficulty levels.
    Allows more customization of crate contents based on difficulty
    SPECIAL 1 and SPECIAL 2 are generally used for high value items.
    IE: If this was a building supply mission i would add metal to 1 and concrete to the 2nd.
    Easy/mod/difficult/hardcore based on work by [CiC]red_ned http://cic-gaming.co.uk
    Overall template based on work by Defent and eraser1
*/

private ["_num", "_side", "_pos", "_OK", "_difficulty", "_AICount", "_group", "_type", "_launcher", "_staticGuns", "_crate1", "_vehicle", "_pinCode", "_class", "_veh", "_crate_loot_values1", "_missionAIUnits", "_missionObjs", "_msgStart", "_msgWIN", "_msgLOSE", "_missionName", "_markers", "_time", "_added", "_cleanup", "_baseObjs", "_crate_weapons", "_crate_weapon_list", "_crate_items", "_crate_item_list", "_crate_backpacks", "_PossibleDifficulty"];

// For logging purposes
_num = DMS_MissionCount;


// Set mission side (only "bandit" is supported for now)
_side = "bandit";


// This part is unnecessary, but exists just as an example to format the parameters for "DMS_fnc_MissionParams" if you want to explicitly define the calling parameters for DMS_fnc_FindSafePos.
// It also allows anybody to modify the default calling parameters easily.
if ((isNil "_this") || {_this isEqualTo [] || {!(_this isEqualType [])}}) then
{
    _this =
    [
        [10,DMS_WaterNearBlacklist,DMS_MinSurfaceNormal,DMS_SpawnZoneNearBlacklist,DMS_TraderZoneNearBlacklist,DMS_MissionNearBlacklist,DMS_PlayerNearBlacklist,DMS_TerritoryNearBlacklist,DMS_ThrottleBlacklists],
        [
            []
        ],
        _this
    ];
};

// Check calling parameters for manually defined mission position.
// You can define "_extraParams" to specify the vehicle classname to spawn, either as _vehClass or [_vehClass]
_OK = (_this call DMS_fnc_MissionParams) params
[
    ["_pos",[],[[]],[3],[],[],[]],
    ["_extraParams",[]]
];

if !(_OK) exitWith
{
    diag_log format ["DMS ERROR :: Called MISSION nedresearch_mission.sqf with invalid parameters: %1",_this];
};


//create possible difficulty add more of one difficulty to weight it towards that
_PossibleDifficulty        =     [
                                "easy",
                                "easy",
                                "moderate",
                                "moderate",
                                "difficult",
                                "difficult",                            
                                "hardcore"
                            ];
//choose difficulty and set value
_difficulty = selectRandom _PossibleDifficulty;

// Create Buildings - use seperate file as found in the mercbase mission
_baseObjs =
[
    "STALKER_AINC_objects",
    _pos
] call DMS_fnc_ImportFromM3E_3DEN;

_group =
[
    [[(_pos select 0)+2,(_pos select 1)+4,0],[(_pos select 0)-10,(_pos select 1)+0,0]],                    // Position AI in tent + 2nd squad
    _AICount,                // Number of AI
    _difficulty,            // "random","hardcore","difficult","moderate", or "easy"
    "random",                 // "random","assault","MG","sniper" or "unarmed" OR [_type,_launcher]
    _side                     // "bandit","hero", etc.
] call DMS_fnc_SpawnAIGroup_MultiPos;

// add static guns
_staticGuns =
[
    [
        // make statically positioned relative to centre point, keep static as they are on top of building
        [(_pos select 0) -10,(_pos select 1) +10,0],
        [(_pos select 0) -10,(_pos select 1) -10,0],
        [(_pos select 0) +2,(_pos select 1) +18,+12],
        [(_pos select 0) +2,(_pos select 1) -16,+12],
        [(_pos select 0) -25,(_pos select 1) +15,+14],
        [(_pos select 0) -43,(_pos select 1) +18,+13],
        [(_pos select 0) -43,(_pos select 1) -16,+13]
    ],
    _group,
    "assault",
    "static",
    "bandit"
] call DMS_fnc_SpawnAIStaticMG;


switch (_difficulty) do
{
    case "easy":
    {
        _AICount = (20 + (round (random 5)));
        _crate_weapons                 = (10 + (round     (random 1)));
        _crate_weapons_scopes       = (10 + (round    (random    1)));
        _crate_weapons_suppressors  = (10 + (round    (random    1)));
        _crate_weapons_bipods       = (10 + (round    (random    1)));
        _crate_items                 = (10 + (round     (random 1)));
        _crate_meds                 = (10 + (round    (random    1)));
        _crate_uniforms             = (10 +    (round     (random 1)));
        _crate_vests                = (10 +    (round     (random 1)));
        _crate_backpacks            = (10 +    (round     (random 1)));
        _crate_helmets              = (10 + (round    (random    1)));
        _crate_nvgs                    = (10 + (round    (random    1)));
        _crate_rangefinders            = (10 + (round    (random    1)));
    //    _crate_explosives            = (20 + (round     (random 1)));        
    //    _crate_breachingcharges     = (12 + (round     (random 1)));
    //    _crate_MISSIONSPECIAL1         = (1 + (round    (random    1)));
    //    _crate_MISSIONSPECIAL2         = (1 + (round    (random    1)));

    // list references for above

        _crate_weapons_list                 =     ["arifle_MX_SW_Black_F","arifle_MX_SW_F","LMG_Mk200_F","LMG_Zafir_F","Exile_Weapon_RPK","Exile_Weapon_PK","Exile_Weapon_PKP","LMG_03_F","arifle_Katiba_F","arifle_Katiba_GL_F","arifle_MXC_F","arifle_MX_F","arifle_MX_GL_F","arifle_MXM_F","arifle_SPAR_03_khk_F","arifle_SPAR_01_GL_snd_F","arifle_CTARS_blk_F","arifle_ARX_blk_F","srifle_EBR_F"];    
        _crate_weapons_scopes_list          =    ["optic_MRCO","optic_DMS","optic_DMS_ghex_F","optic_ERCO_blk_F","optic_ERCO_khk_F","optic_ERCO_snd_F","optic_Arco","optic_Arco_blk_F","optic_Arco_ghex_F"];
        _crate_weapons_suppressors_list     =    ["muzzle_snds_H_khk_F","muzzle_snds_H_snd_F","muzzle_snds_H"];
        _crate_weapons_bipods_list          =    ["bipod_03_F_blk"];
        _crate_items_list                     =    ["Exile_Item_EMRE","Exile_Item_InstantCoffee"];
        _crate_meds_list                     =    ["Exile_Item_InstaDoc","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_InstaDoc","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin"];
        _crate_uniforms_list                 =    ["U_B_GEN_Commander_F","U_B_GEN_Soldier_F"];
        _crate_vests_list                    =    ["V_PlateCarrierGL_blk","V_PlateCarrierSpec_blk","V_PlateCarrier2_blk","V_PlateCarrierH_CTRG","V_PlateCarrierL_CTR","V_TacVestIR_bl","V_TacVestIR_blk","V_TacVestIR_blk"];
        _crate_backpacks_list                =    ["B_ViperLightHarness_blk_F","B_Carryall_oucamo","B_AssaultPack_blk"];
        _crate_helmets_list                  =    ["H_Beret_Colonel","H_MilCap_gen_F"];
        _crate_nvgs_list                    =    ["NVGoggles_OPFOR"];
        _crate_rangefinders_list            =    ["Rangefinder"];
    //    _crate_explosives_list                =    ["TMine_Range_Mag","APERSMine_Range_Mag","APERSBoundingMine_Range_Mag","SLAMDirectionalMine_Wire_Mag","APERSTripMine_Wire_Mag","ClaymoreDirectionalMine_Remote_Mag"];
    //    _crate_breachingcharges_list        =    ["BreachingChargeWood","BreachingChargeMetal","BreachingChargeWood","BreachingChargeMetal","BreachingChargeWood","BreachingChargeMetal","BreachingChargeWood","BreachingChargeBigMomma"];
    //    _crate_MISSIONSPECIAL1_list         =    ["O_HMG_01_weapon_F"];
    //    _crate_MISSIONSPECIAL2_list             =    ["O_HMG_01_support_F"];
        
    
    };
    

    case "moderate":
    {
        _AICount = (25 + (round (random 5)));
        _crate_weapons                 = (15 + (round     (random 1)));
        _crate_weapons_scopes       = (15 + (round    (random    1)));
        _crate_weapons_suppressors  = (15 + (round    (random    1)));
        _crate_weapons_bipods       = (15 + (round    (random    1)));
        _crate_items                 = (15 + (round     (random 1)));
        _crate_meds                 = (15 + (round    (random    1)));
        _crate_uniforms             = (15 +    (round     (random 1)));
        _crate_vests                = (15 +    (round     (random 1)));
        _crate_backpacks            = (15 +    (round     (random 1)));
        _crate_helmets              = (15 + (round    (random    1)));
        _crate_nvgs                    = (15 + (round    (random    1)));
        _crate_rangefinders            = (15 + (round    (random    1)));
        _crate_explosives            = (15 + (round     (random 1)));        

    // list references for above
    
        _crate_weapons_list                 =     ["arifle_MXC_F","arifle_MX_F","arifle_MX_GL_F","arifle_MXM_F","arifle_MXM_Black_F","arifle_MXC_Black_F","arifle_MX_Black_F","arifle_MX_GL_Black_F","arifle_SPAR_01_blk_F","arifle_SPAR_01_GL_blk_F","arifle_SPAR_02_blk_F","arifle_SPAR_03_blk_F","arifle_MX_SW_Black_F","LMG_Zafir_F","srifle_EBR_F","srifle_DMR_01_F","srifle_DMR_03_woodland_F"];    
        _crate_weapons_scopes_list          =    ["optic_MRCO","optic_DMS","optic_DMS_ghex_F","optic_ERCO_blk_F","optic_ERCO_khk_F","optic_ERCO_snd_F","optic_Arco","optic_Arco_blk_F","optic_Arco_ghex_F"];
        _crate_weapons_suppressors_list     =    ["muzzle_snds_H"];
        _crate_weapons_bipods_list          =    ["bipod_03_F_blk"];
        _crate_items_list                     =    ["Exile_Item_EMRE","Exile_Item_InstantCoffee"];
        _crate_meds_list                     =    ["Exile_Item_InstaDoc","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_InstaDoc","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin"];
        _crate_uniforms_list                 =    ["U_B_GEN_Commander_F","U_B_GEN_Soldier_F"];
        _crate_vests_list                    =    ["V_PlateCarrierGL_blk","V_PlateCarrierSpec_blk","V_PlateCarrier2_blk","V_PlateCarrierH_CTRG","V_PlateCarrierL_CTR","V_TacVestIR_bl","V_TacVestIR_blk","V_TacVestIR_blk"];
        _crate_backpacks_list                =    ["B_ViperLightHarness_blk_F","B_Carryall_oucamo","B_AssaultPack_blk"];
        _crate_helmets_list                  =    ["H_Beret_Colonel","H_MilCap_gen_F"];
        _crate_nvgs_list                    =    ["NVGoggles_OPFOR"];
        _crate_rangefinders_list            =    ["Rangefinder"];
        _crate_explosives_list                =    ["TMine_Range_Mag","APERSMine_Range_Mag","APERSBoundingMine_Range_Mag","SLAMDirectionalMine_Wire_Mag","APERSTripMine_Wire_Mag","ClaymoreDirectionalMine_Remote_Mag"];


    };

    case "difficult":
    {
        _AICount = (30 + (round (random 5)));
        _crate_weapons                 = (20 + (round     (random 1)));
        _crate_weapons_scopes       = (20 + (round    (random    1)));
        _crate_weapons_suppressors  = (20 + (round    (random    1)));
        _crate_weapons_bipods       = (20 + (round    (random    1)));
        _crate_items                 = (20 + (round     (random 1)));
        _crate_meds                 = (20 + (round    (random    1)));
        _crate_uniforms             = (20 +    (round     (random 1)));
        _crate_vests                = (20 +    (round     (random 1)));
        _crate_backpacks            = (20 +    (round     (random 1)));
        _crate_helmets              = (20 + (round    (random    1)));
        _crate_nvgs                    = (20 + (round    (random    1)));
        _crate_rangefinders            = (20 + (round    (random    1)));
        _crate_explosives            = (20 + (round     (random 1)));        
        _crate_breachingcharges     = (12 + (round     (random 1)));
        

    // list references for above
    
        _crate_weapons_list                 =     ["arifle_MXC_F","arifle_MX_F","arifle_MX_GL_F","arifle_MXM_F","arifle_MXM_Black_F","arifle_MXC_Black_F","arifle_MX_Black_F","arifle_MX_GL_Black_F","arifle_SPAR_01_blk_F","arifle_SPAR_01_GL_blk_F","arifle_SPAR_02_blk_F","arifle_SPAR_03_blk_F","arifle_MX_SW_Black_F","LMG_Zafir_F","srifle_EBR_F","srifle_DMR_01_F","srifle_DMR_03_woodland_F"];    
        _crate_weapons_scopes_list          =    ["optic_MRCO","optic_DMS","optic_DMS_ghex_F","optic_ERCO_blk_F","optic_ERCO_khk_F","optic_ERCO_snd_F","optic_Arco","optic_Arco_blk_F","optic_Arco_ghex_F"];
        _crate_weapons_suppressors_list     =    ["muzzle_snds_H"];
        _crate_weapons_bipods_list          =    ["bipod_03_F_blk"];
        _crate_items_list                     =    ["Exile_Item_EMRE","Exile_Item_InstantCoffee"];
        _crate_meds_list                     =    ["Exile_Item_InstaDoc","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_InstaDoc","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin"];
        _crate_uniforms_list                 =    ["U_B_GEN_Commander_F","U_B_GEN_Soldier_F"];
        _crate_vests_list                    =    ["V_PlateCarrierGL_blk","V_PlateCarrierSpec_blk","V_PlateCarrier2_blk","V_PlateCarrierH_CTRG","V_PlateCarrierL_CTR","V_TacVestIR_bl","V_TacVestIR_blk","V_TacVestIR_blk"];
        _crate_backpacks_list                =    ["B_ViperLightHarness_blk_F","B_Carryall_oucamo","B_AssaultPack_blk"];
        _crate_helmets_list                  =    ["H_Beret_Colonel","H_MilCap_gen_F"];
        _crate_nvgs_list                    =    ["NVGoggles_OPFOR"];
        _crate_rangefinders_list            =    ["Rangefinder"];
        _crate_explosives_list                =    ["TMine_Range_Mag","APERSMine_Range_Mag","APERSBoundingMine_Range_Mag","SLAMDirectionalMine_Wire_Mag","APERSTripMine_Wire_Mag","ClaymoreDirectionalMine_Remote_Mag"];
        _crate_breachingcharges_list        =    ["BreachingChargeWood"];
        

    };
    
    //case "hardcore":
    default
    {
        _AICount = (35 + (round (random 5)));
        _crate_weapons                 = (25 + (round     (random 1)));
        _crate_weapons_scopes       = (25 + (round    (random    1)));
        _crate_weapons_suppressors  = (25 + (round    (random    1)));
        _crate_weapons_bipods       = (25 + (round    (random    1)));
        _crate_items                 = (25 + (round     (random 1)));
        _crate_meds                 = (25 + (round    (random    1)));
        _crate_uniforms             = (25 +    (round     (random 1)));
        _crate_vests                = (25 +    (round     (random 1)));
        _crate_backpacks            = (25 +    (round     (random 1)));
        _crate_helmets              = (25 + (round    (random    1)));
        _crate_nvgs                    = (25 + (round    (random    1)));
        _crate_rangefinders            = (25 + (round    (random    1)));
        _crate_explosives            = (25 + (round     (random 1)));        
        _crate_breachingcharges     = (12 + (round     (random 1)));
        _crate_MISSIONSPECIAL1         = (6 + (round    (random    1)));
        _crate_MISSIONSPECIAL2         = (3 + (round    (random    1)));

    // list references for above
    
        _crate_weapons_list                 =     ["arifle_MXC_F","arifle_MX_F","arifle_MX_GL_F","arifle_MXM_F","arifle_MXM_Black_F","arifle_MXC_Black_F","arifle_MX_Black_F","arifle_MX_GL_Black_F","arifle_SPAR_01_blk_F","arifle_SPAR_01_GL_blk_F","arifle_SPAR_02_blk_F","arifle_SPAR_03_blk_F","arifle_MX_SW_Black_F","LMG_Zafir_F","srifle_EBR_F","srifle_DMR_01_F","srifle_DMR_03_woodland_F"];    
        _crate_weapons_scopes_list          =    ["optic_MRCO","optic_DMS","optic_DMS_ghex_F","optic_ERCO_blk_F","optic_ERCO_khk_F","optic_ERCO_snd_F","optic_Arco","optic_Arco_blk_F","optic_Arco_ghex_F"];
        _crate_weapons_suppressors_list     =    ["muzzle_snds_H"];
        _crate_weapons_bipods_list          =    ["bipod_03_F_blk"];
        _crate_items_list                     =    ["Exile_Item_EMRE","Exile_Item_InstantCoffee"];
        _crate_meds_list                     =    ["Exile_Item_InstaDoc","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_InstaDoc","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin","Exile_Item_Bandage","Exile_Item_Vishpirin"];
        _crate_uniforms_list                 =    ["U_B_GEN_Commander_F","U_B_GEN_Soldier_F"];
        _crate_vests_list                    =    ["V_PlateCarrierGL_blk","V_PlateCarrierSpec_blk","V_PlateCarrier2_blk","V_PlateCarrierH_CTRG","V_PlateCarrierL_CTR","V_TacVestIR_bl","V_TacVestIR_blk","V_TacVestIR_blk"];
        _crate_backpacks_list                =    ["B_ViperLightHarness_blk_F","B_Carryall_oucamo","B_AssaultPack_blk"];
        _crate_helmets_list                  =    ["H_Beret_Colonel","H_MilCap_gen_F"];
        _crate_nvgs_list                    =    ["NVGoggles_OPFOR"];
        _crate_rangefinders_list            =    ["Rangefinder"];
        _crate_explosives_list                =    ["TMine_Range_Mag","APERSMine_Range_Mag","APERSBoundingMine_Range_Mag","SLAMDirectionalMine_Wire_Mag","APERSTripMine_Wire_Mag","ClaymoreDirectionalMine_Remote_Mag"];
        _crate_breachingcharges_list        =    ["BreachingChargeWood"];
        _crate_MISSIONSPECIAL1_list         =    ["BreachingChargeMetal"];
        _crate_MISSIONSPECIAL2_list             =    ["BreachingChargeBigMomma"];
                
    
    };
};

//_msgStart = ['#FFFF00',format["A %1 research camp has been spotted, find out what they are up to",_difficulty]];
_msgStart = ['#FFFF00',"AINC Security have set up a _difficulty re-supply compound. Raid them before they complete operations"];

if (_difficulty isEqualTo "easy") then
{
    _pinCode = (1000 +(round (random 8999)));
            _vehicle = ["B_G_Offroad_01_armed_F",[(_pos select 0) +30, (_pos select 1) -0],_pinCode] call DMS_fnc_SpawnPersistentVehicle;
        _msgStart = ['#FFFF00',"AINC Security have set up a _difficulty re-supply compound. Raid them before they complete operations"];
        _msgWIN = ['#0080ff',format ["AINC compound secured.Vehicle Code secured.Code is %1...",_pinCode]];

};
    
if (_difficulty isEqualTo "moderate") then
{
    _pinCode = (1000 +(round (random 8999)));
        _vehicle = ["B_LSV_01_armed_olive_F",[(_pos select 0) +30, (_pos select 1) -0],_pinCode] call DMS_fnc_SpawnPersistentVehicle;
        _msgStart = ['#FFFF00',"AINC Security have set up a _difficulty re-supply compound. Raid them before they complete operations"];
        _msgWIN = ['#0080ff',format ["AINC compound secured.Vehicle Code secured.Code is %1...",_pinCode]];

};
    
if (_difficulty isEqualTo "difficult") then
{
    _pinCode = (1000 +(round (random 8999)));
        _vehicle = ["I_MRAP_03_hmg_F",[(_pos select 0) +30, (_pos select 1) -0],_pinCode] call DMS_fnc_SpawnPersistentVehicle;
        _msgStart = ['#FFFF00',"AINC Security have set up a _difficulty re-supply compound. Raid them before they complete operations"];
        _msgWIN = ['#0080ff',format ["AINC compound secured.Vehicle Code secured.Code is %1...",_pinCode]];

};
    
if (_difficulty isEqualTo "hardcore") then
{
    _pinCode = (1000 +(round (random 8999)));
        _vehicle = ["B_APC_Tracked_01_CRV_F",[(_pos select 0) +30, (_pos select 1) -0],_pinCode] call DMS_fnc_SpawnPersistentVehicle;
        _msgStart = ['#FFFF00',"AINC Security have set up a _difficulty re-supply compound. Raid them before they complete operations"];
        _msgWIN = ['#0080ff',format ["AINC compound secured.Vehicle Code secured.Code is %1...",_pinCode]];

};

// Create Crate type
_crate1 = ["Box_NATO_Wps_F",_pos] call DMS_fnc_SpawnCrate;


// setup crate iteself with items
_crate_loot_values1 =
[
    [_crate_weapons,_crate_weapons_list],
    [_crate_weapons_scopes,_crate_weapons_scopes_list],
    [_crate_weapons_suppressors,_crate_weapons_suppressors_list],
    [_crate_weapons_bipods,_crate_weapons_bipods_list],
    [_crate_items,_crate_items_list],
    [_crate_meds,_crate_meds_list],
    [_crate_uniforms,_crate_uniforms_list],
    [_crate_vests,_crate_vests_list],
    [_crate_backpacks,_crate_backpacks_list],
    [_crate_helmets,_crate_helmets_list],
    [_crate_nvgs,_crate_nvgs_list],
    [_crate_rangefinders,_crate_rangefinders_list],
    [_crate_explosives,_crate_explosives_list],
    [_crate_breachingcharges,_crate_breachingcharges_list],
    [_crate_MISSIONSPECIAL1,_crate_MISSIONSPECIAL1_list],
    [_crate_MISSIONSPECIAL2,_crate_MISSIONSPECIAL2_list]
    
];

// Define mission-spawned AI Units
_missionAIUnits =
[
    _group         // We only spawned the single group for this mission
];

// Define mission-spawned objects and loot values
_missionObjs =
[
    _staticGuns+_baseObjs+[_veh],            // armed AI vehicle, base objects, and static guns
    [_vehicle],                            //this is prize vehicle
    [[_crate1,_crate_loot_values1]]            //this is prize crate
];

// define start messages in difficulty choice

// Define Mission Win message defined in persistent choice

// Define Mission Lose message
_msgLOSE = ['#FF0000',"AINC security forces have secured the Compound"];

// Define mission name (for map marker and logging)
_missionName = "AINC COMPOUND";

// Create Markers
_markers =
[
    _pos,
    _missionName,
    _difficulty
] call DMS_fnc_CreateMarker;

// Record time here (for logging purposes, otherwise you could just put "diag_tickTime" into the "DMS_AddMissionToMonitor" parameters directly)
_time = diag_tickTime;

// Parse and add mission info to missions monitor
_added =
[
    _pos,
    [
        [
            "kill",
            _group
        ],
        [
            "playerNear",
            [_pos,DMS_playerNearRadius]
        ]
    ],
    [
        _time,
        (DMS_MissionTimeOut select 0) + random((DMS_MissionTimeOut select 1) - (DMS_MissionTimeOut select 0))
    ],
    _missionAIUnits,
    _missionObjs,
    [_missionName,_msgWIN,_msgLOSE],
    _markers,
    _side,
    _difficulty,
    []
] call DMS_fnc_AddMissionToMonitor;

// Check to see if it was added correctly, otherwise delete the stuff
if !(_added) exitWith
{
    diag_log format ["DMS ERROR :: Attempt to set up mission %1 with invalid parameters for DMS_AddMissionToMonitor! Deleting mission objects and resetting DMS_MissionCount.",_missionName];

    // Delete AI units and the crate. I could do it in one line but I just made a little function that should work for every mission (provided you defined everything correctly)
    _cleanup = [];
    {
        _cleanup pushBack _x;
    } forEach _missionAIUnits;

    _cleanup pushBack ((_missionObjs select 0)+(_missionObjs select 1));

    {
        _cleanup pushBack (_x select 0);
    } foreach (_missionObjs select 2);

    _cleanup call DMS_fnc_CleanUp;


    // Delete the markers directly
    {deleteMarker _x;} forEach _markers;


    // Reset the mission count
    DMS_MissionCount = DMS_MissionCount - 1;
};


// Notify players
[_missionName,_msgStart] call DMS_fnc_BroadcastMissionStatus;

 

if (DMS_DEBUG) then
{
    (format ["MISSION: (%1) :: Mission #%2 started at %3 with %4 AI units and %5 difficulty at time %6",_missionName,_num,_pos,_AICount,_difficulty,_time]) call DMS_fnc_DebugLog;
};

 

Yes i could of added this to github. No i dont have an account there.
So here you go.

THis is one of 5 current DMS bandit missions we have working on our test server.
IF you like ... ill add more here.

Edited by [AI] Stalker

Share this post


Link to post
Share on other sites
Advertisement

The mission is a BANDIT type mission.

So just create 2 notepad .sqfs titled after the names given in the OP.

Put the object sqf into the objects folder.
Put the Mission sqf into the bandit mission folder.

Have fun ;)

Note - the vehicles can obviously be edited to suit your needs.
Note - the crate contents like the vehicles will change depending on difficulty.
IE: Easy : A - F lists. HARDCORE : A - Z lists.

Oh : Dont forget to add the MISSION.sQF name to the DMS config were it lists the missions
ie:

Spoiler

    DMS_BanditMissionTypes =            [            //    List of missions with spawn chances. If they add up to 100%, they represent the percentage chance each one will spawn                                                                                     
                                            
                                            ["STALKER_AINCcompound_Mission",1],
                                            ["STALKER_LTlizzy_mission",1],                                            
                                            ["Trades_SniperCamp_mission",2],
                                            ["Trades_DigSite_mission",2],
                                            ["Trades_Campsite_mission",2]                                          
                                                            
                                        ];

 

 

Edited by [AI] Stalker

Share this post


Link to post
Share on other sites

the bandits are referenced in the mission sqf

Ive uploaded an old version ... the crate wont spawn with loot.
3;14am here .. ill fix it up and upload the edited SQF tonight for you.

Share this post


Link to post
Share on other sites

<deleted> I am old and tired.

nice missions, I can add into the main Github bandit missions on my account if you want, just shout

Edited by red_ned

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.