Guest User

SAR_cfg_grps_panthera.sqf

a guest
Dec 11th, 2013
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.75 KB | None | 0 0
  1. f// =========================================================================================================
  2. // SAR_AI - DayZ AI library
  3. // Version: 1.0.0
  4. // Author: Sarge ([email protected])
  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 Panthera
  16. // last modified: 5.3.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 (plus 1 leader)
  55. 0 bandits
  56. max 4 (+1 leader) soldiers
  57. max 3 (+1 leader) survivors
  58. this number is randomized
  59.  
  60.  
  61. */
  62. // --------------------------------------------------
  63. // grid definition for the automatic spawn system
  64. //
  65. // examples see the chernarus file
  66. // --------------------------------------------------
  67.  
  68.  
  69. // add entries here ...
  70.  
  71.  
  72.  
  73. // ---------------------------------------------------------------
  74. // Definition of area markers for static spawns
  75. // ---------------------------------------------------------------
  76.  
  77. // add if needed, see examples in the chernarus file
  78.  
  79. diag_log format["SAR_AI: Static spawning area definition started"];
  80.  
  81. // SECTION 1
  82. //SW Island Static Spawns
  83.  
  84. _this = createMarker ["SAR_marker_grocery1", [507.00, 365.04]];
  85. _this setMarkerShape "RECTANGLE";
  86. _this setMarkeralpha 0;
  87. _this setMarkerType "Flag";
  88. _this setMarkerBrush "Solid";
  89. _this setMarkerSize [50, 50];
  90. _this setMarkerDir 120.050;
  91. SAR_marker_DEBUT1 = _this;
  92.  
  93. _this = createMarker ["SAR_marker_grocery2", [498.84, 446.64]];
  94. _this setMarkerShape "RECTANGLE";
  95. _this setMarkeralpha 0;
  96. _this setMarkerType "Flag";
  97. _this setMarkerBrush "Solid";
  98. _this setMarkerSize [50, 50];
  99. _this setMarkerDir 120.050;
  100. SAR_marker_DEBUT2 = _this;
  101.  
  102. _this = createMarker ["SAR_marker_grocery3", [444.27, 450.59]];
  103. _this setMarkerShape "RECTANGLE";
  104. _this setMarkeralpha 0;
  105. _this setMarkerType "Flag";
  106. _this setMarkerBrush "Solid";
  107. _this setMarkerSize [50, 50];
  108. _this setMarkerDir 120.050;
  109. SAR_marker_DEBUT3 = _this;
  110.  
  111. _this = createMarker ["SAR_marker_grocery4", [414.28, 451.79]];
  112. _this setMarkerShape "RECTANGLE";
  113. _this setMarkeralpha 0;
  114. _this setMarkerType "Flag";
  115. _this setMarkerBrush "Solid";
  116. _this setMarkerSize [50, 50];
  117. _this setMarkerDir 120.050;
  118. SAR_marker_DEBUT4 = _this;
  119.  
  120. _this = createMarker ["SAR_marker_grocery5", [373.32, 408.74]];
  121. _this setMarkerShape "RECTANGLE";
  122. _this setMarkeralpha 0;
  123. _this setMarkerType "Flag";
  124. _this setMarkerBrush "Solid";
  125. _this setMarkerSize [50, 50];
  126. _this setMarkerDir 120.050;
  127. SAR_marker_DEBUT5 = _this;
  128.  
  129. _this = createMarker ["SAR_marker_grocery6", [386.39, 337.08]];
  130. _this setMarkerShape "RECTANGLE";
  131. _this setMarkeralpha 0;
  132. _this setMarkerType "Flag";
  133. _this setMarkerBrush "Solid";
  134. _this setMarkerSize [15, 15];
  135. _this setMarkerDir 120.050;
  136. SAR_marker_DEBUT6 = _this;
  137.  
  138. _this = createMarker ["SAR_marker_grocery7", [424.26, ,302.15]];
  139. _this setMarkerShape "RECTANGLE";
  140. _this setMarkeralpha 0;
  141. _this setMarkerType "Flag";
  142. _this setMarkerBrush "Solid";
  143. _this setMarkerSize [15, 15];
  144. _this setMarkerDir 120.050;
  145. SAR_marker_DEBUT7 = _this;
  146.  
  147. _this = createMarker ["SAR_marker_grocery8", [493.04, 295.19]];
  148. _this setMarkerShape "RECTANGLE";
  149. _this setMarkeralpha 0;
  150. _this setMarkerType "Flag";
  151. _this setMarkerBrush "Solid";
  152. _this setMarkerSize [15, 15];
  153. _this setMarkerDir 120.050;
  154. SAR_marker_DEBUT8 = _this;
  155.  
  156. _this = createMarker ["SAR_marker_grocery9", [528.40, 305.83]];
  157. _this setMarkerShape "RECTANGLE";
  158. _this setMarkeralpha 0;
  159. _this setMarkerType "Flag";
  160. _this setMarkerBrush "Solid";
  161. _this setMarkerSize [15, 15];
  162. _this setMarkerDir 120.050;
  163. SAR_marker_DEBUT9 = _this;
  164.  
  165.  
  166. _this = createMarker ["SAR_marker_house1", [954.47, 9645.48]];
  167. _this setMarkerShape "RECTANGLE";
  168. _this setMarkeralpha 0;
  169. _this setMarkerType "Flag";
  170. _this setMarkerBrush "Solid";
  171. _this setMarkerSize [15, 15];
  172. _this setMarkerDir 120.050;
  173. SAR_marker_DEBUG1 = _this;
  174.  
  175. _this = createMarker ["SAR_marker_house2", [971.94, 9670.06]];
  176. _this setMarkerShape "RECTANGLE";
  177. _this setMarkeralpha 0;
  178. _this setMarkerType "Flag";
  179. _this setMarkerBrush "Solid";
  180. _this setMarkerSize [5, 5];
  181. _this setMarkerDir 120.050;
  182. SAR_marker_DEBUG2 = _this;
  183.  
  184. _this = createMarker ["SAR_marker_house3", [921.91, 9627.09]];
  185. _this setMarkerShape "RECTANGLE";
  186. _this setMarkeralpha 0;
  187. _this setMarkerType "Flag";
  188. _this setMarkerBrush "Solid";
  189. _this setMarkerSize [5, 5];
  190. _this setMarkerDir 120.050;
  191. SAR_marker_DEBUG3 = _this;
  192.  
  193. _this = createMarker ["SAR_marker_house4", [1018.85, 9697.18]];
  194. _this setMarkerShape "RECTANGLE";
  195. _this setMarkeralpha 0;
  196. _this setMarkerType "Flag";
  197. _this setMarkerBrush "Solid";
  198. _this setMarkerSize [5, 5];
  199. _this setMarkerDir 120.050;
  200. SAR_marker_DEBUG4 = _this;
  201.  
  202. _this = createMarker ["SAR_marker_house5", [1038.79, 9608.49]];
  203. _this setMarkerShape "RECTANGLE";
  204. _this setMarkeralpha 0;
  205. _this setMarkerType "Flag";
  206. _this setMarkerBrush "Solid";
  207. _this setMarkerSize [5, 5];
  208. _this setMarkerDir 120.050;
  209. SAR_marker_DEBUG5 = _this;
  210.  
  211. _this = createMarker ["SAR_marker_house6", [967.076, 9608.11]];
  212. _this setMarkerShape "RECTANGLE";
  213. _this setMarkeralpha 0;
  214. _this setMarkerType "Flag";
  215. _this setMarkerBrush "Solid";
  216. _this setMarkerSize [5, 5];
  217. _this setMarkerDir 120.050;
  218. SAR_marker_DEBUG6 = _this;
  219.  
  220. diag_log format["SAR_AI: Static spawning area definition finished"];
  221.  
  222.  
  223. // ----------------------------------------------------------------------------------------
  224. // End of area marker definition section
  225. // ----------------------------------------------------------------------------------------
  226.  
  227. diag_log format["SAR_AI: Area & Trigger definition finalized"];
  228. diag_log format["SAR_AI: Static Spawning for Helicopter patrols started"];
  229.  
  230. //
  231. // Static, predefined heli patrol areas with configurable units
  232. //
  233. // Parameters used:
  234. // Areaname
  235. // 1,2,3 = soldier, survivors, bandits
  236. //
  237.  
  238. // add if needed, see examples in the chernarus file
  239.  
  240. diag_log format["SAR_AI: Static Spawning for Helicopter patrols finished"];
  241.  
  242. //---------------------------------------------------------------------------------
  243. // Static, predefined infantry patrols in defined areas with configurable units
  244. //---------------------------------------------------------------------------------
  245. // Example: [SAR_area_DEBUG,1,0,1,""] call SAR_AI;
  246. //
  247. // SAR_area_DEBUG = areaname (must have been defined further up)
  248. // 1 = type of group (1 = soldiers, 2 = survivors, 3 = bandits)
  249. // 0 = amount of snipers in the group
  250. // 1 = amount of rifleman in the group
  251. //
  252. //
  253.  
  254. // Example entries:
  255. // SARGE DEBUG - Debug group
  256. // military, 0 snipers, 1 riflemen, patrol
  257. //[SAR_area_DEBUG,1,0,1,""] call SAR_AI;
  258.  
  259. // military, 2 snipers, 4 riflemen, patrol
  260. //[SAR_area_DEBUG,1,2,4,""] call SAR_AI;
  261.  
  262. // survivors, 1 snipers, 3 riflemen, patrolling the NWAF
  263. //[SAR_marker_helipatrol_nwaf,2,1,3,""] call SAR_AI;
  264.  
  265. // bandits, 5 snipers, 2 riflemen, patrolling the NWAF
  266. //[SAR_marker_helipatrol_nwaf,3,5,2,""] call SAR_AI;
  267. //---------------------------------------------------------------------------------
  268.  
  269. diag_log format["SAR_AI: Static Spawning for infantry patrols started"];
  270.  
  271. // add here if needed
  272.  
  273. [SAR_marker_DEBUT1,3,0,5,"fortify",false] call SAR_AI;
  274. [SAR_marker_DEBUT2,3,0,6,"fortify",false] call SAR_AI;
  275. [SAR_marker_DEBUT3,3,0,5,"fortify",false] call SAR_AI;
  276. [SAR_marker_DEBUT4,3,1,4,"fortify",true] call SAR_AI;
  277. [SAR_marker_DEBUT5,3,0,6,"fortify",false] call SAR_AI;
  278. [SAR_marker_DEBUT6,3,0,4,"fortify",false] call SAR_AI;
  279. [SAR_marker_DEBUT7,3,0,5,"fortify",true] call SAR_AI;
  280. [SAR_marker_DEBUT8,3,1,4,"fortify",false] call SAR_AI;
  281. [SAR_marker_DEBUT9,3,0,6,"fortify",false] call SAR_AI;
  282.  
  283. [SAR_marker_DEBUG1,3,0,5,"fortify",false] call SAR_AI;
  284. [SAR_marker_DEBUG2,3,0,6,"fortify",false] call SAR_AI;
  285. [SAR_marker_DEBUG3,3,0,5,"fortify",false] call SAR_AI;
  286. [SAR_marker_DEBUG4,3,1,4,"fortify",false] call SAR_AI;
  287. [SAR_marker_DEBUG5,3,0,6,"fortify",true] call SAR_AI;
  288. [SAR_marker_DEBUG6,3,0,4,"fortify",false] call SAR_AI;
  289. [SAR_marker_DEBUG7,3,0,5,"fortify",true] call SAR_AI;
  290.  
  291.  
  292. // ---- end of configuration area ----
  293.  
  294. diag_log format["SAR_AI: Static Spawning for infantry patrols finished"];
  295.  
  296.  
  297. // -------------------------------------------------------------------------------------
  298. //
  299. // Static spawns for vehicle groups
  300. //
  301. // format: [areamarker,type_of_group,vehicle array,crew array,(respawn),(respawntime)] call SAR_AI_land;
  302. //
  303. //
  304. // areamarker : Name of an area, as defined in your area definitions
  305. // type_of_group : 1 = military, 2 = survivors, 3 = bandits
  306. // vehicle array : e.g. ["car1"], MUST be enclosed by [], and MUST be valid vehicle classnames. multiple vehicles are possible, like this: ["car1","car1","car1"]
  307. // 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.
  308. // must match to the number of defined vehicles, so for the above example, you need: [[1,2,3],[0,1,2],[0,1,1]]
  309. //
  310. //
  311. // respawn : true or false (optional)
  312. // respawntime : time in secs until group respawns (optional)
  313. //
  314. //
  315. //
  316. // Examples:
  317. //
  318. // A) This will spawn an AI group with 1 vehicle(UAZ), and 3 AI in it
  319. /*
  320. [
  321. SAR_marker_DEBUG_veh_1, // Name of the area that the vehicle patrol will spawn in
  322. 1, // type of group
  323. ["UAZ_Unarmed_TK_EP1"], // used vehicles
  324. [[1,1,1]], // Vehicle initial crew
  325. false // if this group should respawn or not
  326. ] call SAR_AI_land;
  327. */
  328. //
  329. // B) This will spawn an AI group with 1 vehicle, 3 AI in the UAZ, and this group will respawn after 60 seconds
  330. /*
  331. [
  332. SAR_marker_DEBUG_veh_1, // Name of the area that the vehicle patrol will spawn in
  333. 1, // type of group
  334. ["UAZ_Unarmed_TK_EP1"], // used vehicle
  335. [[1,1,1]], // Vehicle initial crews
  336. true, // if this group should respawn or not
  337. 60 // waittime until this group will respawn
  338. ] call SAR_AI_land;
  339. */
  340. //
  341. // -------------------------------------------------------------------------------------
  342. diag_log format["SAR_AI: Static Spawning for vehicle patrols started"];
  343.  
  344. //
  345. // define your static vehicle patrols here
  346. //
  347.  
  348.  
  349.  
  350. diag_log format["SAR_AI: Static Spawning for vehicle patrols finished"];
  351. // ---- end of configuration area ----
Advertisement
Add Comment
Please, Sign In to add comment