ElDubya

config.sqf

Feb 20th, 2016
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 6.10 KB | None | 0 0
  1. //  **FORMAT** -- (note no comma after last array entry)
  2. //
  3. //  DZE_DEPLOYABLES_CONFIG = [
  4. //      [_clickItem,_deployOffset,_packDistance,_damageLimit,_packAny,_cargo,_ammo,_hive,_plot,_simulation,_road,_deployables,_near,_parts,_condition],
  5. //      [_clickItem,_deployOffset,_packDistance,_damageLimit,_packAny,_cargo,_ammo,_hive,_plot,_simulation,_road,_deployables,_near,_parts,_condition],
  6. //      [...more stuff here...]
  7. //  ];
  8. //    
  9. //  parameter    | description                                                         |  type  | example
  10. // --------------|---------------------------------------------------------------------|--------|--------
  11. // _clickItem    | class name of the item to click on                                  | string | "ItemToolbox"
  12. // _deployOffset | [_side,_front,_up] array to offset the deployable when buiding      | array  | [0,2,1]
  13. // _packDistance | how close does the packer need to be to pack the object?            | number | 5
  14. // _damageLimit  | item can't be repacked if damage is > this. (-1 = no re-packing)    | number | 0.1
  15. // _packAny      | can anyone repack the deployable?                                   | bool   | false
  16. // _cargo        | clear the cargo of the deployable?                                  | bool   | false
  17. // _ammo         | should vehicle ammo be cleared? (does not persist through restart)  | bool   | true
  18. // _hive         | write deployable to database?                                       | bool   | false
  19. // _plot         | require a plot from the owner to build the deployable?              | bool   | false
  20. // _simulation   | enable simulation (movement/damage) for the object? (true for cars) | bool   | true
  21. // _road         | enable road building for this object?                               | bool   | true
  22. // _deployables  | array of class names that can be deployed with this method          | array  | ["MMT_Civ"]
  23. // _near         | array of items required nearby to build (workshop/fire/fueltank)    | array  | []
  24. // _parts        | array of parts required to build (will be taken from player)        | array  | ["ItemToolbox"]
  25. // _condition    | string of code to evaluate to determine whether action is shown     | string | "!(isNull player) && {(getPlayerUID player) in DZE_DEPLOYABLE_ADMINS}"
  26.  
  27. DZE_DEPLOYABLES_CONFIG = [
  28.     // deploy a non-permanent bike from a toolbox right in front of the player that can be re-packed by the owner as long as it's under 10% damage
  29.     ["ItemToolbox",  [0,5,1],5,1,false,false,false,false,false,true,true,["MMT_Civ"],[],["ItemToolbox"],"true"],
  30.     ["ItemCitrine",  [0,4,1],5,-1,false,true,false,true,true,false,false,["Land_Misc_Well_C_EP1","Land_Misc_Well_L_EP1","MAP_Misc_Well","MAP_Misc_WellPump","MAP_pumpa","Land_Cabinet_EP1","Land_Chest_EP1","MAP_almara","MAP_case_bedroom_b","MAP_case_d","MAP_case_wooden_b","MAP_Dhangar_whiteskrin"],[],["ItemCitrine"],"true"],
  31.     ["ItemAmethyst", [0,6,1],5,-1,false,false,false,true,true,true,false,["HeliH","HeliHCivil","HeliHRescue","MAP_Pristresek","MAP_Bilboard_alkohol","MAP_Bilboard_Beach","MAP_Bilboard_veterans_choice","MAP_Bilboard_vstup_do_CDF","MAP_Bilboard_likery_bardak","MAP_Bilboard_Bienvenudo","MAP_Bilboard_Escape","MAP_Bilboard_zlute_zgrynda"],[],["ItemAmethyst"],"true"],
  32.     ["ItemEmerald",  [0,3,1],5,-1,false,false,false,true,true,true,false,["MAP_Dkamna_bila","MAP_washing_machine","MAP_Kitchenstove_Elec","MAP_fridge","MAP_F_bath","MAP_P_Basin_A","MAP_P_toilet_b_02","MAP_toilet_b"],[],["ItemEmerald"],"true"],
  33.     ["ItemTopaz",    [0,5,1],5,-1,false,false,false,true,true,true,false,["Land_Fort_Watchtower","M2StaticMG","DSHKM_Ins","SearchLight","Hhedgehog_concrete","Hhedgehog_concreteBig","Base_WarfareBBarrier10xTall","Fence_corrugated_plate","Fence_Ind_long","Land_CncBlock","Land_CncBlock_D","Land_CncBlock_Stripes"],[],["ItemTopaz"],"true"],
  34.     ["ItemSapphire", [0,3,1],5,-1,false,false,false,true,true,true,false,["MAP_icebox","MAP_lobby_counter","MAP_pultskasou","MAP_shelf","MAP_vending_machine","MAP_phonebox","MAP_radio_b","MAP_tv_a"],[],["ItemSapphire"],"true"],
  35.     ["ItemObsidian", [0,3,1],5,-1,false,false,false,true,true,true,false,["MAP_nastenka2","MAP_obraz_kancl4","MAP_picture_a","MAP_picture_a_03","MAP_picture_a_05","MAP_picture_b_02","MAP_picture_d","MAP_picture_f"],[],["ItemObsidian"],"true"],
  36.     ["ItemRuby",     [0,3,1],5,-1,false,false,false,true,true,true,false,["Axe_woodblock","Garbage_container","Land_Campfire_burning","Land_cages_EP1","MAP_Misc_PostBox","MAP_psi_bouda","MAP_snowman","MAP_Piskoviste"],[],["ItemRuby"],"true"],
  37.     ["PartWoodPile", [0,2,1],5,-1,false,true,false,true,true,false,false,["Land_Rack_EP1","Land_Table_EP1","Land_Shelf_EP1","WoodChair","Park_bench2","Park_bench1"],[],["PartWoodPile"],"true"],
  38.     ["CinderBlocks", [0,5,1],5,-1,false,true,false,true,true,true,false, ["MAP_Concrete_Ramp","Land_CncBlock","Land_CncBlock_Stripes"],[],["CinderBlocks"],"true"],
  39.     ["ItemLightBulb",[0,3,1],5,-1,false,false,false,true,true,true,false,["ASC_runway_YellowlightB","ASC_runway_BluelightB"],[],["ItemLightBulb"],"true"],
  40.     ["ItemTNK",      [0,15,1],5,-1,false,true,false,true,true,false,false,["MBG_Ausguck","MBG_Werb1","MBG_Werb2","MBG_Werb3","MBG_Werb4","MBG_Werb5","MBG_Werb6","MBG_Werb7","MBG_Werb8","MBG_Werb9","MBG_Werb10","MBG_Tower"],[],["ItemTNK"],"true"],
  41.     ["ItemCrowbar",  [0,7,1],5,-1,false,true,false,true,true,false,false,["Land_Misc_Cargo1Ao","Land_Misc_Cargo1Bo"],[],["metal_panel_kit","metal_panel_kit","metal_panel_kit","metal_panel_kit"],"true"]
  42.     ];
  43.  
  44. // **DZE_DEPLOYABLE_NAME_MAP format
  45. //  
  46. //  DZE_DEPLOYABLE_NAME_MAP = [
  47. //      [_class,_name],
  48. //      [_class,_name],
  49. //      [... more ...]
  50. //  ];
  51. //
  52. //  parameter    | description                                                         |  type  | example
  53. // --------------|---------------------------------------------------------------------|--------|--------
  54. // _class        | class name of the item you want to replace the name of              | string | "Notebook"
  55. // _name         | new name to display when right clicking                             | string | "Macbook Pro"
  56. //
  57. DZE_DEPLOYABLE_NAME_MAP = [
  58.     ["Notebook","Macbook Pro"]
  59. ];
  60.  
  61. DZE_DEPLOYABLE_ADMINS = [ ];
Advertisement
Add Comment
Please, Sign In to add comment