Advertisement
Guest User

G4s_CfgExileScavenge.cpp

a guest
Oct 19th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 9.62 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 auf 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 getting a item from a scavange.
  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.     items[] = {};                                   // Items that the player with get from this scavange class.
  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 Trash: Exile_ScavengeClass
  40.     {
  41.         animations[] =
  42.         {
  43.             "AinvPknlMstpSnonWnonDnon_medic_1"
  44.         };
  45.         type = "ScavengeClass";
  46.         chance = 90;
  47.         searchtime = 10;
  48.         maxitems = 1;
  49.         icon = "Default";
  50.         text = "Search through garbage";
  51.         models[] =
  52.         {
  53.             // Trashpiles
  54.             "garbagewashingmachine_f.p3d",
  55.             "garbagepallet_f.p3d",
  56.             "garbagebags_f.p3d",
  57.             "garbageheap_01_f.p3d",
  58.             "garbageheap_02_f.p3d",
  59.             "garbageheap_03_f.p3d",
  60.             "garbageheap_04_f.p3d",
  61.             "misc_gcontainer_big.p3d",
  62.             "misc_garb_heap_ep1.p3d",
  63.             "garbagebags_f.p3d",
  64.             "popelnice.p3d",
  65.             "garbagecontainer_open_f.p3d",
  66.             "garbagecontainer_closed_f.p3d",
  67.             "kontejner.p3d",
  68.             "barricade_01_10m_f.p3d",
  69.             "barricade_01_4m_f.p3d",
  70.             "junkpile_f.p3d",
  71.             "junkpile.p3d",
  72.             "garb_junkpile_pmc.p3d",
  73.             "fishinggear_01_f.p3d",
  74.             "fishinggear_02_f.p3d",
  75.             "crabcages_f.p3d",
  76.  
  77.             // Trashbins
  78.             "kontejner.p3d",
  79.             "garbagebin_01_f.p3d",
  80.             "garbagebin_02_f.p3d"
  81.         };
  82.         items[] =
  83.         {
  84.             "Exile_Item_CanOpener",
  85.             "Exile_Item_Can_Empty",
  86.             "Exile_Item_WaterCanisterEmpty",
  87.             "Exile_Item_PlasticBottleEmpty",
  88.             "Exitem_canteen",
  89.             "Exitem_can_crushed",
  90.             "Exitem_can_crushed2",
  91.             "Exile_Item_ToiletPaper",
  92.             "Exile_Item_Magazine01",
  93.             "Exile_Item_Magazine02",
  94.             "Exile_Item_Magazine03",
  95.             "Exile_Item_Magazine04",
  96.             "Exitem_glue",
  97.             "Exile_Item_Bullets_556",
  98.             "Exile_Item_Bullets_762",
  99.             "ItemMap"
  100.         };
  101.     };
  102.    
  103.    
  104.     class Wrecks: Exile_ScavengeClass
  105.     {
  106.         animations[] =
  107.         {
  108.             "AinvPknlMstpSnonWnonDnon_medic_1"
  109.         };
  110.         type = "ScavengeClass";
  111.         chance = 80;
  112.         searchtime = 10;
  113.         maxitems = 1;
  114.         icon = "Exile_HA_Icon_Wreck";
  115.         text = "Scavenge Wreck";
  116.         models[] =
  117.         {
  118.             "wreck_brdm2_f.p3d",
  119.             "wreck_van_f.p3d",
  120.             "wreck_truck_dropside_f.p3d",
  121.             "wreck_truck_f.p3d",
  122.             "wreck_car2_f.p3d",
  123.             "wreck_offroad_f.p3d",
  124.             "wreck_car_f.p3d",
  125.             "wreck_bmp2_f.p3d",
  126.             "wreck_truck_f.p3d",
  127.             "wreck_car3_f.p3d",
  128.             "hiluxt.p3d",
  129.             "hmmwv_wrecked.p3d",
  130.             "wreck_hmmwv_f.p3d",
  131.             "wreck_offroad2_f.p3d",
  132.             "wreck_hunter_f.p3d",
  133.             "uaz_wrecked.p3d",
  134.             "wreck_ural_f.p3d",
  135.             "wreck_uaz_f.p3d",
  136.             "wreck_cardismantled_f.p3d",
  137.             "m113t.p3d",
  138.             "uaz_wrecked.p3d",
  139.             "wreck_skodovka_f.p3d",
  140.             "skodovka_wrecked.p3d",
  141.             "lada_wrecked.p3d",
  142.             "ural_wrecked.p3d",
  143.             "brdm2_wrecked.p3d",
  144.             "jeept.p3d",
  145.             "mi8_crashed.p3d",
  146.             // Cups & Arma
  147.             "datsun01t.p3d",
  148.             "datsun02t.p3d",
  149.             "bmp2_wrecked.p3d",
  150.             "wreck_heli_attack_02_f.p3d",
  151.             "wreck_heli_attack_01_f.p3d"
  152.             // Some Redux (Dont Seem to work)
  153.             //"chz_kamaz_korpus2.p3d",
  154.             //"chz_avtobus2.p3d",
  155.             //"chz_kamaz_fura.p3d",
  156.             //"chz_kamaz_pricep.p3d"
  157.         };
  158.  
  159.         items[] =
  160.         {
  161.             "Exile_Item_FuelCanisterFull",
  162.             "Exile_Item_FuelCanisterEmpty",
  163.             "Exile_Item_DuctTape",
  164.             "Exile_Item_Carwheel",
  165.             "Exitem_windshield",
  166.             "Exitem_fueltank",
  167.             "Exitem_engine",
  168.             "Exile_Item_CanOpener",
  169.             "Exile_Item_Can_Empty",
  170.             "Exile_Item_WaterCanisterEmpty",
  171.             "Exile_Item_PlasticBottleEmpty",
  172.             "Exitem_canteen",
  173.             "Exitem_can_crushed",
  174.             "Exitem_can_crushed2",
  175.             "Exile_Item_ToiletPaper",
  176.             "Exile_Item_Magazine01",
  177.             "Exile_Item_Magazine02",
  178.             "Exile_Item_Magazine03",
  179.             "Exile_Item_Magazine04",
  180.             "Exitem_glue",
  181.             "Exile_Item_Bullets_556",
  182.             "Exile_Item_Bullets_762",
  183.             "ItemMap"
  184.         };
  185.     };
  186.    
  187.     class Waters: Exile_ScavengeClass
  188.     {
  189.         animations[] =
  190.         {
  191.             "AinvPknlMstpSnonWnonDnon_medic_1"
  192.         };
  193.         type = "CraftingClass";
  194.         chance = 60;
  195.         searchtime = 10;
  196.         icon = "Exile_HA_Icon_Water";
  197.         text = "Scavenge for Water";
  198.         models[] =
  199.         {
  200.             "pumpa.p3d",
  201.             "misc_well.p3d",
  202.             "misc_wellpump.p3d",
  203.             "watertank_f.p3d",
  204.             "toilet_b_02.p3d",
  205.             "watertank_01_f.p3d",
  206.             "watertank_02_f.p3d",
  207.             "watertank_03_f.p3d",
  208.             "watertank_04_f.p3d",
  209.             "watertower_01_f.p3d"
  210.         };
  211.         recipes[] =
  212.         {
  213.             "ScavengeFillEmptyPlasticBottleWithDirtyWater",
  214.             "ScavengeFillEmptyWaterCanisterWithDirtyWater",
  215.             "ScavengeFillEmptyWaterCanteenWithDirtyWater"
  216.         };
  217.         class conditions
  218.         {
  219.             items[] =
  220.             {
  221.                 "Exile_Item_PlasticBottleEmpty",
  222.                 "Exile_Item_WaterCanisterEmpty",
  223.                 "Exitem_canteen"
  224.             };
  225.         };
  226.     };
  227.    
  228.     class Woodlogs: Exile_ScavengeClass
  229.     {
  230.         animations[] =
  231.         {
  232.             "AinvPknlMstpSnonWnonDnon_medic_1"
  233.         };
  234.         type = "CraftingClass";
  235.         chance = 10;
  236.         searchtime = 5;
  237.         maxitems = 4;
  238.         icon = "Exile_HA_Icon_Woodlogs";
  239.         text = "Scavenge Woodlogs";
  240.         models[] =
  241.         {
  242.             "drevo_hromada.p3d",
  243.             "timberpile_01_f.p3d"
  244.         };
  245.         recipes[] =
  246.         {
  247.             "ScavengeChopWood"
  248.         };
  249.         class conditions
  250.         {
  251.             weapons[] =
  252.             {
  253.                 "Exile_Melee_Axe"
  254.             };
  255.         };
  256.     };
  257.  
  258.     // Extended_Items_Exile
  259.     // https://steamcommunity.com/sharedfiles/filedetails/?id=897168981
  260.     /*
  261.     class Pumpkins: Exile_ScavengeClass
  262.     {
  263.         animations[] =
  264.         {
  265.             "AinvPknlMstpSnonWnonDnon_medic_1"
  266.         };
  267.         type = "ScavengeClass";
  268.         chance = 50;
  269.         searchtime = 5;
  270.         maxitems = 1;
  271.         icon = "Exile_HA_Icon_Pumpkin";
  272.         text = "Harvest Pumpkin";
  273.         models[] =
  274.         {
  275.             "bodlak_group.p3d"
  276.         };
  277.         items[] =
  278.         {
  279.             "Exitem_pumpkin"
  280.         };
  281.     };
  282.     */
  283.    
  284.     class Cinderblocks: Exile_ScavengeClass
  285.     {
  286.         animations[] =
  287.         {
  288.             "AinvPknlMstpSnonWnonDnon_medic_1"
  289.         };
  290.         type = "CraftingClass";
  291.         chance = 50;
  292.         searchtime = 15;
  293.         maxitems = 2;
  294.         icon = "Default";
  295.         text = "Get Cinderblocks";
  296.         models[] =
  297.         {
  298.             "cinderblocks_f.p3d",
  299.             "cinderblocks_01_f.p3d"
  300.         };
  301.         recipes[] =
  302.         {
  303.             "ScavengeDestroyCinderblock"
  304.         };
  305.         class conditions
  306.         {
  307.             weapons[] =
  308.             {
  309.                 "Exile_Melee_SledgeHammer"
  310.             };
  311.         };
  312.     };
  313.    
  314.     class Woodplanks: Exile_ScavengeClass
  315.     {
  316.         animations[] =
  317.         {
  318.             "AinvPknlMstpSnonWnonDnon_medic_1"
  319.         };
  320.         type = "CraftingClass";
  321.         chance = 50;
  322.         searchtime = 10;
  323.         maxitems = 2;
  324.         icon = "Default";
  325.         text = "Get Wood Planks";
  326.         models[] =
  327.         {
  328.             "woodenplanks_01_messy_f.p3d",
  329.             "woodenplanks_01_f.p3d",
  330.             "woodencrate_01_f.p3d",
  331.             "woodencrate_01_stack_x3_f.p3d",
  332.             "woodencrate_01_stack_x5_f.p3d",
  333.             "picnictable_01_f.p3d",
  334.             "bench_03_f.p3d",
  335.             "bench_05_f.p3d"
  336.         };
  337.         recipes[] =
  338.         {
  339.             "ScavengeDestroyWood"
  340.         };
  341.         class conditions
  342.         {
  343.             weapons[] =
  344.             {
  345.                 "Exile_Melee_Axe"
  346.             };
  347.         };
  348.     };
  349.    
  350.     // LordRampantHumps Items Pack
  351.     // https://steamcommunity.com/sharedfiles/filedetails/?id=1082756693
  352.     class Apples: Exile_ScavengeClass
  353.     {
  354.         animations[] =
  355.         {
  356.             "AinvPknlMstpSnonWnonDnon_medic_1"
  357.         };
  358.         type = "ScavengeClass";
  359.         chance = 90;
  360.         searchtime = 5;
  361.         maxitems = 2;
  362.         icon = "Exile_HA_Icon_Apple";
  363.         text = "Scavenge for Apples";
  364.         models[] =
  365.         {
  366.             "t_malus1s.p3d",
  367.             "jablon.p3d",
  368.             "t_malus1s_summer.p3d"
  369.         };
  370.         items[] =
  371.         {
  372.             "items_pack_apple_red",
  373.             "items_pack_apple"
  374.         };
  375.     };
  376.    
  377.     class Fruits: Exile_ScavengeClass
  378.     {
  379.         animations[] =
  380.         {
  381.             "AinvPknlMstpSnonWnonDnon_medic_1"
  382.         };
  383.         type = "ScavengeClass";
  384.         chance = 90;
  385.         searchtime = 15;
  386.         maxitems = 2;
  387.         icon = "Exile_HA_Icon_Fruit";
  388.         text = "Scavenge for Fruit";
  389.         models[] =
  390.         {
  391.             // Random small trees and bushes
  392.             //"b_corylus.p3d",
  393.             //"b_canina2s.p3d",
  394.             //"b_amygdalusn1s_ep1.p3d",
  395.             //"jerabina.p3d",
  396.             //"b_elderberry2s_pmc.p3d",
  397.             // Banana trees
  398.             "banana_3.p3d",
  399.             "banana_2.p3d",
  400.             "banana_1.p3d",
  401.             "banana_4.p3d",
  402.             "t_banana_f.p3d",
  403.             "t_banana_wild_f.p3d",
  404.             "t_banana_slim_f.p3d"
  405.             // Chernarus Redux
  406.             //"c_blueberry_summer.p3d",
  407.             //"c_blueberry.p3d",
  408.             //"b_hrusen2.p3d",
  409.             //"t_betula2w.p3d"
  410.         };
  411.         items[] =
  412.         {
  413.             "items_pack_banana"
  414.         };
  415.     };
  416.  
  417. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement