roles.hpp 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. class standard
  2. {
  3. displayName = "Clone Trooper";
  4. icon = "\A3\ui_f\data\igui\cfg\mptable\infantry_ca.paa";
  5. vehicle = "SWOP_501_a";
  6. show = "true";
  7. restrictions[] = {};
  8. };
  9. class medic
  10. {
  11. displayName = "Clone Medic";
  12. icon = "\A3\ui_f\data\igui\cfg\mptable\infantry_ca.paa";
  13. vehicle = "SWOP_501_medic";
  14. show = "({ (_x getVariable [""role"", ""standard""]) == ""medic"" } count playableUnits) < 10";
  15. restrictions[] = { /* these guys get medic bag, of course */ };
  16. };
  17. class sniper
  18. {
  19. displayName = "Marksman";
  20. icon = "\A3\ui_f\data\igui\cfg\weaponicons\srifle_ca.paa";
  21. vehicle = "SWOP_501_sniper";
  22. show = "({ (_x getVariable [""role"", ""standard""]) == ""sniper"" } count playableUnits) < 5";
  23. restrictions[] =
  24. {
  25. "U_B_GhillieSuit",
  26. "U_I_GhillieSuit",
  27. "U_O_GhillieSuit",
  28. "srifle_EBR_ACO_F",
  29. "srifle_EBR_ARCO_pointer_F",
  30. "srifle_EBR_ARCO_pointer_snds_F",
  31. "srifle_EBR_F",
  32. "srifle_EBR_MRCO_pointer_F",
  33. "srifle_EBR_SOS_F",
  34. "srifle_GM6_F",
  35. "srifle_GM6_SOS_F",
  36. "srifle_LRR_F",
  37. "srifle_LRR_SOS_F"
  38. };
  39. };
  40. class aa
  41. {
  42. displayName = "AA Specialist";
  43. icon = "\A3\ui_f\data\igui\cfg\weaponicons\AA_ca.paa";
  44. vehicle = "SWOP_501_AA";
  45. show = "({ (_x getVariable [""role"", ""standard""]) == ""aa"" } count playableUnits) < 5";
  46. restrictions[] =
  47. {
  48. "launch_B_Titan_F",
  49. "launch_I_Titan_F",
  50. "launch_O_Titan_F",
  51. "launch_Titan_base",
  52. "launch_Titan_F"
  53. };
  54. };
  55. class at
  56. {
  57. displayName = "AT Specialist";
  58. icon = "\A3\ui_f\data\igui\cfg\weaponicons\AT_ca.paa";
  59. vehicle = "SWOP_501_AA";
  60. show = "({ (_x getVariable [""role"", ""standard""]) == ""at"" } count playableUnits) < 10";
  61. restrictions[] =
  62. {
  63. "launch_B_Titan_short_F",
  64. "launch_I_Titan_short_F",
  65. "launch_NLAW_F",
  66. "launch_O_Titan_short_F",
  67. "launch_RPG32_F",
  68. "launch_Titan_short_base",
  69. "launch_Titan_short_F"
  70. };
  71. };
  72. class engineer
  73. {
  74. displayName = "Engineer";
  75. icon = "\A3\ui_f\data\igui\cfg\actions\repair_ca.paa";
  76. vehicle = "SWOP_501_a";
  77. show = "({ (_x getVariable [""role"", ""standard""]) == ""engineer"" } count playableUnits) < 10";
  78. restrictions[] =
  79. {
  80. "ToolKit"
  81. };
  82. };
  83. class grenadier
  84. {
  85. displayName = "Grenadier";
  86. icon = "\A3\ui_f\data\igui\cfg\weaponicons\GL_ca.paa";
  87. vehicle = "SWOP_501_a";
  88. show = "({ (_x getVariable [""role"", ""standard""]) == ""grenadier"" } count playableUnits) < 10";
  89. restrictions[] =
  90. {
  91. "arifle_Katiba_GL_ACO_F",
  92. "arifle_Katiba_GL_ACO_pointer_F",
  93. "arifle_Katiba_GL_ACO_pointer_snds_F",
  94. "arifle_Katiba_GL_ARCO_pointer_F",
  95. "arifle_Katiba_GL_F",
  96. "arifle_Katiba_GL_Nstalker_pointer_F",
  97. "arifle_Mk20_GL_ACO_F",
  98. "arifle_Mk20_GL_F",
  99. "arifle_Mk20_GL_MRCO_pointer_F",
  100. "arifle_Mk20_GL_plain_F",
  101. "arifle_MX_GL_ACO_F",
  102. "arifle_MX_GL_ACO_pointer_F",
  103. "arifle_MX_GL_F",
  104. "arifle_MX_GL_Hamr_pointer_F",
  105. "arifle_MX_GL_Holo_pointer_snds_F",
  106. "arifle_TRG21_GL_ACO_pointer_F",
  107. "arifle_TRG21_GL_F",
  108. "arifle_TRG21_GL_MRCO_F",
  109. "GrenadeLauncher",
  110. "UGL_F"
  111. };
  112. };
  113. class autorifleman
  114. {
  115. displayName = "Automatic Rifleman";
  116. icon = "\A3\ui_f\data\igui\cfg\weaponicons\MG_ca.paa";
  117. vehicle = "SWOP_501_mg";
  118. show = "({ (_x getVariable [""role"", ""standard""]) == ""autorifleman"" } count playableUnits) < 10";
  119. restrictions[] =
  120. {
  121. "LMG_M200",
  122. "LMG_Minigun",
  123. "LMG_Minigun2",
  124. "LMG_Mk200_F",
  125. "LMG_Mk200_MRCO_F",
  126. "LMG_Mk200_pointer_F",
  127. "LMG_RCWS",
  128. "LMG_Zafir_F",
  129. "LMG_Zafir_pointer_F"
  130. };
  131. };
  132. class ammo
  133. {
  134. displayName = "Ammo Bearer";
  135. icon = "\A3\ui_f\data\igui\cfg\actions\reammo_ca.paa";
  136. vehicle = "SWOP_501_a";
  137. show = "({ (_x getVariable [""role"", ""standard""]) == ""ammo"" } count playableUnits) < 5";
  138. restrictions[] =
  139. {
  140. "V_BandollierB_blk",
  141. "V_BandollierB_cbr",
  142. "V_BandollierB_khk",
  143. "V_BandollierB_oli",
  144. "V_BandollierB_rgr"
  145. };
  146. };
  147. class uav
  148. {
  149. displayName = "UAV Operator";
  150. icon = "\A3\ui_f\data\gui\cfg\hints\icon_text\b_uav_ca.paa";
  151. vehicle = "B_soldier_UAV_F";
  152. show = "({ (_x getVariable [""role"", ""standard""]) == ""uav"" } count playableUnits) < 2";
  153. restrictions[] =
  154. {
  155. "B_UavTerminal",
  156. "I_UavTerminal",
  157. "UavTerminal_base"
  158. };
  159. };
  160. class pilot
  161. {
  162. displayName = "Clone Pilot";
  163. icon = "\A3\ui_f\data\gui\cfg\CommunicationMenu\transport_ca.paa";
  164. vehicle = "SWOP_501_pilot";
  165. show = "({ (_x getVariable [""role"", ""standard""]) == ""pilot"" } count playableUnits) < 4";
  166. restrictions[] =
  167. {
  168. "H_CrewHelmetHeli_B",
  169. "H_CrewHelmetHeli_I",
  170. "H_CrewHelmetHeli_O",
  171. "H_PilotHelmetFighter_B",
  172. "H_PilotHelmetFighter_I",
  173. "H_PilotHelmetFighter_O",
  174. "H_PilotHelmetHeli_B",
  175. "H_PilotHelmetHeli_I",
  176. "H_PilotHelmetHeli_O",
  177. "U_B_HeliPilotCoveralls",
  178. "U_B_PilotCoveralls",
  179. "U_I_HeliPilotCoveralls",
  180. "U_I_pilotCoveralls",
  181. "U_O_PilotCoveralls"
  182. };
  183. };
  184. class explosives
  185. {
  186. displayName = "Explosives Specialist";
  187. icon = "\A3\ui_f\data\igui\cfg\cursors\explosive_ca.paa";
  188. vehicle = "SWOP_501_a";
  189. show = "({ (_x getVariable [""role"", ""standard""]) == ""explosives"" } count playableUnits) < 8";
  190. restrictions[] =
  191. {
  192. "MineDetector",
  193. "APERSBoundingMine_Range_Mag",
  194. "APERSMine_Range_Mag",
  195. "APERSTripMine_Wire_Mag",
  196. "ATMine_Range_Mag",
  197. "DemoCharge_Remote_Mag",
  198. "SatchelCharge_Remote_Mag",
  199. "SLAMDirectionalMine_Wire_Mag",
  200. "APERSBoundingMine_Range_Ammo",
  201. "APERSMine_Range_Ammo",
  202. "APERSTripMine_Wire_Ammo",
  203. "ATMine_Range_Ammo"
  204. };
  205. };