Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.32 KB | None | 0 0
  1. /*
  2. Author: Maverick Applications
  3. Convoy sidemission for Altis Life servers
  4. */
  5.  
  6. class Maverick_ConvoySidemission
  7. {
  8. class Config
  9. {
  10. ConfigPool[] = {"GoldBarTransport","WeaponTransport","DrugTransport"};
  11. ForceConfigAtIndex = -1;
  12. SleepTime = 3600;
  13. MakePlayersHostileFor = 360;
  14. SidesNotAttackable[] = {"WEST"};
  15. AIDifficulty[] = {
  16. {"aimingAccuracy", 0.01},
  17. {"aimingShake", 0.01},
  18. {"aimingSpeed", 0.01},
  19. {"endurance", 0.01},
  20. {"spotDistance", 0.01},
  21. {"spotTime", 0.01},
  22. {"courage", 0.01},
  23. {"reloadSpeed", 0.01},
  24. {"commanding", 0.01},
  25. {"general", 0.01}
  26. };
  27. };
  28. class ConvoyConfigurationsPool
  29. {
  30. /*********************** EXAMPLE TRANSPORT FOR VIRTUAL ITEMS ***********************/
  31. class GoldBarTransport
  32. {
  33. class MapConfiguration
  34. {
  35. showMapMarker = 1;
  36. text = "Gold Transport";
  37. };
  38.  
  39. class AIUnits
  40. {
  41. gear[] = {
  42. "H_Cap_police", // Headgear
  43. "G_Aviator", // Glasses
  44. "U_Rangemaster", // Uniform
  45. "V_TacVest_blk_POLICE", // Vest
  46. "", // Backpack
  47. {"arifle_MX_khk_F", "30Rnd_65x39_caseless_mag", 5}, // Primary weapon, ammo and how many magazines
  48. {"hgun_P07_khk_F", "16Rnd_9x21_Mag", 1}, // Secondary weapon, ammo and how many magazines
  49. };
  50. };
  51.  
  52. class Messages
  53. {
  54. // Enable messages?
  55. enabled = 1;
  56.  
  57. // Mission started announcement
  58. startAnnouncementHeader = "Gold Transport";
  59. startAnnouncementDescription = "The Federal Reserve's guarded transporter is currently moving larger amounts of gold.";
  60.  
  61. // Mission objective completed
  62. stoppedAnnouncementHeader = "Gold Transporter disabled";
  63. stoppedAnnouncementDescription = "The gold transporter has been disabled.";
  64.  
  65. // Mission completed announcement
  66. endAnnouncementHeader = "Gold Transport ended";
  67. endAnnouncementDescription = "The mission has ended.";
  68. };
  69.  
  70. class Vehicles
  71. {
  72. // Vehicle configuration
  73. vehiclesInOrder[] = {"B_MRAP_01_hmg_F","B_Truck_01_covered_F","B_MRAP_01_F"};
  74. vehiclesSpawnMarkersInOrder[] = {"mav_convoy_spawn1","mav_convoy_spawn2","mav_convoy_spawn3"};
  75. vehiclesInheritDirection = 1;
  76. mainVehicleAtIndex = 1;
  77. maxSpeed = 50;
  78. removeVehiclesAfterSeconds = 600;
  79. additionalUnitsAmount = 10;
  80. };
  81.  
  82. class Route
  83. {
  84. // Route configuration
  85. markers[] = {"mav_convoy_waypoint1","mav_convoy_waypoint2","mav_convoy_waypoint3","mav_convoy_waypoint4","mav_convoy_waypoint5","mav_convoy_waypoint6","mav_convoy_waypoint7","mav_convoy_waypoint8","mav_convoy_waypoint9","mav_convoy_waypoint10","mav_convoy_waypoint11","mav_convoy_waypoint12"};
  86. };
  87.  
  88. class Loot
  89. {
  90. type = "virtual";
  91. container = "";
  92. data[] = {
  93. {"goldbar", 40}
  94. };
  95. };
  96. };
  97.  
  98.  
  99. class DrugTransport
  100. {
  101. class MapConfiguration
  102. {
  103. showMapMarker = 1;
  104. text = "drug Transport";
  105. };
  106.  
  107. class AIUnits
  108. {
  109. gear[] = {
  110. "H_Cap_police", // Headgear
  111. "G_Aviator", // Glasses
  112. "U_Rangemaster", // Uniform
  113. "V_TacVest_blk_POLICE", // Vest
  114. "", // Backpack
  115. {"arifle_MX_khk_F", "30Rnd_65x39_caseless_mag", 5}, // Primary weapon, ammo and how many magazines
  116. {"hgun_P07_khk_F", "16Rnd_9x21_Mag", 1}, // Secondary weapon, ammo and how many magazines
  117. };
  118. };
  119.  
  120. class Messages
  121. {
  122. // Enable messages?
  123. enabled = 1;
  124.  
  125. // Mission started announcement
  126. startAnnouncementHeader = "drug Transport";
  127. startAnnouncementDescription = "The Federal Reserve's guarded transporter is currently moving larger amounts of gold.";
  128.  
  129. // Mission objective completed
  130. stoppedAnnouncementHeader = "drug Transporter disabled";
  131. stoppedAnnouncementDescription = "The gold transporter has been disabled.";
  132.  
  133. // Mission completed announcement
  134. endAnnouncementHeader = "drug Transport ended";
  135. endAnnouncementDescription = "The mission has ended.";
  136. };
  137.  
  138. class Vehicles
  139. {
  140. // Vehicle configuration
  141. vehiclesInOrder[] = {"B_MRAP_01_hmg_F","B_Truck_01_covered_F","B_MRAP_01_F"};
  142. vehiclesSpawnMarkersInOrder[] = {"mav_convoy_spawnd1","mav_convoy_spawnd2","mav_convoy_spawnd3"};
  143. vehiclesInheritDirection = 1;
  144. mainVehicleAtIndex = 1;
  145. maxSpeed = 50;
  146. removeVehiclesAfterSeconds = 600;
  147. additionalUnitsAmount = 10;
  148. };
  149.  
  150. class Route
  151. {
  152. // Route configuration
  153. markers[] = {"mav_convoy_waypointd1","mav_convoy_waypointd2","mav_convoy_waypointd3","mav_convoy_waypointd4","mav_convoy_waypointd5","mav_convoy_waypointd6","mav_convoy_waypointd7","mav_convoy_waypointd8","mav_convoy_waypointd9","mav_convoy_waypointd10","mav_convoy_waypointd11","mav_convoy_waypoint1d2"};
  154. };
  155.  
  156. class Loot
  157. {
  158. type = "virtual";
  159. container = "";
  160. data[] = {
  161. {"heroin_processed", 40}
  162. };
  163. };
  164. };
  165.  
  166.  
  167. /*********************** EXAMPLE TRANSPORT FOR REAL ITEMS ***********************/
  168. class WeaponTransport
  169. {
  170. class MapConfiguration
  171. {
  172. showMapMarker = 1;
  173. text = "Weapon Transport";
  174. };
  175.  
  176. class AIUnits
  177. {
  178. gear[] = {
  179. "H_Cap_police", // Headgear
  180. "G_Aviator", // Glasses
  181. "U_Rangemaster", // Uniform
  182. "V_TacVest_blk_POLICE", // Vest
  183. "", // Backpack
  184. {"arifle_MX_khk_F", "30Rnd_65x39_caseless_mag", 5}, // Primary weapon, ammo and how many magazines
  185. {"hgun_P07_khk_F", "16Rnd_9x21_Mag", 1}, // Secondary weapon, ammo and how many magazines
  186. };
  187. };
  188.  
  189. class Messages
  190. {
  191. // Enable messages?
  192. enabled = 1;
  193.  
  194. // Mission started announcement
  195. startAnnouncementHeader = "Weapon Transport";
  196. startAnnouncementDescription = "The local Police are currently transporting large amounts of weapons through Altis with ground vehicles.";
  197.  
  198. // Mission objective completed
  199. stoppedAnnouncementHeader = "Weapon Transporter disabled";
  200. stoppedAnnouncementDescription = "The Weapon transporter has been disabled.";
  201.  
  202. // Mission completed announcement
  203. endAnnouncementHeader = "Weapon Transport ended";
  204. endAnnouncementDescription = "The mission has ended.";
  205. };
  206.  
  207. class Vehicles
  208. {
  209. // Vehicle configuration
  210. vehiclesInOrder[] = {"B_MRAP_01_hmg_F","B_Truck_01_covered_F","B_MRAP_01_F","B_MRAP_01_F"};
  211. vehiclesSpawnMarkersInOrder[] = {"mav_convoy_spawng1","mav_convoy_spawng2","mav_convoy_spawng3","mav_convoy_spawng4"};
  212. vehiclesInheritDirection = 1;
  213. mainVehicleAtIndex = 2;
  214. maxSpeed = 50;
  215. removeVehiclesAfterSeconds = 600;
  216. additionalUnitsAmount = 10;
  217. };
  218.  
  219. class Route
  220. {
  221. // Route configuration
  222. markers[] = {"mav_convoy_waypointg1","mav_convoy_waypointg2","mav_convoy_waypointg3","mav_convoy_waypointg4","mav_convoy_waypointg5","mav_convoy_waypointg6","mav_convoy_waypointg7","mav_convoy_waypointg8","mav_convoy_waypointg9","mav_convoy_waypointg10","mav_convoy_waypointg11","mav_convoy_waypointg12"};
  223. };
  224.  
  225. class Loot
  226. {
  227. type = "real";
  228. container = "IG_supplyCrate_F";
  229. data[] = {
  230. {"srifle_DMR_01_F", 1, "WEAPON"},
  231. {"arifle_Mk20_MRCO_plain_F", 1, "WEAPON"},
  232. {"LMG_03_F", 1, "WEAPON"},
  233. {"arifle_Katiba_GL_F", 1, "WEAPON"},
  234. {"srifle_LRR_F", 1, "WEAPON"},
  235. {"hgun_P07_khk_F", 1, "WEAPON"},
  236. {"SMG_05_F", 1, "WEAPON"},
  237. {"30Rnd_556x45_Stanag", 10, "MAGAZINE"},
  238. {"30Rnd_9x21_Mag_SMG_02", 10, "MAGAZINE"},
  239. {"30Rnd_65x39_caseless_green", 10, "MAGAZINE"},
  240. {"7Rnd_408_Mag", 10, "MAGAZINE"},
  241. {"16Rnd_9x21_Mag", 10, "MAGAZINE"},
  242. {"200Rnd_556x45_Box_F", 10, "MAGAZINE"},
  243. {"10Rnd_762x54_Mag", 10, "MAGAZINE"},
  244. {"optic_Hamr", 1, "ITEM"},
  245. {"optic_MRCO", 1, "ITEM"},
  246. {"V_TacChestrig_oli_F", 1, "BACKPACK"},
  247. {"V_TacChestrig_oli_F", 1, "BACKPACK"}
  248. };
  249. };
  250. };
  251. };
  252. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement