Advertisement
Guest User

CfgExileScavenge

a guest
Nov 26th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 13.14 KB | None | 0 0
  1. /**
  2.  * CfgExileScavenge
  3.  *
  4.  * Author: Steve aka Salutesh
  5.  *
  6.  * Description:
  7.  * These configurations are used within the scavange system to configure the different scavange classes.
  8.  */
  9.  
  10. class Exile_ScavengeClass
  11. {
  12.     animations[] =                                  // List of animations the player unit can play in the scavenge action. Only one animation in this list will be executed.
  13.     {
  14.         "AinvPknlMstpSnonWnonDnon_medic_1"
  15.     };
  16.     type = "ScavengeClass";                         // This is the definition of the scavenge class, there are currently 2 classes (ScavengeClass = Player dont need any requirements,
  17.                                                     // he can just loot the object | CraftingClass = Player needs a special item/tool/weapon to get a item back from the source).
  18.     chance = 100;                                   // % Chance of geting a item from this class/source.
  19.     searchtime = 5;                                 // Searchtime in seconds the player will need to scavenge a object.
  20.     maxitems = 0;                                   // Max items to get from a single scavange.
  21.     icon = "";                                      // Action icon ClassName (Configure your own classes within the provided CfgExileHoldActions.cpp)
  22.     text = "My Scavenge Interaction";               // Action text that gets displayed with the icon.
  23.     models[] = {};                                  // Interaction models (has to be a p3d) that will work with this scavange class.
  24.     recipes[] = {};                                 // Recipes that are used in this class.
  25.     table = "CivillianLowerClass";                  // Loot-table className that will be used for this scavenge class to spawn the items.
  26.  
  27.     // In case of a scavange class that needs a item/model/object/surface this part gets in action.
  28.     // So far this is used for the water class that requires a empty bottle/canister in the players inventory to "fill" it with water and the
  29.     // Cinderblock class where the player needs a weapon (hammer) on his body to get a item back from the source.
  30.     class conditions
  31.     {
  32.         items[] = {};                               // Item conditions (the player needs this item in his inventory or he cant scavanged sucsessful from this source).
  33.         weapons[] = {};                             // Weapon conditions (the player needs this weapon in his inventory/body or he cant scavanged sucsessful from this source).
  34.     };
  35. };
  36.  
  37. class CfgExileScavenge
  38. {
  39.     class FurnitureCommon: Exile_ScavengeClass
  40.     {
  41.         animations[] = {
  42.             "AinvPknlMstpSnonWnonDnon_medic_1"
  43.         };
  44.         type = "ScavengeClass";
  45.         chance = 20;
  46.         searchtime = 5;
  47.         maxitems = 1;
  48.         icon = "Default";
  49.         text = "Search through furniture";
  50.         models[] = {
  51.                         "washing_machine.p3d",
  52.                         "conference_table_a.p3d",
  53.                         "almara.p3d",
  54.                         "postel_manz_kov.p3d",
  55.                         "skrin_bar.p3d",
  56.                         "armchair.p3d",
  57.                         "armchair_big.p3d",
  58.                         "case_wall_unit_part_c.p3d",
  59.                         "case_wall_unit_part_d.p3d",
  60.                         "case_wooden_b.p3d",
  61.                         "case_bedroom_b.p3d",
  62.                         "bed_husbands.p3d",
  63.                         "tabledesk_f.p3d",
  64.                         "table_drawer.p3d",
  65.                         "case_a.p3d",
  66.                         "case_cans_b.p3d",
  67.                         "library_a.p3d",
  68.                         "postel_panelak1.p3d",
  69.                         "postel_panelak2.p3d",
  70.                         "postel_manz_kov.p3d",
  71.                         "dhangar_brownskin.p3d",
  72.                         "office_table_a.p3d",
  73.                         "lobby_case.p3d",
  74.                         "lobby_counter.p3d",
  75.                         "metalcase_01.p3d",
  76.                         "metalcase_02.p3d",
  77.                         "dhangar_psacistul.p3d",
  78.                         "truhla_stara.p3d"
  79.                     };
  80.         table = "ScavengeFurnitureCommon";
  81.     };
  82.     class FurnitureFood: Exile_ScavengeClass
  83.     {
  84.         animations[] = {
  85.             "AinvPknlMstpSnonWnonDnon_medic_1"
  86.         };
  87.         type = "ScavengeClass";
  88.         chance = 10;
  89.         searchtime = 5;
  90.         maxitems = 1;
  91.         icon = "Default";
  92.         text = "Search for food";
  93.         models[] = {
  94.             "kitchenstove_elec.p3d",
  95.             "fridge.p3d"
  96.         };
  97.         table = "ScavengeFurnitureFoodCommon";
  98.     };
  99.     // Able to scavenge from garbage bags, Trask Cans, basically clutter on the map
  100.     class Trash: Exile_ScavengeClass
  101.     {
  102.         animations[] = {
  103.             "AinvPknlMstpSnonWnonDnon_medic_1"
  104.         };
  105.         type = "ScavengeClass";
  106.         chance = 40;
  107.         searchtime = 5;
  108.         maxitems = 2;
  109.         icon = "Default";
  110.         text = "Search through garbage";
  111.         models[] = {
  112.                         "GarbageHeap_01_F.p3d",
  113.                         "GarbageHeap_02_F.p3d",
  114.                         "GarbageHeap_03_F.p3d",
  115.                         "GarbageHeap_04_F.p3d",
  116.                         "box_c.p3d",
  117.                         "clutterCutter_EP1.p3d",
  118.                         "clutterCutter_small_2_EP1.p3d",
  119.                         "clutterCutter_small_EP1.p3d",
  120.                         "drevena_bedna.p3d",
  121.                         "garb_GrondSquare5_PMC.p3d",
  122.                         "garb_GroundLong_PMC.p3d",
  123.                         "garb_GroundSquare3_PMC.p3d",
  124.                         "garb_Heap_PMC.p3d",
  125.                         "garb_junkpile_PMC.p3d",
  126.                         "garb_misc_PMC.p3d",
  127.                         "garb_paleta_PMC.p3d",
  128.                         "garbage_metal.p3d",
  129.                         "garbage_misc.p3d",
  130.                         "garbage_paleta.p3d",
  131.                         "garbage_plastic.p3d",
  132.                         "garbagebags_f.p3d",
  133.                         "garbagebarrel_01_f.p3d",
  134.                         "garbagebin_02_f.p3d",
  135.                         "garbagecontainer_closed_f.p3d",
  136.                         "garbagecontainer_open_f.p3d",
  137.                         "garbagepallet_f.p3d",
  138.                         "garbagewashingmachine_f.p3d",
  139.                         "ground_garbage_long.p3d",
  140.                         "ground_garbage_square3.p3d",
  141.                         "ground_garbage_square5.p3d",
  142.                         "junkpile.p3d",
  143.                         "junkpile_f.p3d",
  144.                         "kontejner.p3d",
  145.                         "luggageheap_01_f.p3d",
  146.                         "luggageheap_02_f.p3d",
  147.                         "luggageheap_03_f.p3d",
  148.                         "luggageheap_04_f.p3d",
  149.                         "luggageheap_05_f.p3d",
  150.                         "paperbox_closed.p3d",
  151.                         "popelnice.p3d",
  152.                         "misc_gcontainer_big.p3d",
  153.                         "misc_tyreheap.p3d"
  154.                     };
  155.         table = "ScavengeTrashCommon";
  156.     };
  157.     // Able to scavenge from wrecks within map, some vehicles still have problems but are noted below.
  158.     class Wrecks: Exile_ScavengeClass
  159.     {
  160.         animations[] = {
  161.             "AinvPknlMstpSnonWnonDnon_medic_1"
  162.         };
  163.         type = "ScavengeClass";
  164.         chance = 30;
  165.         searchtime = 5;
  166.         maxitems = 2;
  167.         icon = "Exile_HA_Icon_Wreck";
  168.         text = "Scavenge Wreck";
  169.         models[] = {
  170.                         "A10Wreck.p3d",
  171.                         "AH1ZWreck.p3d",
  172.                         "AV8BWreck.p3d",
  173.                         "AW159_BAF_Wreck.p3d",
  174.                         "Ah64DWreck.p3d",
  175.                         "BRDM2_wrecked.p3d",
  176.                         "C130JWreck.p3d",
  177.                         "CH_47FWreck.p3d",
  178.                         "F35bWreck.p3d",
  179.                         "GNT_C185wreck.p3d",
  180.                         "Heli_Attack_01_wreck_F.p3d",
  181.                         "Heli_Attack_02_wreck_F.p3d",
  182.                         "Heli_Light_01_wreck_F.p3d",
  183.                         "Heli_Light_02_wreck_F.p3d",
  184.                         "Heli_Light_03_Wreck_F.p3d",
  185.                         "Heli_Transport_01_wreck_F.p3d",
  186.                         "Heli_Transport_02_wreck_F.p3d",
  187.                         "Ka52Wreck.p3d",
  188.                         "Ka60_PMCWreck.p3d",
  189.                         "MH_60Wreck.p3d",
  190.                         "MI8Wreck.p3d",
  191.                         "MQ9PredatorWreck.p3d",
  192.                         "MV22Wreck.p3d",
  193.                         "Mi8_Crashed.p3d",
  194.                         "Plane_Fighter_03_wreck_F.p3d",
  195.                         "Plane_cas_01_wreck_F.p3d",
  196.                         "Plane_cas_02_wreck_F.p3d",
  197.                         "Su25Wreck.p3d",
  198.                         "T72_Wrecked.p3d",
  199.                         "t72_wrecked.p3d",
  200.                         "UH1YWreck.p3d",
  201.                         "Wreck_C130J.p3d",
  202.                         "Wreck_C130J_ep1.p3d",
  203.                         "Wreck_C130J_ep1_dirt.p3d",
  204.                         "Wreck_C130J_ep1_ruins.p3d",
  205.                         "Wreck_UH60.p3d",
  206.                         "Wreck_UH60_ep1.p3d",
  207.                         "ah6Wreck.p3d",
  208.                         "an2Wreck.p3d",
  209.                         "bmp2_wrecked.p3d",
  210.                         "brdm2_wrecked.p3d",
  211.                         "datsun01t.p3d",
  212.                         "datsun02t.p3d",
  213.                         "hiluxt.p3d",
  214.                         "hmmwv_wreck.p3d",
  215.                         "hmmwv_wrecked.p3d",
  216.                         "jeept.p3d",
  217.                         "lada_wrecked.p3d",
  218.                         "m113t.p3d",
  219.                         "mi24wreck.p3d",
  220.                         "mi8_crashed.p3d",
  221.                         "skodovka_wrecked.p3d",
  222.                         "su34Wreck.p3d",
  223.                         "uaz_wreck.p3d",
  224.                         "uaz_wrecked.p3d",
  225.                         "uh1hWreck.p3d",
  226.                         "ural_wrecked.p3d",
  227.                         "wreck_bmp2_f.p3d",
  228.                         "wreck_brdm2_f.p3d",
  229.                         "wreck_car2_f.p3d",
  230.                         "wreck_car3_f.p3d",
  231.                         "wreck_car_f.p3d",
  232.                         "wreck_cardismantled_f.p3d",
  233.                         "wreck_heli_attack_01_f.p3d",
  234.                         "wreck_heli_attack_02_f.p3d",
  235.                         "wreck_hmmwv_f.p3d",
  236.                         "wreck_hunter_f.p3d",
  237.                         "wreck_offroad2_f.p3d",
  238.                         "wreck_offroad_f.p3d",
  239.                         "wreck_skodovka_f.p3d",
  240.                         "wreck_truck_dropside_f.p3d",
  241.                         "wreck_truck_f.p3d",
  242.                         "wreck_uaz_f.p3d",
  243.                         "wreck_ural_f.p3d",
  244.                         "wreck_van_f.p3d"
  245.                     };
  246.         table = "ScavengeWrecksCommon";
  247.     };
  248.  
  249.     // Able to get dirty water from map object pumps
  250.     class Waters: Exile_ScavengeClass
  251.     {
  252.         animations[] = {
  253.             "AinvPknlMstpSnonWnonDnon_medic_1"
  254.         };
  255.         type = "CraftingClass";
  256.         chance = 70;
  257.         searchtime = 5;
  258.         icon = "Exile_HA_Icon_Water";
  259.         text = "Scavenge for Water";
  260.         models[] =  {
  261.                         "GZ_pond2_01_PMC.p3d",
  262.                         "GZ_pond2_02_PMC.p3d",
  263.                         "GZ_pond2_03_PMC.p3d",
  264.                         "GZ_pond2_04_PMC.p3d",
  265.                         "GZ_pond2_05_PMC.p3d",
  266.                         "GZ_pond2_06_PMC.p3d",
  267.                         "GZ_pond2_07_PMC.p3d",
  268.                         "GZ_pond2_08_PMC.p3d",
  269.                         "GZ_pond2_09_PMC.p3d",
  270.                         "GZ_pond2_10_PMC.p3d",
  271.                         "GZ_pond2_11_PMC.p3d",
  272.                         "GZ_pond2_12_PMC.p3d",
  273.                         "barrel_water.p3d",
  274.                         "basin_a.p3d",
  275.                         "gz_pond01_PMC.p3d",
  276.                         "gz_pond02_PMC.p3d",
  277.                         "gz_pond03_PMC.p3d",
  278.                         "misc_well.p3d",
  279.                         "misc_wellpump.p3d",
  280.                         "pumpa.p3d",
  281.                         "reservoir_ep1.p3d",
  282.                         "toilet_b_02.p3d",
  283.                         "watertank_f.p3d"
  284.                     };
  285.         recipes[] = {
  286.             "ScavengeFillEmptyPlasticBottleWithDirtyWater",
  287.             "ScavengeFillEmptyWaterCanisterWithDirtyWater",
  288.             "ScavengeFillEmptyWaterCanteenWithDirtyWater"
  289.         };
  290.         class conditions {
  291.             items[] = {
  292.                 "Exile_Item_PlasticBottleEmpty",
  293.                 "Exile_Item_WaterCanisterEmpty",
  294.                 "Exitem_canteen"
  295.             };
  296.         };
  297.     };
  298.     // Able to get Fuel from Pumps, Fuel Containers, Fuel Tanks, barrells around the map
  299.     class Fuel: Exile_ScavengeClass
  300.     {
  301.         animations[] =  {
  302.             "AinvPknlMstpSnonWnonDnon_medic_1"
  303.         };
  304.         type = "CraftingClass";
  305.         chance = 10;
  306.         searchtime = 5;
  307.         maxitems = 1;
  308.         icon = "Default";
  309.         text = "Get Fuel";
  310.         models[] = {
  311.                         "a_fuelstation_feed.p3d",
  312.                         "barel1.p3d",
  313.                         "barel2.p3d",
  314.                         "barel3.p3d",
  315.                         "barel4.p3d",
  316.                         "barel5.p3d",
  317.                         "barel6.p3d",
  318.                         "barel7.p3d",
  319.                         "barels.p3d",
  320.                         "barels2.p3d",
  321.                         "barels3.p3d",
  322.                         "barels4.p3d",
  323.                         "barels5.p3d",                     
  324.                         "fuel_tank_big.p3d",
  325.                         "fuel_tank_small.p3d",
  326.                         "fuel_tank_stairs.p3d",
  327.                         "ind_tanksmall.p3d",
  328.                         "ind_tanksmall2.p3d"
  329.         };
  330.         recipes[] = {
  331.             "ScavengeFillEmptyFuelCanisterWithFuel"
  332.         };
  333.         class conditions {
  334.             items[] =   {
  335.                 "Exile_Item_FuelCanisterEmpty"
  336.             };
  337.         };
  338.     };
  339.     // Able to get woodlogs from stocks of wood, pile of wood, fallen logs around the map
  340.     class Woodlogs: Exile_ScavengeClass
  341.     {
  342.         animations[] = {
  343.             "AinvPknlMstpSnonWnonDnon_medic_1"
  344.         };
  345.         type = "ScavengeClass";
  346.         chance = 50;
  347.         searchtime = 5;
  348.         maxitems = 3;
  349.         icon = "Exile_HA_Icon_Woodlogs";
  350.         text = "Scavenge Woodlogs";
  351.         models[] = {
  352.             "drevo_hromada.p3d",
  353.             "misc_fallentree1.p3d",
  354.             "misc_burnspruce_pmc.p3d",
  355.             "ind_timbers.p3d",
  356.             "misc_woodpile.p3d",
  357.             "kmen_1_buk.p3d"
  358.         };
  359.         table = "ScavengeLogsCommon";
  360.     };
  361.     /*
  362.     // Uses vanilla Exile items but not available in Vanilla Exile setup, thus disabling by default.
  363.     class Trees: Exile_ScavengeClass
  364.     {
  365.         animations[] =  {
  366.             "AinvPknlMstpSnonWnonDnon_medic_1"
  367.         };
  368.         type = "ScavengeClass";
  369.         chance = 20;
  370.         searchtime = 2;
  371.         maxitems = 2;
  372.         icon = "Exile_HA_Icon_Woodlogs";
  373.         text = "Scavenge Sticks and Leaves";
  374.         models[] = {
  375.             // Trees on CHR
  376.             "t_fraxinus2w.p3d",
  377.             "t_betula2w.p3d",
  378.             "t_betula2s.p3d",
  379.             "t_betula2f.p3d",
  380.             "t_fagus2f.p3d",
  381.             "t_fagus2w.p3d",
  382.             "t_fagus2s.p3d",
  383.             "t_ficusb2s_ep1.p3d",
  384.             "t_quercus2f.p3d",
  385.             "t_quercus3f.p3d",
  386.             "t_picea1s.p3d",
  387.             "t_picea2s.p3d",
  388.             "t_picea3f.p3d",
  389.             "t_pinusn1s.p3d",
  390.             "t_pinusn2s.p3d",
  391.             "t_alnus2s.p3d",
  392.             "t_salix2s.p3d",
  393.             "t_malus1s.p3d",
  394.             "t_juniperusc2s_ep1.p3d",
  395.             "dd_borovice.p3d",
  396.             "strlipa.p3d",
  397.             //Bushes on CHR
  398.             "b_betula2w_summer.p3d",
  399.             "b_salix2s.p3d",
  400.             "b_craet1.p3d",
  401.             "b_hrusen2.p3d",
  402.             "b_corylus.p3d",
  403.             "b_corylus2s.p3d",
  404.             "b_sambucus.p3d",
  405.             "krovi_long.p3d"
  406.         };
  407.         table = "CivillianLowerClass";
  408.     };
  409.     // Disabled because if not setup correctly, will break game balance.
  410.     // Server owners think before enabling.
  411.     class Concrete: Exile_ScavengeClass
  412.     {
  413.         animations[] =  {
  414.             "AinvPknlMstpSnonWnonDnon_medic_1"
  415.         };
  416.         type = "CraftingClass";
  417.         chance = 5;
  418.         searchtime = 5;
  419.         maxitems = 1;
  420.         icon = "Default";
  421.         text = "Get Concrete";
  422.         models[] = {
  423.             "misc_concrete_high.p3d"
  424.         };
  425.         recipes[] = {
  426.             "ScavengeDestroyConcrete"
  427.         };
  428.         class conditions {
  429.             weapons[] = {
  430.                 "Exile_Melee_SledgeHammer"
  431.             };
  432.         };
  433.     };
  434.     // Disabled because if not setup correctly, will break game balance.
  435.     // Server owners think before enabling.
  436.     class WoodPlanks: Exile_ScavengeClass
  437.     {
  438.         animations[] =  {
  439.             "AinvPknlMstpSnonWnonDnon_medic_1"
  440.         };
  441.         type = "CraftingClass";
  442.         chance = 20;
  443.         searchtime = 5;
  444.         maxitems = 2;
  445.         icon = "Default";
  446.         text = "Get WoodPlanks";
  447.         models[] = {
  448.             "woodenplanks_01_messy_pine_f.p3d",
  449.             "ind_boardspack1.p3d"
  450.         };
  451.         recipes[] = {
  452.             "ScavengeWoodplanks"
  453.         };
  454.         class conditions {
  455.             tools[] =   {
  456.                 "Exile_Item_Handsaw"
  457.             };
  458.         };
  459.     };
  460.     // Disabled because if not setup correctly, will break game balance.
  461.     // Server owners think before enabling.
  462.     class MetalPoles: Exile_ScavengeClass
  463.     {
  464.         animations[] =  {
  465.             "AinvPknlMstpSnonWnonDnon_medic_1"
  466.         };
  467.         type = "CraftingClass";
  468.         chance = 5;
  469.         searchtime = 5;
  470.         maxitems = 1;
  471.         icon = "Default";
  472.         text = "Get MetalPoles";
  473.         models[] = {
  474.             "misc_g_pipes.p3d"
  475.         };
  476.         recipes[] = {
  477.             "ScavengeMetalPoles"
  478.         };
  479.         class conditions {
  480.             tools[] =   {
  481.                 "Exile_Item_Grinder"
  482.             };
  483.         };
  484.     };
  485.     */
  486. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement