Advertisement
MGT

Untitled

MGT
Jun 16th, 2016
692
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.21 KB | None | 0 0
  1. class CfgInteractionMenus
  2. {
  3. class Car
  4. {
  5. targetType = 2;
  6. target = "Car";
  7. class Actions
  8. {
  9. class ScanLock: ExileAbstractAction
  10. {
  11. title = "Scan Lock";
  12. condition = "('Exile_Item_ThermalScannerPro' in (magazines player)) && !ExilePlayerInSafezone && ((locked ExileClientInteractionObject) != 1)";
  13. action = "_this call ExileClient_object_lock_scan";
  14. };
  15. class Lock: ExileAbstractAction
  16. {
  17. title = "Lock";
  18. condition = "((locked ExileClientInteractionObject) isEqualTo 0) && ((locked ExileClientInteractionObject) != 1)";
  19. action = "true spawn ExileClient_object_lock_toggle";
  20. };
  21. class Unlock: ExileAbstractAction
  22. {
  23. title = "Unlock";
  24. condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  25. action = "false spawn ExileClient_object_lock_toggle";
  26. };
  27. class Repair: ExileAbstractAction
  28. {
  29. title = "Repair";
  30. condition = "true";
  31. action = "['RepairVehicle', _this select 0] call ExileClient_action_execute";
  32. };
  33. class Hotwire: ExileAbstractAction
  34. {
  35. title = "Hotwire";
  36. condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  37. action = "['HotwireVehicle', _this select 0] call ExileClient_action_execute";
  38. };
  39. class Flip: ExileAbstractAction
  40. {
  41. title = "Flip";
  42. condition = "call ExileClient_object_vehicle_interaction_show";
  43. action = "_this call ExileClient_object_vehicle_flip";
  44. };
  45. class Refuel: ExileAbstractAction
  46. {
  47. title = "Refuel";
  48. condition = "call ExileClient_object_vehicle_interaction_show";
  49. action = "_this call ExileClient_object_vehicle_refuel";
  50. };
  51. class DrainFuel: ExileAbstractAction
  52. {
  53. title = "Drain Fuel";
  54. condition = "call ExileClient_object_vehicle_interaction_show";
  55. action = "_this call ExileClient_object_vehicle_drain";
  56. };
  57. };
  58. };
  59. class Air
  60. {
  61. target = "Air";
  62. targetType = 2;
  63. class Actions
  64. {
  65. class ScanLock: ExileAbstractAction
  66. {
  67. title = "Scan Lock";
  68. condition = "('Exile_Item_ThermalScannerPro' in (magazines player)) && ((locked ExileClientInteractionObject) != 1) && !ExilePlayerInSafezone";
  69. action = "_this call ExileClient_object_lock_scan";
  70. };
  71. class Lock: ExileAbstractAction
  72. {
  73. title = "Lock";
  74. condition = "((locked ExileClientInteractionObject) isEqualTo 0) && ((locked ExileClientInteractionObject) != 1)";
  75. action = "true spawn ExileClient_object_lock_toggle";
  76. };
  77. class Unlock: ExileAbstractAction
  78. {
  79. title = "Unlock";
  80. condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  81. action = "false spawn ExileClient_object_lock_toggle";
  82. };
  83. class Hotwire: ExileAbstractAction
  84. {
  85. title = "Hotwire";
  86. condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  87. action = "['HotwireVehicle', _this select 0] call ExileClient_action_execute";
  88. };
  89. class Repair: ExileAbstractAction
  90. {
  91. title = "Repair";
  92. condition = "true";
  93. action = "['RepairVehicle', _this select 0] call ExileClient_action_execute";
  94. };
  95. class Flip: ExileAbstractAction
  96. {
  97. title = "Flip";
  98. condition = "call ExileClient_object_vehicle_interaction_show";
  99. action = "_this call ExileClient_object_vehicle_flip";
  100. };
  101. class Refuel: ExileAbstractAction
  102. {
  103. title = "Refuel";
  104. condition = "call ExileClient_object_vehicle_interaction_show";
  105. action = "_this call ExileClient_object_vehicle_refuel";
  106. };
  107. class DrainFuel: ExileAbstractAction
  108. {
  109. title = "Drain Fuel";
  110. condition = "call ExileClient_object_vehicle_interaction_show";
  111. action = "_this call ExileClient_object_vehicle_drain";
  112. };
  113. class RotateLeft: ExileAbstractAction
  114. {
  115. title = "Rotate Left";
  116. condition = "call ExileClient_object_vehicle_interaction_show";
  117. action = "[ExileClientInteractionObject,-15] call ExileClient_object_vehicle_rotate";
  118. };
  119. class RotateRight: ExileAbstractAction
  120. {
  121. title = "Rotate Right";
  122. condition = "call ExileClient_object_vehicle_interaction_show";
  123. action = "[ExileClientInteractionObject,15] call ExileClient_object_vehicle_rotate";
  124. };
  125. };
  126. };
  127. class Safe
  128. {
  129. targetType = 2;
  130. target = "Exile_Container_Safe";
  131. class Actions
  132. {
  133. class ScanLock: ExileAbstractAction
  134. {
  135. title = "Scan Lock";
  136. condition = "('Exile_Item_ThermalScannerPro' in (magazines player)) && !((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 1) && !ExilePlayerInSafezone";
  137. action = "_this call ExileClient_object_lock_scan";
  138. };
  139. class Lock : ExileAbstractAction
  140. {
  141. title = "Lock";
  142. condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 0)";
  143. action = "true spawn ExileClient_object_lock_toggle";
  144. };
  145. class Unlock : ExileAbstractAction
  146. {
  147. title = "Unlock";
  148. condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo -1)";
  149. action = "false spawn ExileClient_object_lock_toggle";
  150. };
  151. class Pack : ExileAbstractAction
  152. {
  153. title = "Pack";
  154. condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 0)";
  155. action = "_this spawn ExileClient_object_container_pack";
  156. };
  157. class SetPinCode : ExileAbstractAction
  158. {
  159. title = "Set PIN";
  160. condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 0)";
  161. action = "_this spawn ExileClient_object_lock_setPin";
  162. };
  163. };
  164. };
  165. class Laptop
  166. {
  167. targetType = 2;
  168. target = "Exile_Construction_Laptop_Static";
  169. class Actions
  170. {
  171. class CameraSystem: ExileAbstractAction
  172. {
  173. title = "CCTV Access";
  174. condition = "((ExileClientInteractionObject animationPhase 'LaptopLidRotation') >= 0.5)";
  175. action = "_this call ExileClient_gui_baseCamera_show";
  176. };
  177. class VirtualGarage: ExileAbstractAction
  178. {
  179. title = "Access Virtual Garage";
  180. condition = "((ExileClientInteractionObject animationPhase 'LaptopLidRotation') >= 0.5)";
  181. action = "call ExileClient_VirtualGarage_AccessGarage";
  182. };
  183. };
  184. };
  185. class SupplyBox
  186. {
  187. targetType = 2;
  188. target = "Exile_Container_SupplyBox";
  189. class Actions
  190. {
  191. class Mount: ExileAbstractAction
  192. {
  193. title = "Mount";
  194. condition = "(isNull (attachedTo ExileClientInteractionObject)) && ((ExileClientInteractionObject getvariable ['ExileOwnerUID',1]) isEqualTo 1)";
  195. action = "_this call ExileClient_object_supplyBox_mount";
  196. };
  197. class Install: ExileAbstractAction
  198. {
  199. title = "Install";
  200. condition = "isNull (attachedTo ExileClientInteractionObject) && ((ExileClientInteractionObject getvariable ['ExileOwnerUID',1]) isEqualTo 1)";
  201. action = "_this call ExileClient_object_supplyBox_install";
  202. };
  203. class Unmount: ExileAbstractAction
  204. {
  205. title = "Unmount";
  206. condition = "!(isNull (attachedTo ExileClientInteractionObject)) && ((ExileClientInteractionObject getvariable ['ExileOwnerUID',1]) isEqualTo 1)";
  207. action = "_this call ExileClient_object_supplyBox_unmount";
  208. };
  209. };
  210. };
  211. class Construction
  212. {
  213. targetType = 2;
  214. target = "Exile_Construction_Abstract_Static";
  215. class Actions
  216. {
  217. class ScanLock: ExileAbstractAction
  218. {
  219. title = "Scan Lock";
  220. condition = "('Exile_Item_ThermalScannerPro' in (magazines player)) && !((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 1)";
  221. action = "_this call ExileClient_object_lock_scan";
  222. };
  223. class Unlock : ExileAbstractAction
  224. {
  225. title = "Unlock";
  226. condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo -1)";
  227. action = "false spawn ExileClient_object_lock_toggle";
  228. };
  229. class Lock : ExileAbstractAction
  230. {
  231. title = "Lock";
  232. condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 0)";
  233. action = "true spawn ExileClient_object_lock_toggle";
  234. };
  235. class Move: ExileAbstractAction
  236. {
  237. title = "Move";
  238. condition = "true";
  239. action = "_this spawn ExileClient_object_construction_move";
  240. };
  241. class Deconstruct: ExileAbstractAction
  242. {
  243. title = "Remove";
  244. condition = "true";
  245. action = "_this spawn ExileClient_object_construction_deconstruct";
  246. };
  247. class AddALock : ExileAbstractAction
  248. {
  249. title = "Add a Lock";
  250. condition = "call ExileClient_object_construction_lockAddShow";
  251. action = "_this spawn ExileClient_object_construction_lockAdd";
  252. };
  253. class Upgrade : ExileAbstractAction
  254. {
  255. title = "Upgrade";
  256. condition = "call ExileClient_object_construction_upgradeShow";
  257. action = "_this call ExileClient_object_construction_upgrade";
  258. };
  259. class Grind : ExileAbstractAction
  260. {
  261. title = "Grind Lock";
  262. condition = "call ExAd_fnc_canGrindLock";
  263. action = "_this spawn ExAd_fnc_grindLock";
  264. };
  265. class RestoreLock : ExileAbstractAction
  266. {
  267. title = "Restore Lock";
  268. condition = "_object call ExAd_fnc_canRestoreLock";
  269. action = "_this spawn ExAd_fnc_restoreLock";
  270. };
  271. };
  272. };
  273. class Container
  274. {
  275. targetType = 2;
  276. target = "Exile_Container_Abstract";
  277. class Actions
  278. {
  279. class Pack
  280. {
  281. title = "Pack";
  282. condition = "!((typeOf ExileClientInteractionObject) isEqualTo 'Exile_Container_SupplyBox')";
  283. action = "_this spawn ExileClient_object_container_pack";
  284. };
  285. class Move: ExileAbstractAction
  286. {
  287. title = "Move";
  288. condition = "(getNumber(configFile >> 'CfgVehicles' >> typeOf ExileClientInteractionObject >> 'exileIsLockable') isEqualTo 0) || ((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 0)";
  289. action = "_this spawn ExileClient_object_construction_move";
  290. };
  291. };
  292. };
  293. class Flag
  294. {
  295. targetType = 2;
  296. target = "Exile_Construction_Flag_Static";
  297. class Actions
  298. {
  299. class Upgrade: ExileAbstractAction
  300. {
  301. title = "Upgrade";
  302. condition = "true";
  303. action = "_this call ExileClient_gui_upgradeterritoryDialog_request";
  304. };
  305. };
  306. };
  307. class Boat
  308. {
  309. targetType = 2;
  310. target = "Ship";
  311. class Actions
  312. {
  313. class Lock: ExileAbstractAction
  314. {
  315. title = "Lock";
  316. condition = "((locked ExileClientInteractionObject) isEqualTo 0) && ((locked ExileClientInteractionObject) != 1)";
  317. action = "true spawn ExileClient_object_lock_toggle";
  318. };
  319. class Unlock: ExileAbstractAction
  320. {
  321. title = "Unlock";
  322. condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  323. action = "false spawn ExileClient_object_lock_toggle";
  324. };
  325. class Hotwire: ExileAbstractAction
  326. {
  327. title = "Hotwire";
  328. condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  329. action = "['HotwireVehicle', _this select 0] call ExileClient_action_execute";
  330. };
  331. class Repair: ExileAbstractAction
  332. {
  333. title = "Repair";
  334. condition = "true";
  335. action = "['RepairVehicle', _this select 0] call ExileClient_action_execute";
  336. };
  337. class Refuel: ExileAbstractAction
  338. {
  339. title = "Refuel";
  340. condition = "call ExileClient_object_vehicle_interaction_show";
  341. action = "_this call ExileClient_object_vehicle_refuel";
  342. };
  343. class DrainFuel: ExileAbstractAction
  344. {
  345. title = "Drain Fuel";
  346. condition = "call ExileClient_object_vehicle_interaction_show";
  347. action = "_this call ExileClient_object_vehicle_drain";
  348. };
  349. class Push: ExileAbstractAction
  350. {
  351. title = "Fus Ro Dah!";
  352. condition = "((crew ExileClientInteractionObject) isEqualTo [])";
  353. action = "_this call ExileClient_object_vehicle_push";
  354. };
  355. };
  356. };
  357. class Bikes
  358. {
  359. targetType = 2;
  360. target = "Bicycle";
  361. class Actions
  362. {
  363. class Flip: ExileAbstractAction
  364. {
  365. title = "Flip";
  366. condition = "true";
  367. action = "_this call ExileClient_object_vehicle_flip";
  368. };
  369. };
  370. };
  371. class Player
  372. {
  373. targetType = 2;
  374. target = "Exile_Unit_Player";
  375. class Actions
  376. {
  377. class Free: ExileAbstractAction
  378. {
  379. title = "Free";
  380. condition = "(alive ExileClientInteractionObject) && (ExileClientInteractionObject getVariable ['ExileIsHandcuffed', false]) && !ExileClientIsHandcuffed";
  381. action = "_this call ExileClient_object_handcuffs_free";
  382. };
  383. class Search: ExileAbstractAction
  384. {
  385. title = "Search Gear";
  386. condition = "(alive ExileClientInteractionObject) && (ExileClientInteractionObject getVariable ['ExileIsHandcuffed', false]) && !ExileClientIsHandcuffed";
  387. action = "_this call ExileClient_object_handcuffs_searchGear";
  388. };
  389.  
  390. class Identify: ExileAbstractAction
  391. {
  392. title = "Identify Body";
  393. condition = "!(alive ExileClientInteractionObject)";
  394. action = "_this call ExileClient_object_player_identifyBody";
  395. };
  396. class Revive: ExileAbstractAction
  397. {
  398. title = "Perform CPR";
  399. condition = "(!(alive ExileClientInteractionObject) && (ExileClientInteractionObject getVariable ['EnigmaRevivePermitted', true]) && (magazines player find 'Exile_Item_Defibrillator' >= 0))";
  400. action = "_this spawn Enigma_RevivePlyr";
  401. };
  402. };
  403. };
  404. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement