diff --git a/Sources/epoch_code/compile/EPOCH_consumeItem.sqf b/Sources/epoch_code/compile/EPOCH_consumeItem.sqf index eedd2389..8eeba4a3 100644 --- a/Sources/epoch_code/compile/EPOCH_consumeItem.sqf +++ b/Sources/epoch_code/compile/EPOCH_consumeItem.sqf @@ -12,22 +12,17 @@ Github: https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_code/compile/EPOCH_consumeItem.sqf */ -private ["_cfgBaseBuilding","_type","_magazineSize","_text","_item","_pic","_magazinesAmmoFull","_magazineSizeMax","_config","_pos","_object","_isStorage","_isOk","_buildClass","_interactReturnOnUse","_vehicle","_currentFuel","_canCapacity","_interactAttributes","_fuelCapacity","_newFuel","_removeItem","_vehicles","_transportFuel","_highestDMG","_currentHIT","_currentDMG","_newDMG","_paintCanIndex","_paintCanColor","_msg","_color","_unifiedInteract","_interactOption"]; +private ["_cfgBaseBuilding","_cfgItemInteractions","_type","_magazineSize","_text","_item","_pic","_magazinesAmmoFull","_magazineSizeMax","_pos","_object","_isStorage","_isOk","_buildClass","_interactReturnOnUse","_vehicle","_currentFuel","_canCapacity","_interactAttributes","_fuelCapacity","_newFuel","_removeItem","_vehicles","_transportFuel","_highestDMG","_currentHIT","_currentDMG","_newDMG","_paintCanIndex","_paintCanColor","_msg","_color","_unifiedInteract","_interactOption"]; _text = EPOCH_InteractedItem select 0; _item = EPOCH_InteractedItem select 1; _pic = EPOCH_InteractedItem select 2; _cfgBaseBuilding = 'CfgBaseBuilding' call EPOCH_returnConfig; - -_type = "CfgMagazines"; -if (isClass (configfile >> "CfgWeapons" >> _item)) then {_type = "CfgWeapons"}; - -_config = (configfile >> _type >> _item); -_type = getNumber(_config >> "type"); -_interactOption = getNumber(_config >> "interactAction"); -_interactReturnOnUse = getText(_config >> "interactReturnOnUse"); -_interactAttributes = getArray(_config >> "interactAttributes"); +_cfgItemInteractions = (('CfgItemInteractions' call EPOCH_returnConfig) >> _item); +_interactOption = getNumber(_cfgItemInteractions >> "interactAction"); +_interactReturnOnUse = getText(_cfgItemInteractions >> "interactReturnOnUse"); +_interactAttributes = getArray(_cfgItemInteractions >> "interactAttributes"); _removeItem = {([player,_this] call BIS_fnc_invRemove) == 1}; @@ -38,6 +33,7 @@ _giveAttributes = { _addPlus = if (_data > 0) then {"+"} else {""}; _return = ""; if (_data != 0) then { + // TODO: configize _editableVars = [["Temp"],["Hunger"],["Thirst"],["Energy"],["Soiled"],["Immunity"],["Toxicity",true],["Stamina"],["Wet"],["BloodP"],["Karma"],["Alcohol"],["Radiation"]]; _selectedVar = _editableVars select _index; _selectedVar params ["_selectedVarName",["_randomNum",false]]; @@ -84,7 +80,7 @@ _unifiedInteract = { switch _interactOption do { case 0: { - _magazineSizeMax = getNumber (_config >> "count"); + _magazineSizeMax = getNumber (configfile >> "CfgMagazines" >> _item >> "count"); // allow repack for all magazines with greater than 1 bullet if (_magazineSizeMax > 1) then { @@ -120,9 +116,10 @@ switch _interactOption do { _buildingJammerRange = ["CfgEpochClient", "buildingJammerRange", 75] call EPOCH_fnc_returnConfigEntryV2; _buildingCountLimit = ["CfgEpochClient", "buildingCountLimit", 200] call EPOCH_fnc_returnConfigEntryV2; _partCheck = _item in (magazines player); - _buildClass = getText(configfile >> "CfgMagazines" >> _item >> "buildClass"); + + _buildClass = getText(_cfgItemInteractions >> _item >> "buildClass"); if (_buildClass != "" && _partCheck) then { - _isStorage = getNumber(configfile >> "CfgMagazines" >> _item >> "isStorage"); + _isStorage = getNumber(_cfgItemInteractions >> _item >> "isStorage"); _isOk = if (_isStorage == 1 || _buildClass isKindOf "Secure_Storage_Temp") then { EPOCH_StorageSlotsCount > 0 } else { EPOCH_BuildingSlotCount > 0 }; @@ -291,8 +288,8 @@ switch _interactOption do { if (_item call _removeItem) then { // find _paintCanIndex from config - _paintCanIndex = getNumber(configfile >> "CfgMagazines" >> _item >> "textureIndex"); - _paintCanColor = getText(configfile >> "CfgMagazines" >> _item >> "colorName"); + _paintCanIndex = getNumber(_cfgItemInteractions >> _item >> "textureIndex"); + _paintCanColor = getText(_cfgItemInteractions >> _item >> "colorName"); [_vehicle,_paintCanIndex,player,Epoch_personalToken] remoteExec ["EPOCH_server_paintBUILD",2]; diff --git a/Sources/epoch_code/compile/inventory/EPOCH_itemInteractClick.sqf b/Sources/epoch_code/compile/inventory/EPOCH_itemInteractClick.sqf index c24e7b90..7468f409 100644 --- a/Sources/epoch_code/compile/inventory/EPOCH_itemInteractClick.sqf +++ b/Sources/epoch_code/compile/inventory/EPOCH_itemInteractClick.sqf @@ -19,17 +19,17 @@ _data = EPOCH_InteractedItem select 1; _interactOption = 0; _buttonTXT = ""; _magCount = 1; - _config = (configfile >> "CfgWeapons" >> _data); +_cfgItemInteractions = (('CfgItemInteractions' call EPOCH_returnConfig) >> _data); if (isClass (_config)) then { _type = getNumber (_config >> "type"); - _interactOption = getNumber (_config >> "interactAction"); - _buttonTXT = getText(_config >> "interactText"); + _interactOption = getNumber (_cfgItemInteractions >> "interactAction"); + _buttonTXT = getText(_cfgItemInteractions >> "interactText"); } else { _config = (configfile >> "CfgMagazines" >> _data); _type = getNumber (_config >> "type"); - _interactOption = getNumber (_config >> "interactAction"); - _buttonTXT = getText(_config >> "interactText"); + _interactOption = getNumber (_cfgItemInteractions >> "interactAction"); + _buttonTXT = getText(_cfgItemInteractions >> "interactText"); _magCount = getNumber (_config >> "count"); }; diff --git a/Sources/epoch_config/Configs/CfgItemInteractions.hpp b/Sources/epoch_config/Configs/CfgItemInteractions.hpp new file mode 100644 index 00000000..3df9b397 --- /dev/null +++ b/Sources/epoch_config/Configs/CfgItemInteractions.hpp @@ -0,0 +1,703 @@ +/* +Author: Aaron Clark - EpochMod.com +Contributors: Andrew Gregory + +Description: +Item interaction configs + +Licence: +Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike + +Github: +https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_config/Configs/CfgItemInteractions.hpp + +Legend: +interactMode: 0 = examine, 1 = eat, 2 = drink, 3 = build +interactAttributes: {Temp,Hunger,Thirst,Energy,Soiled,Immunity,Toxicity,Stamina,Wet,BloodP,Karma,Alcohol,Radiation}; + +*/ +class CfgItemInteractions { + // BASE CLASSES START + class Default + { + interactMode = 0; + }; + class Food_base : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 600, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class Food_TinCan_base : Food_base + { + interactReturnOnUse = "ItemEmptyTin"; + }; + class Food_Jar_base : Food_base + { + interactReturnOnUse = "emptyjar_epoch"; + }; + class Food_Cooler_base : Food_base + { + interactReturnOnUse = "ItemCoolerE"; + }; + class Drink_base : Default + { + interactAction = 2; + interactText = "DRINK"; + interactAttributes[] = { 0, 0, 500, 0, 0, 0, 0, 0, 0, 0 }; + }; + class Drink_Jar_base : Drink_base + { + interactReturnOnUse = "emptyjar_epoch"; + }; + class Soda_base : Drink_base + { + interactReturnOnUse = "ItemSodaEmpty"; + }; + class Item_Build_base : Default + { + interactAction = 3; + interactText = "BUILD"; + }; + class Item_Packed_base : Default { + interactAction = 14; + interactText = "UNPACK"; + }; + // BASE CLASSES END class honey_epoch : Food_Jar_base + { + interactText = "CONSUME"; + interactAttributes[] = { 0, 0, 0, 0, 0, 1, 0, 30, 0, 10 }; + }; + class sardines_epoch : Food_TinCan_base + { + interactAttributes[] = { 0, 1000, 0, 0, 0, 0, 7, 0, 0, 0 }; + }; + class meatballs_epoch : Food_TinCan_base + { + interactAttributes[] = { 0, 1200, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class scam_epoch : Food_TinCan_base + { + interactAttributes[] = { 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class sweetcorn_epoch : Food_TinCan_base + { + interactAttributes[] = { 0, 600, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class FoodBioMeat : Food_TinCan_base + { + interactAttributes[] = { 0, 1000, 0, 0, 0, 0, 7, 0, 0, 0 }; + }; + class TacticalBacon : Food_TinCan_base + { + interactAttributes[] = { 0, 500, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class ItemTrout : Food_base + { + interactAttributes[] = { 0, 300, 0, 0, 0, 0, 5, 0, 0, 0 }; + }; + class ItemSeaBass : Food_base + { + interactAttributes[] = { 0, 500, 0, 0, 0, 0, 10, 0, 0, 0 }; + }; + class ItemTuna : Food_base + { + interactAttributes[] = { 0, 2500, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class ItemTroutCooked : Food_base + { + interactAttributes[] = { 0, 600, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class ItemSeaBassCooked : Food_base + { + interactAttributes[] = { 0, 1200, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class ItemTunaCooked : Food_base + { + interactAttributes[] = { 0, 5000, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class FoodMeeps : Food_base + { + interactAttributes[] = { 0, 500, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class FoodSnooter : Food_base + { + interactAttributes[] = { 0, 500, 0, 0, 0, 0, 0, 50, 0, 0 }; + }; + class ItemCooler0 : Food_Cooler_base + { + interactAttributes[] = { 0, 3000, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class ItemCooler1 : Food_Cooler_base + { + interactAttributes[] = { 0, 3500, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class ItemCooler2 : Food_Cooler_base + { + interactAttributes[] = { 0, 4000, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class ItemCooler3 : Food_Cooler_base + { + interactAttributes[] = { 0, 5000, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class ItemCooler4 : Food_Cooler_base + { + interactAttributes[] = { 0, 5000, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class water_epoch : Drink_Jar_base + { + interactAttributes[] = { 0, 0, 500, 0, 0, 0, 5, 50, 0, 0 }; + }; + class clean_water_epoch : Drink_Jar_base + { + interactAttributes[] = { 0, 0, 500, 0, 0, 0, 0, 50, 0, 0 }; + }; + class ItemSodaRbull : Soda_base + { + interactAttributes[] = { 0, 0, 1000, 0, 0, 0, 0, 100, 0, 0 }; + }; + class ItemSodaOrangeSherbet : Soda_base + { + interactAttributes[] = { 0, 0, 800, 0, 0, 0, 0, 75, 0, 0 }; + }; + class ItemSodaPurple : Soda_base + { + interactAttributes[] = { 0, 0, 800, 0, 0, 0, 0, 75, 0, 0 }; + }; + class ItemSodaMocha : Soda_base + { + interactAttributes[] = { 0, 0, 650, 0, 0, 0, 0, 150, 0, 0 }; + }; + class ItemSodaBurst : Soda_base + { + interactAttributes[] = { 0, 0, 800, 0, 0, 0, 0, 75, 0, 0 }; + }; + class FoodWalkNSons : Soda_base + { + interactAttributes[] = { 0, 0, 1200, 0, 0, 0, 0, 150, 0, 0 }; + }; + class ItemSodaAlpineDude : Soda_base + { + interactAttributes[] = { 0, 0, 800, 0, 0, 0, 0, 100, 0, 0 }; + }; + class jerrycan_epoch : Default + { + interactAction = 4; + interactText = "FILL"; + interactReturnOnUse = "jerrycanE_epoch"; + interactAttributes[] = { 10 }; + }; + class jerrycanE_epoch : Default + { + interactAction = 5; + interactText = "SIPHON"; + interactReturnOnUse = "jerrycan_epoch"; + interactAttributes[] = { 10 }; + }; + class FAK : Default + { + interactAction = 13; + interactText = "USE"; + }; + class ItemLockbox : Item_Build_base + { + buildClass = "LockBox_SIM_EPOCH"; + }; + class ItemSafe : Item_Build_base + { + buildClass = "Safe_SIM_EPOCH"; + }; + class JackKit : Item_Build_base + { + buildClass = "Jack_SIM_EPOCH"; + }; + class EnergyPack : Default + { + interactAction = 9; + interactText = "USE"; + interactAttributes[] = { 0, 0, 0, 100, 0, 0, 0, 0, 0, 0 }; + }; + class EnergyPackLg : Default + { + interactAction = 9; + interactText = "USE"; + interactAttributes[] = { 0, 0, 0, 1000, 0, 0, 0, 0, 0, 0 }; + }; + class VehicleRepair : Default + { + interactAction = 10; + interactText = "USE"; + }; + class VehicleRepairLg : Default + { + interactAction = 11; + interactText = "USE"; + }; + class Venom_EPOCH : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 0, 0, 0, 0, 0, 20, 0, 0, 0 }; + }; + class SnakeCarcass_EPOCH : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 300, 0, 0, 0, 0, 10, 0, 0, 0 }; + }; + class SnakeMeat_EPOCH : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 1200, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class RabbitCarcass_EPOCH : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 300, 0, 0, 0, 0, 10, 0, 0, 0 }; + }; + class CookedRabbit_EPOCH : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 1200, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class ChickenCarcass_EPOCH : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 500, 0, 0, 0, 0, 25, 0, 0, 0 }; + }; + class CookedChicken_EPOCH : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 2000, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class GoatCarcass_EPOCH : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 500, 0, 0, 0, 0, 15, 0, 0, 0 }; + }; + class CookedGoat_EPOCH : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 3000, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class SheepCarcass_EPOCH : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 500, 0, 0, 0, 0, 15, 0, 0, 0 }; + }; + class CookedSheep_EPOCH : Default + { + interactAction = 1; + interactText = "EAT"; + interactAttributes[] = { 0, 3000, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class KitSpikeTrap : Item_Build_base + { + buildClass = "Spike_TRAP_SIM_EPOCH"; + }; + class KitMetalTrap : Item_Build_base + { + buildClass = "Metal_TRAP_SIM_EPOCH"; + }; + class KitStudWall : Item_Build_base + { + buildClass = "WoodLargeWall_EPOCH"; + }; + class KitWoodFloor : Item_Build_base + { + buildClass = "WoodFloor_EPOCH"; + }; + class KitWoodStairs : Item_Build_base + { + buildClass = "WoodStairs_EPOCH"; + }; + class KitWoodTower : Item_Build_base + { + buildClass = "WoodTower_EPOCH"; + }; + class KitWoodRamp : Item_Build_base + { + buildClass = "WoodRamp_EPOCH"; + }; + class KitTankTrap : Item_Build_base + { + buildClass = "TankTrap_SIM_EPOCH"; + }; + class KitHesco3 : Item_Build_base + { + buildClass = "Hesco3_EPOCH"; + }; + class KitWoodLadder : Item_Build_base + { + buildClass = "WoodLadder_EPOCH"; + }; + class KitFirePlace : Item_Build_base + { + buildClass = "FirePlace_SIM_EPOCH"; + }; + class KitTiPi : Item_Build_base + { + buildClass = "Tipi_SIM_EPOCH"; + isStorage = 1; + }; + class KitShelf : Item_Build_base + { + buildClass = "StorageShelf_SIM_EPOCH"; + isStorage = 1; + }; + class KitWorkbench : Item_Build_base + { + buildClass = "Workbench_SIM_EPOCH"; + isStorage = 1; + }; + class KitFoundation : Item_Build_base + { + buildClass = "Foundation_EPOCH"; + }; + class KitWoodFoundation : Item_Build_base + { + buildClass = "WoodFoundation_EPOCH"; + }; + class KitSolarGen : Item_Build_base + { + buildClass = "SolarGen_SIM_EPOCH"; + }; + class KitPlotPole : Item_Build_base + { + buildClass = "PlotPole_SIM_EPOCH"; + }; + class KitCinderWall : Item_Build_base + { + buildClass = "CinderWallHalf_EPOCH"; + }; + class PaintCanBase : Default + { + interactAction = 12; + interactText = "USE"; + }; + class PaintCanClear : PaintCanBase + { + colorName = "None"; + textureIndex = 0; + }; + class PaintCanBlk : PaintCanBase + { + colorName = "Black"; + textureIndex = 1; + }; + class PaintCanBlu : PaintCanBase + { + colorName = "Blue"; + textureIndex = 2; + }; + class PaintCanBrn : PaintCanBase + { + colorName = "Brown"; + textureIndex = 3; + }; + class PaintCanGrn : PaintCanBase + { + colorName = "Green"; + textureIndex = 4; + }; + class PaintCanOra : PaintCanBase + { + colorName = "Orange"; + textureIndex = 5; + }; + class PaintCanPur : PaintCanBase + { + colorName = "Purple"; + textureIndex = 6; + }; + class PaintCanRed : PaintCanBase + { + colorName = "Red"; + textureIndex = 7; + }; + class PaintCanTeal : PaintCanBase + { + colorName = "Teal"; + textureIndex = 8; + }; + class PaintCanYel : PaintCanBase + { + colorName = "Yellow"; + textureIndex = 9; + }; + class Poppy : Default + { + interactAction = 6; + interactText = "USE"; + interactAttributes[] = { 0, 0, 0, 0, 0, 10, 0, -100, 0, -10 }; + }; + class Goldenseal : Default + { + interactAction = 6; + interactText = "USE"; + interactAttributes[] = { 0, 0, 0, 0, 0, 0, -50, 0, 0, 0 }; + }; + class Pumpkin : Default + { + interactAction = 6; + interactText = "USE"; + interactAttributes[] = { 0, 500, 0, 0, 0, 0, 0, 50, 0, 0 }; + }; + class Towelette : Default + { + interactAction = 6; + interactText = "USE"; + interactAttributes[] = { 0, 0, 0, 0, -25, 0, 0, 0, 0, 0 }; + }; + class HeatPack : Default + { + interactAction = 7; + interactText = "USE"; + interactAttributes[] = { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class ColdPack : Default + { + interactAction = 8; + interactText = "USE"; + interactAttributes[] = { -1, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; + }; + class ItemHotwire : Default { + interactAction = 2; + interactText = "USE"; + }; + class ItemKeyKit : Default { + interactAction = 2; + interactText = "USE"; + }; + class ItemBarrelF : Default { + interactAction = 4; + interactText = "FILL"; + interactAttributes[] = { 210 }; + interactReturnOnUse = "ItemBarrelE"; + }; + class ItemBarrelE : Default { + interactAction = 5; + interactText = "SIPHON"; + interactAttributes[] = { 210 }; + interactReturnOnUse = "ItemBarrelF"; + }; + class ItemKey : Default { + interactAction = 2; + interactText = "USE"; + }; + class ItemKeyBlue : ItemKey {}; + class ItemKeyGreen : ItemKey {}; + class ItemKeyRed : ItemKey {}; + class ItemKeyYellow : ItemKey {}; + class ItemDoc1 : Default { + interactAction = -1; + interactText = "READ"; + }; + class ItemDoc2 : ItemDoc1 {}; + class ItemDoc3 : ItemDoc1 {}; + class ItemDoc4 : ItemDoc1 {}; + class ItemDoc5 : ItemDoc1 {}; + class ItemDoc6 : ItemDoc1 {}; + class ItemDoc7 : ItemDoc1 {}; + class ItemDoc8 : ItemDoc1 {}; + class ItemVehDoc1 : ItemDoc1 {}; + class ItemVehDoc2 : ItemDoc1 {}; + class ItemVehDoc3 : ItemDoc1 {}; + class ItemVehDoc4 : ItemDoc1 {}; + class ItemBulb : Default {}; + class ItemBurlap : Default {}; + class ItemBriefcaseE : Default {}; + class ItemBriefcaseGold100oz : Default {}; + class ItemAluminumBar : Default {}; + class ItemCopperBar : Default {}; + class ItemTinBar : Default {}; + class ItemPlywoodPack : Default {}; + class ItemComboLock : Default {}; + class CircuitParts : Default {}; + class Pelt_EPOCH : Default {}; + class ItemPipe : Default {}; + class ItemEmptyTin : Default {}; + class ItemSodaEmpty : Default {}; + class emptyjar_epoch : Default {}; + class PartPlankPack : Default {}; + class CinderBlocks : Default {}; + class MortarBucket : Default {}; + class ItemKiloHemp : Default {}; + class ItemTopaz : Default {}; + class ItemOnyx : Default {}; + class ItemSapphire : Default {}; + class ItemAmethyst : Default {}; + class ItemEmerald : Default {}; + class ItemCitrine : Default {}; + class ItemRuby : Default {}; + class ItemQuartz : Default {}; + class ItemJade : Default {}; + class ItemGarnet : Default {}; + class ItemMixOil : Default {}; + class ItemDocument : Default {}; + class ItemDocumentMission : Default {}; + class ItemSilverBar : Default {}; + class ItemGoldBar : Default {}; + class ItemGoldBar10oz : Default {}; + class ItemRock : Default {}; + class ItemStick : Default {}; + class ItemRope : Default {}; + class PartOre : Default {}; + class PartOreSilver : Default {}; + class PartOreGold : Default {}; + class ItemPacked : Default {}; + class ItemSolar : Default {}; + class ItemCables : Default {}; + class ItemBattery : Default {}; + class ItemScraps : Default {}; + class ItemCorrugated : Default {}; + class ItemCorrugatedLg : Default {}; + class 5Rnd_rollins_mag : Default{}; + class CSGAS : Default {}; + class sledge_swing : Default {}; + class stick_swing : Default {}; + class hatchet_swing : Default {}; + class WoodLog_EPOCH : Default {}; + class ItemCoolerE : Default {}; + class lighter_epoch : Default {}; + class Item_AssaultPack_cbr : Item_Packed_base + { + interactReturnOnUse = "B_AssaultPack_cbr"; + }; + class Item_AssaultPack_dgtl : Item_Packed_base + { + interactReturnOnUse = "B_AssaultPack_dgtl"; + }; + class Item_AssaultPack_khk : Item_Packed_base + { + interactReturnOnUse = "B_AssaultPack_khk"; + }; + class Item_AssaultPack_mcamo : Item_Packed_base + { + interactReturnOnUse = "B_AssaultPack_mcamo"; + }; + class Item_AssaultPack_ocamo : Item_Packed_base + { + interactReturnOnUse = "B_AssaultPack_ocamo"; + }; + class Item_AssaultPack_rgr : Item_Packed_base + { + interactReturnOnUse = "B_AssaultPack_rgr"; + }; + class Item_AssaultPack_sgg : Item_Packed_base + { + interactReturnOnUse = "B_AssaultPack_sgg"; + }; + class Item_AssaultPack_blk : Item_Packed_base + { + interactReturnOnUse = "B_AssaultPack_blk"; + }; + class Item_Carryall_cbr : Item_Packed_base + { + interactReturnOnUse = "B_Carryall_cbr"; + }; + class Item_Carryall_khk : Item_Packed_base + { + interactReturnOnUse = "B_Carryall_khk"; + }; + class Item_Carryall_mcamo : Item_Packed_base + { + interactReturnOnUse = "B_Carryall_mcamo"; + }; + class Item_Carryall_ocamo : Item_Packed_base + { + interactReturnOnUse = "B_Carryall_ocamo"; + }; + class Item_Carryall_oli : Item_Packed_base + { + interactReturnOnUse = "B_Carryall_oli"; + }; + class Item_Carryall_oucamo : Item_Packed_base + { + interactReturnOnUse = "B_Carryall_oucamo"; + }; + class Item_FieldPack_blk : Item_Packed_base + { + interactReturnOnUse = "B_FieldPack_blk"; + }; + class Item_FieldPack_cbr : Item_Packed_base + { + interactReturnOnUse = "B_FieldPack_cbr"; + }; + class Item_FieldPack_khk : Item_Packed_base + { + interactReturnOnUse = "B_FieldPack_khk"; + }; + class Item_FieldPack_ocamo : Item_Packed_base + { + interactReturnOnUse = "B_FieldPack_ocamo"; + }; + class Item_FieldPack_oli : Item_Packed_base + { + interactReturnOnUse = "B_FieldPack_oli"; + }; + class Item_FieldPack_oucamo : Item_Packed_base + { + interactReturnOnUse = "B_FieldPack_oucamo"; + }; + class Item_Kitbag_cbr : Item_Packed_base + { + interactReturnOnUse = "B_Kitbag_cbr"; + }; + class Item_Kitbag_mcamo : Item_Packed_base + { + interactReturnOnUse = "B_Kitbag_mcamo"; + }; + class Item_Kitbag_rgr : Item_Packed_base + { + interactReturnOnUse = "B_Kitbag_rgr"; + }; + class Item_Kitbag_sgg : Item_Packed_base + { + interactReturnOnUse = "B_Kitbag_sgg"; + }; + class Item_TacticalPack_blk : Item_Packed_base + { + interactReturnOnUse = "B_TacticalPack_blk"; + }; + class Item_TacticalPack_mcamo : Item_Packed_base + { + interactReturnOnUse = "B_TacticalPack_mcamo"; + }; + class Item_TacticalPack_ocamo : Item_Packed_base + { + interactReturnOnUse = "B_TacticalPack_ocamo"; + }; + class Item_TacticalPack_oli : Item_Packed_base + { + interactReturnOnUse = "B_TacticalPack_oli"; + }; + class Item_TacticalPack_rgr : Item_Packed_base + { + interactReturnOnUse = "B_TacticalPack_rgr"; + }; + class Item_smallbackpack_red : Item_Packed_base + { + interactReturnOnUse = "smallbackpack_red_epoch"; + }; + class Item_smallbackpack_green : Item_Packed_base + { + interactReturnOnUse = "smallbackpack_green_epoch"; + }; + class Item_smallbackpack_teal : Item_Packed_base + { + interactReturnOnUse = "smallbackpack_teal_epoch"; + }; + class Item_smallbackpack_pink : Item_Packed_base + { + interactReturnOnUse = "smallbackpack_pink_epoch"; + }; +}; diff --git a/Sources/epoch_config/sandbox_config.hpp b/Sources/epoch_config/sandbox_config.hpp index 8846b564..eca28b36 100644 --- a/Sources/epoch_config/sandbox_config.hpp +++ b/Sources/epoch_config/sandbox_config.hpp @@ -64,6 +64,7 @@ disableRandomization[] = {"All"}; #include "Configs\CfgEpochConfiguration.hpp" #include "Configs\CfgClientFunctions.hpp" #include "Configs\CfgObjectInteractions.hpp" +#include "Configs\CfgItemInteractions.hpp" // A3 specific configs #include "Configs\CfgFunctions.hpp"