Advertisement
Guest User

Untitled

a guest
Jul 6th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.13 KB | None | 0 0
  1. // =========================================================================================================
  2. // SAR_AI - DayZ AI library
  3. // Version: 1.5.0
  4. // Author: Sarge (sarge@krumeich.ch)
  5. //
  6. // Wiki: to come
  7. // Forum: to come
  8. //
  9. // ---------------------------------------------------------------------------------------------------------
  10. // Required:
  11. // UPSMon
  12. // SHK_pos
  13. //
  14. // ---------------------------------------------------------------------------------------------------------
  15. // area, group & spawn cfg file for Chernarus
  16. // last modified: 28.5.2013
  17. // ---------------------------------------------------------------------------------------------------------
  18.  
  19. /* reconfiguring the properties of the grid (keep in mind the grid has default settings, but these you should overwrite where needed.
  20.  
  21. IMPORTANT: The grid squares are named like : SAR_area_0_0
  22.  
  23. where the first 0 is the x counter, and the second 0 the y counter.
  24.  
  25. So to adress the bottom left square in the grid, you use SAR_area_0_0.
  26. The square above that one would be: SAR_area_0_1
  27. the square one to the right of the bottom left square is SAR_area_1_0
  28.  
  29. You want to change the number arrays in the below lines:
  30.  
  31. The order for these numbers is always [BANDIT, SURVIVOR, SOLDIER]
  32.  
  33. Lets take an example for Chernarus
  34.  
  35. // Kamenka, 0 bandit groups, 1 soldier groups, 2 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  36. _check = [["max_grps","rnd_grps","max_p_grp"],[[0,1,2],[0,75,100],[0,4,3]],"SAR_area_0_0"] call SAR_AI_mon_upd;
  37.  
  38. [[0,1,2],[0,75,100],[0,4,3]]
  39.  
  40. the first set of numbers : 0,1,2
  41. stands for
  42. 0 bandit groups
  43. 1 soldier group
  44. 2 surivors groups
  45. thats the max that can spawn in this grid
  46.  
  47. the second set of numbers : 0,75,100
  48. that means:
  49. 0% probability to spawn bandit groups
  50. 75% for soldiers
  51. 100% for survivors
  52.  
  53. the last set of numbers : 0,4,3
  54. thats the maximum number of ppl in the group (including the leader)
  55. 0 bandits
  56. max 4 soldiers
  57. max 3 survivors
  58. this number is randomized
  59.  
  60.  
  61. */
  62. //
  63. // grid definition for the automatic spawn system
  64. //
  65.  
  66. if (SAR_dynamic_spawning) then {
  67.  
  68.  
  69.  
  70. diag_log format["SAR_AI: Dynamic spawning definition / adjustments started"];
  71.  
  72. // Kamenka, 0 bandit groups, 1 soldier groups, 2 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  73. [["max_grps","rnd_grps","max_p_grp"],[[0,1,2],[0,100,100],[0,2,1]],"SAR_area_0_0"] call SAR_AI_mon_upd;
  74.  
  75. // Balota, 1 bandit groups, 0 soldier groups, 2 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  76. [["max_grps","rnd_grps","max_p_grp"],[[1,0,2],[80,0,80],[2,0,3]],"SAR_area_1_0"] call SAR_AI_mon_upd;
  77.  
  78. // Cherno, 2 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  79. [["max_grps","rnd_grps","max_p_grp"],[[2,0,3],[75,0,75],[4,0,4]],"SAR_area_2_0"] call SAR_AI_mon_upd;
  80.  
  81. // Prido, 1 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  82. [["max_grps","rnd_grps","max_p_grp"],[[1,0,3],[50,0,50],[4,0,2]],"SAR_area_3_0"] call SAR_AI_mon_upd;
  83.  
  84. // Elektro, 2 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  85. [["max_grps","rnd_grps","max_p_grp"],[[2,0,3],[50,0,50],[4,0,4]],"SAR_area_4_0"] call SAR_AI_mon_upd;
  86.  
  87. // Kamyshovo, 0 bandit groups, 0 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  88. [["max_grps","rnd_grps","max_p_grp"],[[0,0,1],[0,0,80],[0,0,3]],"SAR_area_5_0"] call SAR_AI_mon_upd;
  89.  
  90. // Tulga, 0 bandit groups, 0 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  91. [["max_grps","rnd_grps","max_p_grp"],[[0,0,1],[0,0,80],[0,0,3]],"SAR_area_5_1"] call SAR_AI_mon_upd;
  92.  
  93. // Solni, 1 bandit groups, 0 soldier groups, 0 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  94. [["max_grps","rnd_grps","max_p_grp"],[[1,0,0],[80,0,0],[2,0,0]],"SAR_area_5_2"] call SAR_AI_mon_upd;
  95.  
  96. // Berezino, 0 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  97. [["max_grps","rnd_grps","max_p_grp"],[[0,0,3],[0,0,75],[0,0,3]],"SAR_area_5_3"] call SAR_AI_mon_upd;
  98.  
  99. // Khelm, 1 bandit groups, 0 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  100. [["max_grps","rnd_grps","max_p_grp"],[[1,0,1],[75,0,75],[3,0,3]],"SAR_area_5_4"] call SAR_AI_mon_upd;
  101.  
  102. // NEAF, 0 bandit groups, 3 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  103. [["max_grps","rnd_grps","max_p_grp"],[[0,3,1],[0,50,75],[0,2,4]],"SAR_area_5_5"] call SAR_AI_mon_upd;
  104.  
  105. // NWAF, 0 bandit groups, 2 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  106. [["max_grps","rnd_grps","max_p_grp"],[[0,2,1],[0,50,75],[0,2,4]],"SAR_area_1_4"] call SAR_AI_mon_upd;
  107.  
  108. // Stary, 3 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  109. [["max_grps","rnd_grps","max_p_grp"],[[3,0,3],[50,0,50],[3,0,3]],"SAR_area_2_2"] call SAR_AI_mon_upd;
  110.  
  111. // Devils Castle, 2 bandit groups, 0 soldier groups, 0 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  112. [["max_grps","rnd_grps","max_p_grp"],[[2,0,0],[75,0,0],[3,0,0]],"SAR_area_2_4"] call SAR_AI_mon_upd;
  113.  
  114. // Skalka, 1 bandit groups, 0 soldier groups, 0 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  115. [["max_grps","rnd_grps","max_p_grp"],[[1,0,0],[75,0,0],[3,0,0]],"SAR_area_0_5"] call SAR_AI_mon_upd;
  116.  
  117. // Petrovka1, 2 bandit groups, 0 soldier groups, 0 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  118. [["max_grps","rnd_grps","max_p_grp"],[[2,0,0],[75,0,0],[3,0,0]],"SAR_area_1_5"] call SAR_AI_mon_upd;
  119.  
  120. // Petrovka2, 2 bandit groups, 0 soldier groups, 0 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  121. [["max_grps","rnd_grps","max_p_grp"],[[2,0,0],[75,0,0],[3,0,0]],"SAR_area_2_5"] call SAR_AI_mon_upd;
  122.  
  123. // Pobeda, 2 bandit groups, 0 soldier groups, 0 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  124. [["max_grps","rnd_grps","max_p_grp"],[[2,0,0],[75,0,0],[3,0,0]],"SAR_area_3_5"] call SAR_AI_mon_upd;
  125.  
  126. // Krasno, 0 bandit groups, 1 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  127. [["max_grps","rnd_grps","max_p_grp"],[[0,1,1],[0,75,75],[0,4,2]],"SAR_area_4_5"] call SAR_AI_mon_upd;
  128.  
  129. // test south of lopatino, 1 bandit groups, 0 soldier groups, 0 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
  130. [["max_grps","rnd_grps","max_p_grp"],[[1,0,0],[100,0,0],[6,0,0]],"SAR_area_0_3"] call SAR_AI_mon_upd;
  131.  
  132. diag_log format["SAR_AI: Dynamic spawning definition / adjustments finished"];
  133.  
  134.  
  135.  
  136. };
  137. //
  138. // Definition of area markers for static spawns
  139. //
  140.  
  141. diag_log format["SAR_AI: Static spawning area definition started"];
  142.  
  143. // soutcoast, heli patrol area
  144. _this = createMarker ["SAR_marker_helipatrol_southcoast", [7997.2837, 2687.6707]];
  145. _this setMarkerShape "RECTANGLE";
  146. _this setMarkeralpha 0;
  147. _this setMarkerType "Flag";
  148. _this setMarkerBrush "Solid";
  149. _this setMarkerSize [6500, 1200];
  150. SAR_marker_helipatrol_southcoast = _this;
  151.  
  152. // eastcoast, heli patrol area
  153. _this = createMarker ["SAR_marker_helipatrol_eastcoast", [13304.196, 8220.9795]];
  154. _this setMarkerShape "RECTANGLE";
  155. _this setMarkeralpha 0;
  156. _this setMarkerType "Flag";
  157. _this setMarkerBrush "Solid";
  158. _this setMarkerSize [1200, 6000];
  159. SAR_marker_helipatrol_eastcoast = _this;
  160.  
  161. // NWAF, heli patrol area
  162. _this = createMarker ["SAR_marker_helipatrol_nwaf", [4525.3335, 10292.299]];
  163. _this setMarkerShape "RECTANGLE";
  164. _this setMarkeralpha 0;
  165. _this setMarkerType "Flag";
  166. _this setMarkerBrush "Solid";
  167. _this setMarkerSize [1500, 500];
  168. _this setMarkerDir 59.354115;
  169. SAR_marker_helipatrol_nwaf = _this;
  170.  
  171. // NEAF, heli patrol area
  172. _this = createMarker ["SAR_marker_helipatrol_neaf", [12034.16, 12725.376, 0]];
  173. _this setMarkerShape "RECTANGLE";
  174. _this setMarkeralpha 0;
  175. _this setMarkerType "Flag";
  176. _this setMarkerBrush "Solid";
  177. _this setMarkerSize [1000, 600];
  178. SAR_marker_helipatrol_neaf = _this;
  179.  
  180.  
  181. _this = createMarker ["SAR_marker_DEBUG_veh", [1951.4304, 11905.569]];
  182. _this setMarkerShape "RECTANGLE";
  183. _this setMarkeralpha 0;
  184. _this setMarkerType "Flag";
  185. _this setMarkerBrush "Solid";
  186. _this setMarkerSize [300, 1000];
  187. _this setMarkerDir -19.085985;
  188. SAR_marker_DEBUG_veh = _this;
  189.  
  190. _this = createMarker ["SAR_marker_DEBUG_devilscastle", [6913.47,11437.2,0.001]];
  191. _this setMarkerShape "RECTANGLE";
  192. _this setMarkeralpha 0;
  193. _this setMarkerType "Flag";
  194. _this setMarkerBrush "Solid";
  195. _this setMarkerSize [10, 10];
  196. SAR_marker_DEBUG_devilscastle = _this;
  197.  
  198. // Peters area defines
  199. // Stary Sobor 1
  200. _this = createMarker ["SAR_marker_Stary1", [6143.6167, 7721.5176,0.001]];
  201. _this setMarkerShape "RECTANGLE";
  202. _this setMarkeralpha 0;
  203. _this setMarkerType "Flag";
  204. _this setMarkerBrush "Solid";
  205. _this setMarkerSize [1000, 1000];
  206. SAR_marker_Stary1 = _this;
  207.  
  208. // Stary Sobor 2 masser af bandits og survs
  209. _this = createMarker ["SAR_marker_Stary2", [6143.6167, 7721.5176,0.001]];
  210. _this setMarkerShape "RECTANGLE";
  211. _this setMarkeralpha 0;
  212. _this setMarkerType "Flag";
  213. _this setMarkerBrush "Solid";
  214. _this setMarkerSize [6000, 6000];
  215. SAR_marker_Stary2 = _this;
  216.  
  217. //Cherno
  218. _this = createMarker ["SAR_marker_Cherno", [6743.8853, 2581.1865]];
  219. _this setMarkerShape "RECTANGLE";
  220. _this setMarkeralpha 0;
  221. _this setMarkerType "Flag";
  222. _this setMarkerBrush "Solid";
  223. _this setMarkerSize [550, 550];
  224. SAR_marker_Cherno = _this;
  225.  
  226. //Cherno2
  227. _this = createMarker ["SAR_marker_Cherno2", [6743.8853, 2581.1865]];
  228. _this setMarkerShape "RECTANGLE";
  229. _this setMarkeralpha 0;
  230. _this setMarkerType "Flag";
  231. _this setMarkerBrush "Solid";
  232. _this setMarkerSize [300, 50];
  233. SAR_marker_Cherno2 = _this;
  234.  
  235. //Cherno3
  236. _this = createMarker ["SAR_marker_Cherno3", [6743.8853, 2581.1865]];
  237. _this setMarkerShape "RECTANGLE";
  238. _this setMarkeralpha 0;
  239. _this setMarkerType "Flag";
  240. _this setMarkerBrush "Solid";
  241. _this setMarkerSize [50, 300];
  242. SAR_marker_Cherno3 = _this;
  243.  
  244. //Electro
  245. _this = createMarker ["SAR_marker_Electro", [10480.69, 2217.8027]];
  246. _this setMarkerShape "RECTANGLE";
  247. _this setMarkeralpha 0;
  248. _this setMarkerType "Flag";
  249. _this setMarkerBrush "Solid";
  250. _this setMarkerSize [200, 200];
  251. SAR_marker_Electro = _this;
  252.  
  253. //Electro2
  254. _this = createMarker ["SAR_marker_Electro2", [10480.69, 2217.8027]];
  255. _this setMarkerShape "RECTANGLE";
  256. _this setMarkeralpha 0;
  257. _this setMarkerType "Flag";
  258. _this setMarkerBrush "Solid";
  259. _this setMarkerSize [50, 450];
  260. SAR_marker_Electro2 = _this;
  261.  
  262. //Electro3
  263. _this = createMarker ["SAR_marker_Electro3", [10480.69, 2217.8027]];
  264. _this setMarkerShape "RECTANGLE";
  265. _this setMarkeralpha 0;
  266. _this setMarkerType "Flag";
  267. _this setMarkerBrush "Solid";
  268. _this setMarkerSize [450, 50];
  269. SAR_marker_Electro3 = _this;
  270.  
  271. //Electro4
  272. _this = createMarker ["SAR_marker_Electro4", [10480.69, 2217.8027]];
  273. _this setMarkerShape "RECTANGLE";
  274. _this setMarkeralpha 0;
  275. _this setMarkerType "Flag";
  276. _this setMarkerBrush "Solid";
  277. _this setMarkerSize [500, 500];
  278. SAR_marker_Electro4 = _this;
  279.  
  280. //Nort west air field NWAF
  281. _this = createMarker ["SAR_marker_NWAF", [4480.0781, 10375.544]];
  282. _this setMarkerShape "RECTANGLE";
  283. _this setMarkeralpha 0;
  284. _this setMarkerType "Flag";
  285. _this setMarkerBrush "Solid";
  286. _this setMarkerSize [500, 500];
  287. SAR_marker_NWAF = _this;
  288.  
  289. // NEAF
  290. _this = createMarker ["SAR_marker_NEAF", [12034.16, 12725.376, 0]];
  291. _this setMarkerShape "RECTANGLE";
  292. _this setMarkeralpha 0;
  293. _this setMarkerType "Flag";
  294. _this setMarkerBrush "Solid";
  295. _this setMarkerSize [6000, 600];
  296. SAR_marker_NEAF = _this;
  297.  
  298. //Berenzino
  299. _this = createMarker ["SAR_marker_Berenzino", [12954.624, 9783.1533]];
  300. _this setMarkerShape "RECTANGLE";
  301. _this setMarkeralpha 0;
  302. _this setMarkerType "Flag";
  303. _this setMarkerBrush "Solid";
  304. _this setMarkerSize [500, 500];
  305. SAR_marker_Berenzino = _this;
  306.  
  307. //Solnichny
  308. _this = createMarker ["SAR_marker_Solnichny", [13454.279, 6233.647]];
  309. _this setMarkerShape "RECTANGLE";
  310. _this setMarkeralpha 0;
  311. _this setMarkerType "Flag";
  312. _this setMarkerBrush "Solid";
  313. _this setMarkerSize [500, 500];
  314. SAR_marker_Solnichny = _this;
  315.  
  316. //Zelenogorsk
  317. _this = createMarker ["SAR_marker_Zelenogorsk", [2758.7144, 5304.3457]];
  318. _this setMarkerShape "RECTANGLE";
  319. _this setMarkeralpha 0;
  320. _this setMarkerType "Flag";
  321. _this setMarkerBrush "Solid";
  322. _this setMarkerSize [500, 500];
  323. SAR_marker_Zelenogorsk = _this;
  324.  
  325. //Pulkovo
  326. _this = createMarker ["SAR_marker_Pulkovo", [4915.0903, 5605.6401]];
  327. _this setMarkerShape "RECTANGLE";
  328. _this setMarkeralpha 0;
  329. _this setMarkerType "Flag";
  330. _this setMarkerBrush "Solid";
  331. _this setMarkerSize [5000, 5000];
  332. SAR_marker_Pulkovo = _this;
  333.  
  334. //staroye
  335. _this = createMarker ["SAR_marker_Staroye", [10140.659, 5434.4302]];
  336. _this setMarkerShape "RECTANGLE";
  337. _this setMarkeralpha 0;
  338. _this setMarkerType "Flag";
  339. _this setMarkerBrush "Solid";
  340. _this setMarkerSize [5000, 5000];
  341. SAR_marker_Staroye = _this;
  342.  
  343. //Staroyeall
  344. _this = createMarker ["SAR_marker_Staroyeall", [6143.6167, 7721.5176]];
  345. _this setMarkerShape "RECTANGLE";
  346. _this setMarkeralpha 0;
  347. _this setMarkerType "Flag";
  348. _this setMarkerBrush "Solid";
  349. _this setMarkerSize [6000, 6000];
  350. SAR_marker_Staroyeall = _this;
  351.  
  352. //Devils
  353. _this = createMarker ["SAR_marker_Devils", [6891.9189, 11438.73]];
  354. _this setMarkerShape "RECTANGLE";
  355. _this setMarkeralpha 0;
  356. _this setMarkerType "Flag";
  357. _this setMarkerBrush "Solid";
  358. _this setMarkerSize [4000, 4000];
  359. SAR_marker_Devils = _this;
  360.  
  361. //Rogovo
  362. _this = createMarker ["SAR_marker_Rogovo", [4808.0024, 6805.0518]];
  363. _this setMarkerShape "RECTANGLE";
  364. _this setMarkeralpha 0;
  365. _this setMarkerType "Flag";
  366. _this setMarkerBrush "Solid";
  367. _this setMarkerSize [4000, 4000];
  368. SAR_marker_Rogovo = _this;
  369.  
  370. //Vybor
  371. _this = createMarker ["SAR_marker_Vybor", [3815.0635, 8865.0938]];
  372. _this setMarkerShape "RECTANGLE";
  373. _this setMarkeralpha 0;
  374. _this setMarkerType "Flag";
  375. _this setMarkerBrush "Solid";
  376. _this setMarkerSize [4000, 4000];
  377. SAR_marker_Vybor = _this;
  378.  
  379. //Dubrovka
  380. _this = createMarker ["SAR_marker_Dubrovka", [10445.011, 9868.9912]];
  381. _this setMarkerShape "RECTANGLE";
  382. _this setMarkeralpha 0;
  383. _this setMarkerType "Flag";
  384. _this setMarkerBrush "Solid";
  385. _this setMarkerSize [4000, 4000];
  386. SAR_marker_Dubrovka = _this;
  387.  
  388. //Vyshnoye
  389. _this = createMarker ["SAR_marker_Vyshnoye", [6590.3159, 6029.1128]];
  390. _this setMarkerShape "RECTANGLE";
  391. _this setMarkeralpha 0;
  392. _this setMarkerType "Flag";
  393. _this setMarkerBrush "Solid";
  394. _this setMarkerSize [4000, 4000];
  395. SAR_marker_Vyshnoye = _this;
  396.  
  397. //Msta
  398. _this = createMarker ["SAR_marker_Msta", [11275.323, 5495.4053]];
  399. _this setMarkerShape "RECTANGLE";
  400. _this setMarkeralpha 0;
  401. _this setMarkerType "Flag";
  402. _this setMarkerBrush "Solid";
  403. _this setMarkerSize [4000, 4000];
  404. SAR_marker_Msta = _this;
  405.  
  406.  
  407. diag_log format["SAR_AI: Static spawning area definition finished"];
  408.  
  409. // ----------------------------------------------------------------------------------------
  410. // End of area marker definition section
  411. // ----------------------------------------------------------------------------------------
  412.  
  413.  
  414. //---------------------------------------------------------------------------------
  415. // Static, predefined heli patrol areas with configurable units
  416. //---------------------------------------------------------------------------------
  417. //
  418. // format: [areamarker,type_of_group,(respawn),(respawntime)] call SAR_AI;
  419. //
  420. // areamarker : Name of an area, as defined in your area definitions (MUST NOT BE similar to SAR_area_ ! THIS IS IMPORTANT!)
  421. // type_of_group : 1 = military, 2 = survivors, 3 = bandits
  422. //
  423. // respawn : true or false (optional)
  424. // respawntime : time in secs until group respawns (optional)
  425. // air_vehicle_type : classnema of the air vehicle you want to use
  426. //
  427. //
  428. // Note: The crew will be automatically seized to man any available gun in the airplane / heli.
  429. //
  430. // Examples:
  431. //
  432. // A) military air group patrolling, respawning, respawn time = default configured time, using default randomized vehicles
  433. //
  434. // [SAR_marker_DEBUG,1,true] call SAR_AI_heli;
  435. //
  436. // B) bandit air group patrolling, not respawning,
  437. //
  438. // [SAR_marker_DEBUG,3] call SAR_AI_heli;
  439. //
  440. // C) survivor air group patrolling, respawning, respawn time = 120 seconds
  441. //
  442. // [SAR_marker_DEBUG,true,120] call SAR_AI_heli;
  443. //
  444. //---------------------------------------------------------------------------------
  445. diag_log format["SAR_AI: Static Spawning for Helicopter patrols started"];
  446.  
  447. //
  448. // define your static air patrols here
  449. //
  450.  
  451. //Heli Patrol NWAF
  452. //[SAR_marker_helipatrol_nwaf,1,true] call SAR_AI_heli;
  453.  
  454. //Heli Patrol NEAF
  455. //[SAR_marker_helipatrol_neaf,1,true] call SAR_AI_heli;
  456.  
  457. // Heli patrol south coast
  458. [SAR_marker_Stary2,1,true] call SAR_AI_heli;
  459. //[SAR_marker_helipatrol_southcoast,1,true] call SAR_AI_heli;
  460.  
  461. // heli patrol east coast
  462. //[SAR_marker_helipatrol_eastcoast,1,true] call SAR_AI_heli;
  463. //[SAR_marker_helipatrol_eastcoast,1,true] call SAR_AI_heli;
  464.  
  465.  
  466.  
  467. // example war scenario in the northwest. Comment OUT after having had a look at it!
  468. //[SAR_marker_DEBUG_veh,1,true,30] call SAR_AI_heli;
  469. //[SAR_marker_DEBUG_veh,1,true,30] call SAR_AI_heli;
  470. //[SAR_marker_DEBUG_veh,3,true,30] call SAR_AI_heli;
  471. //[SAR_marker_DEBUG_veh,3,true,30] call SAR_AI_heli;
  472.  
  473.  
  474. diag_log format["SAR_AI: Static Spawning for Helicopter patrols finished"];
  475.  
  476. //---------------------------------------------------------------------------------
  477. // Static, predefined infantry patrols in defined areas with configurable units
  478. //---------------------------------------------------------------------------------
  479. //
  480. // format: [areamarker,type_of_group,number_of_snipers,number_of_riflemen,action_to_do,(respawn),(respawntime)] call SAR_AI;
  481. //
  482. // areamarker : Name of an area, as defined in your area definitions (MUST NOT BE similar to SAR_area_ ! THIS IS IMPORTANT!)
  483. // type_of_group : 1 = military, 2 = survivors, 3 = bandits
  484. // number_of_snipers : amount of snipers in the group
  485. // number_of_riflemen : amount of riflemen in the group
  486. //
  487. // action_to_do : groupaction (optional, default is "patrol")
  488. // possible values:
  489. // "fortify" -> the group will search for nearby buildings and move in them. They will stay there until an enemy spotted, then they will chase him.
  490. // "ambush" -> the group will look for a nearby road, and setup an ambush. They will not move until an enemy was spotted.
  491. // "patrol" -> the group will patrol random waypoints in the area, and engage any enemy they see.
  492. //
  493. // respawn : true or false (optional)
  494. // respawntime : time in secs until group respawns (optional)
  495. //
  496. // Examples:
  497. //
  498. // A) military group patrolling, with 1 leader and 1 rifleman, respawning, respawn time = default configured time
  499. //
  500. // [SAR_marker_DEBUG,1,0,1,"patrol",true] call SAR_AI;
  501. //
  502. // B) bandit group patrolling, with 1 leader, 2 snipers and 1 rifleman, respawning, respawn time = 30 seconds
  503. //
  504. // [SAR_marker_DEBUG,3,2,1,"patrol",true,30] call SAR_AI;
  505. //
  506. // C) survivor group fortifying, with 1 leader, 1 sniper and 3 riflemen, not respawning
  507. //
  508. // [SAR_marker_DEBUG,2,1,3,"fortify",false] call SAR_AI;
  509. //
  510. //---------------------------------------------------------------------------------
  511.  
  512. diag_log format["SAR_AI: Static Spawning for infantry patrols started"];
  513.  
  514. //
  515. // define your static infantry patrols here
  516. //
  517.  
  518. //[SAR_marker_DEBUG_devilscastle,1,0,6,"fortify",true] call SAR_AI;
  519.  
  520. // example war scenario in the northwest. Comment OUT after having had a look at it!
  521. //[SAR_marker_DEBUG_veh,1,0,9,"patrol",true] call SAR_AI;
  522. //[SAR_marker_DEBUG_veh,2,0,9,"patrol",true] call SAR_AI;
  523. //[SAR_marker_DEBUG_veh,3,0,9,"patrol",true] call SAR_AI;
  524. //[SAR_marker_DEBUG_veh,3,0,9,"patrol",true] call SAR_AI;
  525.  
  526.  
  527. //Stary Sobor milita
  528. [SAR_marker_Stary1,3,3,7,"patrol",true,1000] call SAR_AI;
  529. [SAR_marker_Stary1,3,3,7,"patrol",true,1000] call SAR_AI;
  530. //Stary Sobor masser af bandits og survs
  531. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  532. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  533. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  534. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  535. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  536. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  537. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  538. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  539. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  540. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  541. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  542. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  543. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  544. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  545. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  546. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  547. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  548. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  549. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  550. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  551. [SAR_marker_Stary2,3,1,2,"patrol",true] call SAR_AI;
  552.  
  553. //Cherno ekstra survivors
  554. [SAR_marker_Cherno2,2,0,1,"patrol",true,800] call SAR_AI;
  555. [SAR_marker_Cherno3,2,0,1,"patrol",true,800] call SAR_AI;
  556. [SAR_marker_Cherno,2,1,0,"patrol",true,800] call SAR_AI;
  557. [SAR_marker_Cherno,2,1,0,"patrol",true,800] call SAR_AI;
  558.  
  559. //Cherno Bandits
  560.  
  561. //Electro survivors
  562. [SAR_marker_Electro2,2,1,0,"patrol",true,700] call SAR_AI;
  563. [SAR_marker_Electro3,2,0,1,"patrol",true,700] call SAR_AI;
  564. [SAR_marker_Electro4,2,0,1,"patrol",true,700] call SAR_AI;
  565. //NWAF
  566. [SAR_marker_NWAF,1,3,4,"patrol",true,2500] call SAR_AI;
  567. //NEAF
  568. [SAR_marker_NEAF,1,3,4,"patrol",true,2500] call SAR_AI;
  569. //Zelenogorsk
  570. [SAR_marker_Zelenogorsk,3,1,0,"patrol",true,1800] call SAR_AI;
  571. //Pulkovo
  572. [SAR_marker_Pulkovo,3,0,1,"patrol",true,1800] call SAR_AI;
  573. [SAR_marker_Pulkovo,2,0,1,"patrol",true,1800] call SAR_AI;
  574. //Staroye all over survivors
  575. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  576. [SAR_marker_Staroyeall,2,1,2,"patrol",true] call SAR_AI;
  577. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  578. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  579. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  580. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  581. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  582. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  583. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  584. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  585. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  586. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  587. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  588. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  589. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  590. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  591. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  592. [SAR_marker_Staroye,2,1,2,"patrol",true] call SAR_AI;
  593. //Devils
  594. [SAR_marker_Devils,3,2,0,"patrol",true] call SAR_AI;
  595. //Rogovo
  596. [SAR_marker_Rogovo,3,1,0,"patrol",true] call SAR_AI;
  597. [SAR_marker_Rogovo,2,1,0,"patrol",true] call SAR_AI;
  598. //Vybor
  599. [SAR_marker_Vybor,3,0,1,"patrol",true] call SAR_AI;
  600. //Dubrovka
  601. [SAR_marker_Dubrovka,3,0,2,"patrol",true] call SAR_AI;
  602. [SAR_marker_Dubrovka,2,1,1,"patrol",true] call SAR_AI;
  603. //Vyshnoye
  604. [SAR_marker_Vyshnoye,3,1,0,"patrol",true] call SAR_AI;
  605. //Msta
  606. [SAR_marker_Msta,3,0,1,"patrol",true] call SAR_AI;
  607.  
  608. diag_log format["SAR_AI: Static Spawning for infantry patrols finished"];
  609.  
  610. // -------------------------------------------------------------------------------------
  611. //
  612. // Static spawns for vehicle groups
  613. //
  614. // format: [areamarker,type_of_group,vehicle array,crew array,(respawn),(respawntime)] call SAR_AI_land;
  615. //
  616. //
  617. // areamarker : Name of an area, as defined in your area definitions
  618. // type_of_group : 1 = military, 2 = survivors, 3 = bandits
  619. // vehicle array : e.g. ["car1"], MUST be enclosed by [], and MUST be valid vehicle classnames. multiple vehicles are possible, like this: ["car1","car1","car1"]
  620. // crew array : e.g. [[1,2,3]] -> the first entry in the array element sets if the leader travels in that vehicle, the second is the number of snipers in the vehicle, the third is the number of riflemen.
  621. // must match to the number of defined vehicles, so for the above example, you need: [[1,2,3],[0,1,2],[0,1,1]]
  622. //
  623. //
  624. // respawn : true or false (optional)
  625. // respawntime : time in secs until group respawns (optional)
  626. //
  627. //
  628. //
  629. // Examples:
  630. //
  631. // A) This will spawn an AI group with 1 vehicle(UAZ), and 3 AI in it
  632. /*
  633. [
  634. SAR_marker_DEBUG_veh_1, // Name of the area that the vehicle patrol will spawn in
  635. 1, // type of group
  636. ["UAZ_Unarmed_TK_EP1"], // used vehicles
  637. [[1,1,1]], // Vehicle initial crew
  638. false // if this group should respawn or not
  639. ] call SAR_AI_land;
  640. */
  641. //
  642. // B) This will spawn an AI group with 1 vehicle, 3 AI in the UAZ, and this group will respawn after 60 seconds
  643. /*
  644. [
  645. SAR_marker_DEBUG_veh_1, // Name of the area that the vehicle patrol will spawn in
  646. 1, // type of group
  647. ["UAZ_Unarmed_TK_EP1"], // used vehicle
  648. [[1,1,1]], // Vehicle initial crews
  649. true, // if this group should respawn or not
  650. 60 // waittime until this group will respawn
  651. ] call SAR_AI_land;
  652. */
  653. //
  654. // -------------------------------------------------------------------------------------
  655. diag_log format["SAR_AI: Static Spawning for vehicle patrols started"];
  656.  
  657. //
  658. // define your static vehicle patrols here
  659. //
  660.  
  661. /* example war scenario in the northwest. Comment OUT after having had a look at it!
  662. [
  663. SAR_marker_DEBUG_veh, // Name of the area that the vehicle patrol will spawn in
  664. 1, // type of group
  665. ["LandRover_CZ_EP1","M1030","M1030","LandRover_CZ_EP1"], // used vehicle
  666. [[1,1,1],[0,1,1],[0,1,1],[0,1,1]], // Vehicle initial crew
  667. true, // if this group should respawn or not
  668. 10
  669. ] call SAR_AI_land;
  670.  
  671. [
  672. SAR_marker_DEBUG_veh, // Name of the area that the vehicle patrol will spawn in
  673. 3, // type of group
  674. ["M1030","M1030","M1030","M1030"], // used vehicle
  675. [[1,1,0],[0,1,1],[0,1,1],[0,1,1]], // Vehicle initial crew
  676. true, // if this group should respawn or not
  677. 60 // waittime until this group will respawn
  678. ] call SAR_AI_land;*/
  679.  
  680.  
  681. [
  682. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  683. 1, // type of group
  684. ["HMMWV_DES_EP1"], // used vehicle
  685. [[1,1,1,1]], // Vehicle initial crew
  686. true, // if this group should respawn or not
  687. 300 // waittime until this group will respawn
  688. ] call SAR_AI_land;
  689.  
  690.  
  691. [
  692. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  693. 1, // type of group
  694. ["M1030"], // used vehicle
  695. [[1,1,1,1]], // Vehicle initial crew
  696. true, // if this group should respawn or not
  697. 300 // waittime until this group will respawn
  698. ] call SAR_AI_land;
  699. [
  700. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  701. 1, // type of group
  702. ["M1030"], // used vehicle
  703. [[1,1,1,1]], // Vehicle initial crew
  704. true, // if this group should respawn or not
  705. 300 // waittime until this group will respawn
  706. ] call SAR_AI_land;
  707. [
  708. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  709. 1, // type of group
  710. ["M1030"], // used vehicle
  711. [[1,1,1,1]], // Vehicle initial crew
  712. true, // if this group should respawn or not
  713. 300 // waittime until this group will respawn
  714. ] call SAR_AI_land;
  715. [
  716. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  717. 2, // type of group
  718. ["LandRover_CZ_EP1"], // used vehicle
  719. [[1,1,1,1]], // Vehicle initial crew
  720. true, // if this group should respawn or not
  721. 300 // waittime until this group will respawn
  722. ] call SAR_AI_land;
  723. [
  724. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  725. 2, // type of group
  726. ["LandRover_CZ_EP1"], // used vehicle
  727. [[1,1,1,1]], // Vehicle initial crew
  728. true, // if this group should respawn or not
  729. 60 // waittime until this group will respawn
  730. ] call SAR_AI_land;
  731. [
  732. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  733. 2, // type of group
  734. ["LandRover_CZ_EP1"], // used vehicle
  735. [[1,1,1,1]], // Vehicle initial crew
  736. true, // if this group should respawn or not
  737. 300 // waittime until this group will respawn
  738. ] call SAR_AI_land;
  739. [
  740. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  741. 2, // type of group
  742. ["LandRover_CZ_EP1"], // used vehicle
  743. [[1,1,1,1]], // Vehicle initial crew
  744. true, // if this group should respawn or not
  745. 300 // waittime until this group will respawn
  746. ] call SAR_AI_land;
  747. [
  748. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  749. 2, // type of group
  750. ["LandRover_CZ_EP1"], // used vehicle
  751. [[1,1,1]], // Vehicle initial crew
  752. true, // if this group should respawn or not
  753. 300 // waittime until this group will respawn
  754. ] call SAR_AI_land;
  755. [
  756. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  757. 2, // type of group
  758. ["LandRover_CZ_EP1"], // used vehicle
  759. [[1,1,1,1]], // Vehicle initial crew
  760. true, // if this group should respawn or not
  761. 60 // waittime until this group will respawn
  762. ] call SAR_AI_land;
  763.  
  764. [
  765. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  766. 3, // type of group
  767. ["LandRover_CZ_EP1"], // used vehicle
  768. [[1,1,1,1]], // Vehicle initial crew
  769. true, // if this group should respawn or not
  770. 60 // waittime until this group will respawn
  771. ] call SAR_AI_land;
  772. [
  773. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  774. 2, // type of group
  775. ["LandRover_CZ_EP1"], // used vehicle
  776. [[1,1,1,1]], // Vehicle initial crew
  777. true, // if this group should respawn or not
  778. 60 // waittime until this group will respawn
  779. ] call SAR_AI_land;
  780. [
  781. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  782. 2, // type of group
  783. ["LandRover_CZ_EP1"], // used vehicle
  784. [[1,1,1,1]], // Vehicle initial crew
  785. true, // if this group should respawn or not
  786. 60 // waittime until this group will respawn
  787. ] call SAR_AI_land;
  788.  
  789. [
  790. SAR_marker_Stary2, // Name of the area that the vehicle patrol will spawn in
  791. 2, // type of group
  792. ["SUV_UN_EP1"], // used vehicle
  793. [[1,1,1,1]], // Vehicle initial crew
  794. true, // if this group should respawn or not
  795. 60 // waittime until this group will respawn
  796. ] call SAR_AI_land;
  797.  
  798. diag_log format["SAR_AI: Static Spawning for vehicle patrols finished"];
  799. // ---- end of configuration area ----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement