Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // **FORMAT** -- (note no comma after last array entry)
- //
- // DZE_DEPLOYABLES_CONFIG = [
- // [_clickItem,_deployOffset,_packDistance,_damageLimit,_packAny,_cargo,_ammo,_hive,_plot,_simulation,_road,_deployables,_near,_parts,_condition],
- // [_clickItem,_deployOffset,_packDistance,_damageLimit,_packAny,_cargo,_ammo,_hive,_plot,_simulation,_road,_deployables,_near,_parts,_condition],
- // [...more stuff here...]
- // ];
- //
- // parameter | description | type | example
- // --------------|---------------------------------------------------------------------|--------|--------
- // _clickItem | class name of the item to click on | string | "ItemToolbox"
- // _deployOffset | [_side,_front,_up] array to offset the deployable when buiding | array | [0,2,1]
- // _packDistance | how close does the packer need to be to pack the object? | number | 5
- // _damageLimit | item can't be repacked if damage is > this. (-1 = no re-packing) | number | 0.1
- // _packAny | can anyone repack the deployable? | bool | false
- // _cargo | clear the cargo of the deployable? | bool | false
- // _ammo | should vehicle ammo be cleared? (does not persist through restart) | bool | true
- // _hive | write deployable to database? | bool | false
- // _plot | require a plot from the owner to build the deployable? | bool | false
- // _simulation | enable simulation (movement/damage) for the object? (true for cars) | bool | true
- // _road | enable road building for this object? | bool | true
- // _deployables | array of class names that can be deployed with this method | array | ["MMT_Civ"]
- // _near | array of items required nearby to build (workshop/fire/fueltank) | array | []
- // _parts | array of parts required to build (will be taken from player) | array | ["ItemToolbox"]
- // _condition | string of code to evaluate to determine whether action is shown | string | "!(isNull player) && {(getPlayerUID player) in DZE_DEPLOYABLE_ADMINS}"
- DZE_DEPLOYABLES_CONFIG = [
- // 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
- ["ItemToolbox", [0,5,1],5,1,false,false,false,false,false,true,true,["MMT_Civ"],[],["ItemToolbox"],"true"],
- ["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"],
- ["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"],
- ["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"],
- ["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"],
- ["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"],
- ["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"],
- ["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"],
- ["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"],
- ["CinderBlocks", [0,5,1],5,-1,false,true,false,true,true,true,false, ["MAP_Concrete_Ramp","Land_CncBlock","Land_CncBlock_Stripes"],[],["CinderBlocks"],"true"],
- ["ItemLightBulb",[0,3,1],5,-1,false,false,false,true,true,true,false,["ASC_runway_YellowlightB","ASC_runway_BluelightB"],[],["ItemLightBulb"],"true"],
- ["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"],
- ["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"]
- ];
- // **DZE_DEPLOYABLE_NAME_MAP format
- //
- // DZE_DEPLOYABLE_NAME_MAP = [
- // [_class,_name],
- // [_class,_name],
- // [... more ...]
- // ];
- //
- // parameter | description | type | example
- // --------------|---------------------------------------------------------------------|--------|--------
- // _class | class name of the item you want to replace the name of | string | "Notebook"
- // _name | new name to display when right clicking | string | "Macbook Pro"
- //
- DZE_DEPLOYABLE_NAME_MAP = [
- ["Notebook","Macbook Pro"]
- ];
- DZE_DEPLOYABLE_ADMINS = [ ];
Advertisement
Add Comment
Please, Sign In to add comment