SHARE
TWEET

cfginteractionmenus

TheOnlyRydawg Mar 14th, 2017 259 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class CfgInteractionMenus
  2. {
  3.     class Car
  4.     {
  5.         targetType = 2;
  6.         target = "Car";
  7.  
  8.         class Actions
  9.         {  
  10.             // Locks a vehicle
  11.             class Lock: ExileAbstractAction
  12.             {
  13.                 title = "Lock";
  14.                 condition = "((locked ExileClientInteractionObject) isEqualTo 0) && ((locked ExileClientInteractionObject) != 1)";
  15.                 action = "true spawn ExileClient_object_lock_toggle";
  16.             };
  17.  
  18.             // Unlocks a vehicle
  19.             class Unlock: ExileAbstractAction
  20.             {
  21.                 title = "Unlock";
  22.                 condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  23.                 action = "false spawn ExileClient_object_lock_toggle";
  24.             };
  25.  
  26.             // Repairs a vehicle to 100%. Requires Duckttape
  27.             class Repair: ExileAbstractAction
  28.             {
  29.                 title = "Repair";
  30.                 condition = "true";
  31.                 action = "['RepairVehicle', _this select 0] call ExileClient_action_execute";
  32.             };
  33.  
  34.             // Hot-wires a vehicle
  35.             class Hotwire: ExileAbstractAction
  36.             {
  37.                 title = "Hotwire";
  38.                 condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  39.                 action = "['HotwireVehicle', _this select 0] call ExileClient_action_execute";
  40.             };
  41.  
  42.             // Flips a vehicle so the player doesnt have to call an admin
  43.             // Check if vector up is fucked
  44.             class Flip: ExileAbstractAction
  45.             {
  46.                 title = "Flip";
  47.                 condition = "call ExileClient_object_vehicle_interaction_show";
  48.                 action = "_this call ExileClient_object_vehicle_flip";
  49.             };
  50.  
  51.             // Fills fuel from a can into a car
  52.             class Refuel: ExileAbstractAction
  53.             {
  54.                 title = "Refuel";
  55.                 condition = "call ExileClient_object_vehicle_interaction_show";
  56.                 action = "_this call ExileClient_object_vehicle_refuel";
  57.             };
  58.  
  59.             // Drains fuel from a car into an empty jerry can
  60.             class DrainFuel: ExileAbstractAction
  61.             {
  62.                 title = "Drain Fuel";
  63.                 condition = "call ExileClient_object_vehicle_interaction_show";
  64.                 action = "_this call ExileClient_object_vehicle_drain";
  65.             };
  66.         };
  67.     };
  68.  
  69.     class Air
  70.     {
  71.         target = "Air";
  72.         targetType = 2;
  73.  
  74.         class Actions
  75.         {
  76.             class ScanLock: ExileAbstractAction
  77.             {
  78.                 title = "Scan Lock";
  79.                 condition = "('Exile_Item_ThermalScannerPro' in (magazines player)) && ((locked ExileClientInteractionObject) != 1) && !ExilePlayerInSafezone";
  80.                 action = "_this call ExileClient_object_lock_scan";
  81.             };
  82.  
  83.             // Locks a vehicle
  84.             class Lock: ExileAbstractAction
  85.             {
  86.                 title = "Lock";
  87.                 condition = "((locked ExileClientInteractionObject) isEqualTo 0) && ((locked ExileClientInteractionObject) != 1)";
  88.                 action = "true spawn ExileClient_object_lock_toggle";
  89.             };
  90.  
  91.             // Unlocks a vehicle
  92.             class Unlock: ExileAbstractAction
  93.             {
  94.                 title = "Unlock";
  95.                 condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  96.                 action = "false spawn ExileClient_object_lock_toggle";
  97.             };
  98.  
  99.             // Hot-wires a vehicle
  100.             class Hotwire: ExileAbstractAction
  101.             {
  102.                 title = "Hotwire";
  103.                 condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  104.                 action = "['HotwireVehicle', _this select 0] call ExileClient_action_execute";
  105.             };
  106.  
  107.             // Repairs a vehicle to 100%. Requires Duckttape
  108.             class Repair: ExileAbstractAction
  109.             {
  110.                 title = "Repair";
  111.                 condition = "true";
  112.                 action = "['RepairVehicle', _this select 0] call ExileClient_action_execute";
  113.             };
  114.  
  115.             // Flips a vehicle so the player doesnt have to call an admin
  116.             // Check if vector up is fucked
  117.             class Flip: ExileAbstractAction
  118.             {
  119.                 title = "Flip";
  120.                 condition = "call ExileClient_object_vehicle_interaction_show";
  121.                 action = "_this call ExileClient_object_vehicle_flip";
  122.             };
  123.  
  124.             // Fills fuel from a can into a car
  125.             class Refuel: ExileAbstractAction
  126.             {
  127.                 title = "Refuel";
  128.                 condition = "call ExileClient_object_vehicle_interaction_show";
  129.                 action = "_this call ExileClient_object_vehicle_refuel";
  130.             };
  131.  
  132.             // Drains fuel from a car into an empty jerry can
  133.             class DrainFuel: ExileAbstractAction
  134.             {
  135.                 title = "Drain Fuel";
  136.                 condition = "call ExileClient_object_vehicle_interaction_show";
  137.                 action = "_this call ExileClient_object_vehicle_drain";
  138.             };
  139.  
  140.             class RotateLeft: ExileAbstractAction
  141.             {
  142.                 title = "Rotate Left"; 
  143.                 condition = "call ExileClient_object_vehicle_interaction_show";
  144.                 action = "[ExileClientInteractionObject,-15] call ExileClient_object_vehicle_rotate";
  145.             };
  146.  
  147.             class RotateRight: ExileAbstractAction
  148.             {
  149.                 title = "Rotate Right";
  150.                 condition = "call ExileClient_object_vehicle_interaction_show";
  151.                 action = "[ExileClientInteractionObject,15] call ExileClient_object_vehicle_rotate";
  152.             };
  153.         };
  154.     };
  155.  
  156.     class Safe
  157.     {
  158.         targetType = 2;
  159.         target = "Exile_Container_Safe";
  160.  
  161.         class Actions
  162.         {
  163.             /*
  164.             class ScanLock: ExileAbstractAction
  165.             {
  166.                 title = "Scan Lock";
  167.                 condition = "('Exile_Item_ThermalScannerPro' in (magazines player)) && !((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 1) && !ExilePlayerInSafezone";
  168.                 action = "_this call ExileClient_object_lock_scan";
  169.             };
  170.             */
  171.            
  172.             // Locks a vehicle
  173.             class Lock : ExileAbstractAction
  174.             {
  175.                 title = "Lock";
  176.                 condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 0)";
  177.                 action = "true spawn ExileClient_object_lock_toggle";
  178.             };
  179.  
  180.             class Unlock : ExileAbstractAction
  181.             {
  182.                 title = "Unlock";
  183.                 condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo -1)";
  184.                 action = "false spawn ExileClient_object_lock_toggle";
  185.             };
  186.  
  187.             class Pack : ExileAbstractAction
  188.             {
  189.                 title = "Pack";
  190.                 condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 0)";
  191.                 action = "_this spawn ExileClient_object_container_pack";
  192.             };
  193.  
  194.             class SetPinCode : ExileAbstractAction
  195.             {
  196.                 title = "Set PIN";
  197.                 condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 0)";
  198.                 action = "_this spawn ExileClient_object_lock_setPin";
  199.             };
  200.         };
  201.     };
  202.  
  203.     class Laptop
  204.     {
  205.         targetType = 2;
  206.         target = "Exile_Construction_Laptop_Static";
  207.  
  208.         class Actions
  209.         {
  210.             class CameraSystem: ExileAbstractAction
  211.             {
  212.                 title = "CCTV Access";
  213.                 condition = "((ExileClientInteractionObject animationPhase 'LaptopLidRotation') >= 0.5)";
  214.                 action = "_this call ExileClient_gui_baseCamera_show";
  215.             };
  216.         };
  217.     };
  218.  
  219.     class SupplyBox
  220.     {
  221.         targetType = 2;
  222.         target = "Exile_Container_SupplyBox";
  223.  
  224.         class Actions
  225.         {
  226.             class Mount: ExileAbstractAction
  227.             {
  228.                 title = "Mount";
  229.                 condition = "(isNull (attachedTo ExileClientInteractionObject)) && ((ExileClientInteractionObject getvariable ['ExileOwnerUID',1]) isEqualTo 1)";
  230.                 action = "_this call ExileClient_object_supplyBox_mount";
  231.             };
  232.  
  233.             class Install: ExileAbstractAction
  234.             {
  235.                 title = "Install";
  236.                 condition = "isNull (attachedTo ExileClientInteractionObject) && ((ExileClientInteractionObject getvariable ['ExileOwnerUID',1]) isEqualTo 1)";
  237.                 action = "_this call ExileClient_object_supplyBox_install";
  238.             };
  239.  
  240.             class Unmount: ExileAbstractAction
  241.             {
  242.                 title = "Unmount";
  243.                 condition = "!(isNull (attachedTo ExileClientInteractionObject)) && ((ExileClientInteractionObject getvariable ['ExileOwnerUID',1]) isEqualTo 1)";
  244.                 action = "_this call ExileClient_object_supplyBox_unmount";
  245.             };
  246.         };
  247.     };
  248.  
  249.     class Construction
  250.     {
  251.         targetType = 2;
  252.         target = "Exile_Construction_Abstract_Static";
  253.  
  254.         class Actions
  255.         {
  256.             class ScanLock: ExileAbstractAction
  257.             {
  258.                 title = "Scan Lock";
  259.                 condition = "('Exile_Item_ThermalScannerPro' in (magazines player)) && !((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 1)";
  260.                 action = "_this call ExileClient_object_lock_scan";
  261.             };
  262.  
  263.             class Unlock : ExileAbstractAction
  264.             {
  265.                 title = "Unlock";
  266.                 condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo -1)";
  267.                 action = "false spawn ExileClient_object_lock_toggle";
  268.             };
  269.  
  270.             class Lock : ExileAbstractAction
  271.             {
  272.                 title = "Lock";
  273.                 condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 0)";
  274.                 action = "true spawn ExileClient_object_lock_toggle";
  275.             };
  276.  
  277.             // Picks up the construction so you can move it
  278.             class Move: ExileAbstractAction
  279.             {
  280.                 title = "Move";
  281.                 condition = "call ExileClient_util_world_isInOwnTerritory";
  282.                 action = "_this spawn ExileClient_object_construction_move";
  283.             };
  284.  
  285.             // Removes the construction.
  286.             class Deconstruct: ExileAbstractAction
  287.             {
  288.                 title = "Remove";
  289.                 condition = "call ExileClient_util_world_isInOwnTerritory";
  290.                 action = "_this spawn ExileClient_object_construction_deconstruct";
  291.             };
  292.  
  293.             class AddALock : ExileAbstractAction
  294.             {
  295.                 title = "Add a Lock";
  296.                 condition = "call ExileClient_object_construction_lockAddShow";
  297.                 action = "_this spawn ExileClient_object_construction_lockAdd";
  298.             };
  299.  
  300.             class Upgrade : ExileAbstractAction
  301.             {
  302.                 title = "Upgrade";
  303.                 condition = "call ExileClient_object_construction_upgradeShow";
  304.                 action = "_this call ExileClient_object_construction_upgrade";
  305.             };
  306.  
  307.             class MakeBoom : ExileAbstractAction
  308.             {
  309.                 title = "Plant charge";
  310.                 condition = "call ExileClient_system_breaching_condition";
  311.                 action = "_this call ExileClient_system_breaching_action";
  312.             };
  313.  
  314.             class Repair : ExileAbstractAction
  315.             {
  316.                 title = "Repair";
  317.                 condition = "(!((ExileClientInteractionObject getVariable ['ExileConstructionDamage',0]) isEqualTo 0)) && (call ExileClient_util_world_isInOwnTerritory)";
  318.                 action = "_this call ExileClient_object_construction_repair";
  319.             };
  320.  
  321.         };
  322.     };
  323.  
  324.     /*
  325.         Tent, Storage crate etc.
  326.     */
  327.     class Container
  328.     {
  329.         targetType = 2;
  330.         target = "Exile_Container_Abstract";
  331.  
  332.         class Actions
  333.         {
  334.             class Pack
  335.             {
  336.                 title = "Pack";
  337.                 condition = "!((typeOf ExileClientInteractionObject) isEqualTo 'Exile_Container_SupplyBox')";
  338.                 action = "_this spawn ExileClient_object_container_pack";
  339.             };
  340.             // Picks up the container so you can move it
  341.             class Move: ExileAbstractAction
  342.             {
  343.                 title = "Move";
  344.                 condition = "(getNumber(configFile >> 'CfgVehicles' >> typeOf ExileClientInteractionObject >> 'exileIsLockable') isEqualTo 0) || ((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 0)";
  345.                 action = "_this spawn ExileClient_object_construction_move";
  346.             };
  347.         };
  348.     };
  349.  
  350.     class Flag
  351.     {
  352.         targetType = 2;
  353.         target = "Exile_Construction_Flag_Static";
  354.  
  355.         class Actions
  356.         {
  357.             class Manage : ExileAbstractAction
  358.             {
  359.                 title = "Manage";
  360.                 condition = "true";
  361.                 action = "_this call ExileClient_gui_baseManagement_event_show";
  362.             };
  363.             /*
  364.             class StealFlag: ExileAbstractAction
  365.             {
  366.                 title = "Steal Flag";
  367.                 condition = "((ExileClientInteractionObject getvariable ['ExileFlagStolen',1]) isEqualTo 0)";
  368.                 action = "['StealFlag', _this select 0] call ExileClient_action_execute";
  369.             };
  370.             */
  371.             class RestoreFlag: ExileAbstractAction
  372.             {
  373.                 title = "Restore Flag";
  374.                 condition = "((ExileClientInteractionObject getvariable ['ExileFlagStolen',0]) isEqualTo 1)";
  375.                 action = "['restoreFlagRequest', [netID ExileClientInteractionObject]] call ExileClient_system_network_send";
  376.  
  377.             class HackVG : ExileAbstractAction
  378.             {
  379.             title = "Hack Virtual Garage";
  380.             condition = "call ExAd_fnc_canHackVG";
  381.             action = "_this spawn ExAd_fnc_startHack";
  382.  
  383.             };
  384.         };
  385.     };
  386.  
  387.     class Boat
  388.     {
  389.         targetType = 2;
  390.         target = "Ship";
  391.  
  392.         class Actions
  393.         {
  394.             // Locks a vehicle
  395.             class Lock: ExileAbstractAction
  396.             {
  397.                 title = "Lock";
  398.                 condition = "((locked ExileClientInteractionObject) isEqualTo 0) && ((locked ExileClientInteractionObject) != 1)";
  399.                 action = "true spawn ExileClient_object_lock_toggle";
  400.             };
  401.  
  402.             // Unlocks a vehicle
  403.             class Unlock: ExileAbstractAction
  404.             {
  405.                 title = "Unlock";
  406.                 condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  407.                 action = "false spawn ExileClient_object_lock_toggle";
  408.             };
  409.  
  410.             // Hot-wires a vehicle
  411.             class Hotwire: ExileAbstractAction
  412.             {
  413.                 title = "Hotwire";
  414.                 condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
  415.                 action = "['HotwireVehicle', _this select 0] call ExileClient_action_execute";
  416.             };
  417.  
  418.             // Repairs a vehicle to 100%. Requires Duckttape
  419.             class Repair: ExileAbstractAction
  420.             {
  421.                 title = "Repair";
  422.                 condition = "true";
  423.                 action = "['RepairVehicle', _this select 0] call ExileClient_action_execute";
  424.             };
  425.  
  426.             // Fills fuel from a can into a car
  427.             class Refuel: ExileAbstractAction
  428.             {
  429.                 title = "Refuel";
  430.                 condition = "call ExileClient_object_vehicle_interaction_show";
  431.                 action = "_this call ExileClient_object_vehicle_refuel";
  432.             };
  433.  
  434.             // Drains fuel from a car into an empty jerry can
  435.             class DrainFuel: ExileAbstractAction
  436.             {
  437.                 title = "Drain Fuel";
  438.                 condition = "call ExileClient_object_vehicle_interaction_show";
  439.                 action = "_this call ExileClient_object_vehicle_drain";
  440.             };
  441.  
  442.             // Pushes a boat into look direction to move into water
  443.             class Push: ExileAbstractAction
  444.             {
  445.                 title = "Fus Ro Dah!";
  446.                 condition = "((crew ExileClientInteractionObject) isEqualTo [])";
  447.                 action = "_this call ExileClient_object_vehicle_push";
  448.             };
  449.         };
  450.     };
  451.  
  452.     class Bikes
  453.     {
  454.         targetType = 2;
  455.         target = "Bicycle";
  456.  
  457.         class Actions
  458.         {
  459.             class Flip: ExileAbstractAction
  460.             {
  461.                 title = "Flip";
  462.                 condition = "true";
  463.                 action = "_this call ExileClient_object_vehicle_flip";
  464.             };
  465.         };
  466.     };
  467.  
  468.     class Player
  469.     {
  470.         targetType = 2;
  471.         target = "Exile_Unit_Player";
  472.  
  473.         class Actions
  474.         {
  475.             class Free: ExileAbstractAction
  476.             {
  477.                 title = "Free";
  478.                 condition = "(alive ExileClientInteractionObject) && (ExileClientInteractionObject getVariable ['ExileIsHandcuffed', false]) && !ExileClientIsHandcuffed";
  479.                 action = "_this call ExileClient_object_handcuffs_free";
  480.             };
  481.            
  482.  
  483.             class Identify: ExileAbstractAction
  484.             {
  485.                 title = "Identify Body";
  486.                 condition = "!(alive ExileClientInteractionObject)";
  487.                 action = "_this call ExileClient_object_player_identifyBody";
  488.             };
  489.            
  490.             class HideCorpse: ExileAbstractAction
  491.             {
  492.                 title = "Hide Body";
  493.                 condition = "!(alive ExileClientInteractionObject) && ('Exile_Melee_Shovel' isEqualTo (currentWeapon player))";
  494.                 action = "['HideBody', (_this select 0)] call ExileClient_action_execute";
  495.             };
  496.         };
  497.     };
  498. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top