Advertisement
Guest User

Untitled

a guest
Oct 6th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.49 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,2,1],5,0.1,false,false,false,false,false,true,true,["MMT_Civ"],[],["ItemToolbox"],"true"],
  30. // deploy fortifications from etool 3 meters in front of player that are permanent until server restart
  31. //["ItemEtool",[0,3,0],5,-1,false,true,false,true,false,false,["Land_fort_rampart","Fort_StoneWall_EP1","Land_fort_bagfence_round"],[],["ItemEtool"],"true"],
  32. // deploy a permanent helicopter from ruby 5 meters in front of player that can be re-packed by anyone as long as it's under 10% damage
  33. //["ItemRuby",[0,5,2],7,0.1,true,true,true,true,false,true,true,["AH6X_DZ","UH1Y_DZ"],[],["ItemRuby"],"true"],
  34. // deploy military housing in front of the player that is permanent but can't be re-packed by anyone
  35. //["ItemEmerald",[0,8,0],10,-1,false,false,false,true,true,false,false,["Barrack2","Land_fortified_nest_small_EP1"],[],["ItemEmerald"],"!(isNull player) && {(getPlayerUID player) in DZE_DEPLOYABLE_ADMINS}"],
  36. //["ItemCitrine",[0,1,1],5,1,false,true,false,true,true,false,false,["Baseball","Loudspeaker","MetalBucket","Misc_Videoprojektor","Misc_Videoprojektor_platno","Misc_Wall_lamp","Notebook","SatPhone","Radio","SmallTV","Suitcase"],[],["ItemCitrine"],"true"],
  37. // deploy some housing items from parts piles in front of the player that are permanent but can be re-packed by anyone
  38. //["PartGeneric",[0,2,0],5,1,true,true,false,true,true,false,false,["Desk","FoldChair","FoldTable","SmallTable","Barrel1","Garbage_can"],[],["PartGeneric"],"true"],
  39. // deploy some housing items from wood piles in front of the player that are permanent but can be re-packed by anyone
  40. //["PartWoodPile",[0,2,0],5,1,true,true,false,true,true,false,false,["Land_Rack_EP1","Land_Table_EP1","Land_Shelf_EP1","WoodChair","Park_bench2","Park_bench1"],[],["PartWoodPile"],"true"],
  41. // deploy concrete barricades from cinderblocks 2m in front of the player, that are permanent and can only be re-packed by the person who placed them
  42. //["CinderBlocks",[0,2,0],5,1,false,true,false,false,false,true,true,["Hhedgehog_concrete","Land_CncBlock","Land_CncBlock_Stripes"],[],["CinderBlocks"],"true"],
  43. // deploy a mozzie in front of the player from a rotor/engine/fueltank
  44. //["ItemToolbox",[0,5,2],7,0.1,true,true,false,true,false,true,true,["CSJ_GyroC"],[],["PartVRotor","PartEngine","PartFueltank"],"true"],
  45. //["ItemToolbox",[0,10,0],5,-1,false,true,false,true,true,false,false,["Land_Mil_Guardhouse"],[],["cinder_wall_kit","cinder_wall_kit","cinder_wall_kit","cinder_door_kit"],"false"],
  46. //["ItemCrowbar",[0,6,0],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"]
  47. //["ItemEtool",[0,8,0],5,-1,false,true,true,true,false,false,["Land_Fort_Watchtower"],[],["forest_large_net_kit","ItemSandbagExLarge5x","ItemSandbagExLarge5x","ItemSandbagExLarge5x"],"true"],
  48. //["ItemEtool",[0,8,0],5,-1,false,true,true,true,false,false,["Land_fortified_nest_big"],[],["ItemSandbagExLarge5x","ItemSandbagExLarge5x","ItemSandbagExLarge5x"],"true"],
  49. //["PartWoodPile",[0,2,0],5,1,true,true,true,true,false,false,["Pile_of_wood"],[],["PartWoodPile","PartWoodPile","PartWoodPile","PartWoodPile","PartWoodPile"],"true"],
  50. //["ItemSapphire",[0,2,0],5,1,true,true,true,true,false,false,["DSHKM_CDF","M2StaticMG","SearchLight_CDF"],[],["ItemSapphire"],"true"]
  51. ];
  52.  
  53. // **DZE_DEPLOYABLE_NAME_MAP format
  54. //
  55. // DZE_DEPLOYABLE_NAME_MAP = [
  56. // [_class,_name],
  57. // [_class,_name],
  58. // [... more ...]
  59. // ];
  60. //
  61. // parameter | description | type | example
  62. // --------------|---------------------------------------------------------------------|--------|--------
  63. // _class | class name of the item you want to replace the name of | string | "Notebook"
  64. // _name | new name to display when right clicking | string | "Macbook Pro"
  65. //
  66. DZE_DEPLOYABLE_NAME_MAP = [
  67. ["Notebook","Macbook Pro"]
  68. ];
  69.  
  70. DZE_DEPLOYABLE_ADMINS = [];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement