[AI] Stalker

DMS bandit mission - WORKS - will add to it as i get the multiple crate system working

9 posts in this topic

First : This mission spawns custom object building , wall , gate etc placement.
The OBJECT.SQF is fine and works as intended.

Second : The mission SQF has been reworked to support the limited 3 array function of DMS , meaning WEAPONS , ITEMS and BACKPACKS
but for all intensive purposes - items and backpacks can be used for anything other than weapons - weapons has a function that adds ammo.

Currently working on a mulitiple crate system which will allow me to use the 16 array's i want to use to provide more control for loot based on difficulty.
Think : easy unlocks 1-3 , moderate adds 4-6 , and so on.

However in the current build - the features are as follows.

1. Custom Object placement.
2. Static array's on 4 towers , 1 inside apartment building , 2 out front of apartment building.
3. Vehicle reward based on difficulty - easy = vehicle A , moderate = vehicle B and so on.
** All vehicles are set to be persitant - but you change that as you can change the vehicle type for your server **
4. Loot is an incomplete selection - advise adding to the _List  section ... as i cut out all the other array's that did not function as intended.
This has left a massive loot short fall.

Work in progress :  Number of crates linked to difficulty . Easy = 1. Hardcore = 4+.  Each crate after first one will call a global array.
This is the only way i can think of to achieve the customization i am going for. If i get it working i will include the DMS config changes i have made.

MISSION.SQF Below.
 

Spoiler

http://pastebin.com/2CkGqd0Q

Edits and code clean up / hosting on pastebin.com  done by Ned_red.

Thanks m8.

 

OBJECT SQF

 

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]
];

 

Just remember to call the Object SQF the same as it is referenced in the mission SQF.

Sorry for the delay in the mission. 
Sorry for the lack of extra function .... banging my head against a wall trying to get the options i want linked to difficulty without literally creating
a full custom loot crate with each item defined by number etc.

Anyway - enjoy.

E781102978C6B1E56ACCC544A9E01BC3A0BF66697E1B48A4A557CEEC3D47C8A69B6435437AF8DEB60B9993B661EE554F338401C807794CFBB8DDA029

Edited by [AI] Stalker

Share this post


Link to post
Share on other sites

Well done, can't wait to have a crack at this. I know how much time you would have spent on the coding.

The misson looks really cool. Will let you know how it goes. Thanks for the contribution,

cheers

Share this post


Link to post
Share on other sites
Advertisement

Error in line 212 of the mission.sqf
 

Spoiler

// setup crate iteself with items
_crate_loot_values1 =
[
    [_crate_weapons,_crate_weapons_list],
    [_crate_items,_crate_items_list],
    [_crate_backpacks,_crate_backpacks_list], //remove comma here
];

should be this:

Spoiler

// setup crate iteself with items
_crate_loot_values1 =
[
    [_crate_weapons,_crate_weapons_list],
    [_crate_items,_crate_items_list],
    [_crate_backpacks,_crate_backpacks_list]
];

cheers

Share this post


Link to post
Share on other sites

Love the mission, you have done well. I tried adding a heli reinforcement script, however the pilot is included in the ai count in the mission. The mission won't complete until the heli is taken out.

People might like to adjust the slope of the land in dms config, that way the mission doesn't spawn on a hill.

You might also like to remove the "%" sign on the mission call as all that reads is "AINC Security have set up a %1".

I rate this mission 5 STARS :) and give it a big thumbs up.

20170308184213_1.jpg

20170308184335_1.jpg

20170308185201_1.jpg

20170308185222_1.jpg

20170308185436_1.jpg

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.