Advertisement
Guest User

Untitled

a guest
Nov 8th, 2022
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1.  
  2. class SideMissions
  3. {
  4.  
  5. class MissionBase
  6. {
  7. deleteTargets = true;
  8. removeActions = false;
  9.  
  10. targetsMax = 0;
  11.  
  12. destinationFn = "isBaseNear";
  13.  
  14. reward = SM_REWARD_BASE;
  15.  
  16. taskIcon = "default";
  17. };
  18.  
  19. class FreeCaptives : MissionBase
  20. {
  21. desc = "Rescue the captives";
  22.  
  23. composition = "hostageCamp";
  24.  
  25. startInfo = "Secure the captives";
  26.  
  27. targetsMax = "1 + (round(random 2))";
  28. targetTypes[] = {"C_man_1","C_man_polo_2_F"};
  29.  
  30. start = "[] call smSetupCaptives";
  31. loop = "call smTakeControlTargets";
  32.  
  33. targetsReached = "call smRescueCaptives";
  34. targetsReachedMsg = "Escort the captives back to base";
  35.  
  36. targetsDiedMsg = "The captives died";
  37.  
  38. taskIcon = "meet";
  39. };
  40.  
  41. class CaptureOfficer : FreeCaptives
  42. {
  43. desc = "Capture enemy officer";
  44.  
  45. composition = "hqCamp1";
  46.  
  47. startInfo = "Arrest enemy officer";
  48.  
  49. start = "[] call smSetupOfficers";
  50.  
  51. targetsMax = 1;
  52. targetTypes[] = {"I_officer_F"};
  53.  
  54. targetsReached = "call smArrestOfficer";
  55. targetsReachedMsg = "Take the officer back to base";
  56.  
  57. targetsDiedMsg = "The officer died";
  58.  
  59. taskIcon = "meet";
  60. };
  61.  
  62. class DestroyObjects : MissionBase
  63. {
  64. //desc = "";
  65.  
  66. //targetTypes[] = {"Land_Radar_Small_F"};
  67. //targetsMax = 1;
  68. deleteTargets = false;
  69.  
  70. loop = "call smDestroyTargets";
  71.  
  72. taskIcon = "destroy";
  73. };
  74.  
  75. class DestroyRadar : DestroyObjects
  76. {
  77. desc = "Destroy radar";
  78.  
  79. composition = "radarplace";
  80.  
  81. targetTypes[] = {"Land_Radar_Small_F"};
  82. targetsMax = 1;
  83.  
  84. };
  85.  
  86. class EliminateEnemy : DestroyObjects
  87. {
  88. desc = "Eliminate officer";
  89.  
  90. composition = "hqCamp2";
  91.  
  92. targetTypes[] = {"I_officer_F"};
  93. targetsMax = 1;
  94. targetIsDefender = true;
  95.  
  96. taskIcon = "kill";
  97. };
  98.  
  99. class AccessComputer : MissionBase
  100. {
  101. desc = "Download data from enemy PC";
  102.  
  103. composition = "campLaptop";
  104. targetTypes[] = {"Land_Laptop_device_F"};
  105. targetsMax = 1;
  106.  
  107. start = "[] call smSetupAccessComputer";
  108. loop = "call smAccessComputer";
  109.  
  110. deleteTargets = false;
  111. removeActions = true;
  112.  
  113. taskIcon = "download";
  114. };
  115.  
  116. class ScoutArea : MissionBase
  117. {
  118. desc = "Find enemy base";
  119. taskIcon = "scout";
  120.  
  121. smOnScoutComplete = "call smEndScoutMission";
  122. };
  123.  
  124. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement