class RecipeBaseSource
Derived classes
View all 223 descendants
- AttachHolster
- AttachHolsterPouch
- AttachPouch
- AttachPouchesHolster
- BloodTest
- ChelateWater
- CleanRags
- CleanWeapon
- CloseScientificBriefcase
- CraftArmbandFlag
- CraftArmbandRag
- CraftArmbandRaincoat
- CraftArrow
- CraftArrowBone
- CraftBait
- CraftBaseBallBatBarbed
- CraftBaseBallBatNailed
- CraftBloodBagIV
- CraftBolt
- CraftBoltFeather
- CraftBoneBait
- CraftBoneHook
- CraftBoneKnife
- CraftBow
- CraftBurlapStrips
- CraftCamoNetShelter
- CraftChristmasLightsHeadband
- CraftCookingStand
- CraftCourierBag
- CraftDrysackBag
- CraftFeathers
- CraftFenceKit
- CraftFireplace
- CraftFishingRod
- CraftFishNetTrap
- CraftFoxHeaddress
- CraftGasMask_Filter_Improvised
- CraftGhillieAttachment
- CraftGhillieBushrag
- CraftGhillieHood
- CraftGhillieSuit
- CraftGhillieTop
- CraftGorkaHelmetComplete
- CraftGutsRope
- CraftHandDrillKit
- CraftImprovisedBag
- CraftImprovisedExplosive
- CraftImprovisedLeatherBag
- CraftLeatherCourierBag
- CraftLeatherSack
- CraftLongTorch
- CraftMetalWire
- CraftRabbitSnare
- CraftRag
- CraftRagRope
- CraftSalineBagIV
- CraftShelterKit
- CraftSmallFishTrap
- CraftSpearBone
- CraftSpearStone
- CraftSplint
- CraftStoneKnife
- CraftSuppressor
- CraftTannedLeather
- CraftTerritoryFlagKit
- CraftTorch
- CraftTripWire
- CraftTruck01DoubleWheel
- CraftWatchtowerKit
- CraftWitchHoodCoif
- CraftWoodenCrate
- CraftWoodenHook
- CraftWoodenPlank
- CutOutSeeds
- DeCraftArmband
- DeCraftBow
- DeCraftCamoNetShelter
- DeCraftCarrierComplete
- DeCraftCarrierHolster
- DeCraftCarrierPouches
- DeCraftCookingStand
- DeCraftCourierBag
- DeCraftDetonator
- DeCraftFishingRod
- DeCraftFishNetTrap
- DeCraftGhillieAttachment
- DeCraftGhillieBushrag
- DeCraftGhillieHood
- DeCraftGhillieSuit
- DeCraftGhillieTop
- DeCraftHandDrillKit
- DeCraftImprovisedBag
- DeCraftImprovisedLeatherBag
- DeCraftLeatherCourierBag
- DeCraftLeatherSack
- DeCraftSnareTrap
- DeCraftSpear
- DeCraftSplint
- DeCraftTripWire
- DeCraftTruck01DoubleWheel
- DeCraftWoodenCrate
- DisinfectItem
- DrainLiquid
- ExtinguishTorch
- FillGasMask_Filter
- FillSyringe
- FuelChainsaw
- LoadMagazine
- OpenCan
- OpenScientificBriefcase
- PaintAK101
- PaintAK10130Mag
- PaintAK74
- PaintAK7430Mag
- PaintAK74HndgrdBlack
- PaintAK74HndgrdCamo
- PaintAK74WoodBttstckBlack
- PaintAK74WoodBttstckCamo
- PaintAKFoldingBttstck
- PaintAKMDrumMag
- PaintAKMPalm30Mag
- PaintAKPlasticBttstck
- PaintAKRailHndgrd
- PaintAKS74U
- PaintAKS74UBttstck
- PaintAKWoodBttstckBlack
- PaintAKWoodBttstckCamo
- PaintB95
- PaintBallisticHelmet
- PaintCMAG10
- PaintCMAG20
- PaintCMAG30
- PaintCMAG40
- PaintCz527
- PaintCz527CamoBlack
- PaintCz527CamoGreen
- PaintDarkMotohelmet
- PaintFirefighterAxe
- PaintGhillieAttBlack
- PaintGhillieAttGreen
- PaintGhillieAttGreenMossy
- PaintGhillieBushragBlack
- PaintGhillieBushragGreen
- PaintGhillieBushragGreenMossy
- PaintGhillieHoodBlack
- PaintGhillieHoodGreen
- PaintGhillieHoodGreenMossy
- PaintGhillieSuitBlack
- PaintGhillieSuitGreen
- PaintGhillieSuitGreenMossy
- PaintGhillieTopBlack
- PaintGhillieTopGreen
- PaintGhillieTopGreenMossy
- PaintGorkaHelmet
- PaintGorkaHelmetComplete
- PaintM4A1
- PaintM4CQBBttstck
- PaintM4MPBttstck
- PaintM4MPHndgrd
- PaintM4OEBttstck
- PaintM4PlasticHndgrd
- PaintM4RISHndgrd
- PaintMosin
- PaintMosinCamoBlack
- PaintMosinCamoGreen
- PaintMotohelmet
- PaintRuger1022
- PaintSawedoffMosin
- PaintSawedoffMosinCamoBlack
- PaintSawedoffMosinCamoGreen
- PaintSKS
- PaintZSh3PilotHelmet
- PatchItem
- PeelPotato
- PokeHolesBarrel
- PourLiquid
- PrepareAnimal
- PurifyWater
- RecipeTest
- RefuelTorch
- RepairElectric
- RepairEpoxy
- RepairEyePatch
- RepairPlanks
- RepairWithLeatherSewingKit
- RepairWithPliers
- RepairWithRags
- RepairWithSewingKit
- RepairWithTape
- RepairWithTireKit
- SawOFFB95
- SawoffFAMAS
- SawOffIzh18
- SawOffIzh18Shotgun
- SawOffMagnum
- SawoffMosin
- SawoffMosinPainted
- SawoffShotgunIzh43
- SawWoodenLog
- SharpenBroom
- SharpenLongStick
- SharpenMelee
- SharpenStick
- SplitBroom
- SplitFirewood
- SplitLongWoodenStick
- SplitStones
- Test
- UpgradeTorchWithLard
- UpgradeTorchWithLiquidFuel
- WriteLetter
Constructors 1
void RecipeBase()References Init(), BASE_CRAFT_ANIMATION_ID, m_Ingredients
Show 6 more
, m_IngredientsSorted, m_Name, m_NumberOfResults, m_RecipeUID, m_ResultSpawnDistance, and m_SoundCategoriesConstants 1
protected const int BASE_CRAFT_ANIMATION_ID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTINGReferenced by GetAnimationCommandUID(), GetRecipeAnimationInfo(), InsertIngredientEx()
Show 1 more
, RecipeBase()Members 33
string m_ItemsToCreate[MAXIMUM_RESULTS]Referenced by GetSoundCategory(), InsertIngredientEx(), RecipeBase()
Show 1 more
, RemoveIngredient()protected ref array<ref RecipeAnimationInfo> m_AnimationInfos = new array<ref RecipeAnimationInfo>()used for overriding animation based on ingredient
ItemBase m_Items[MAX_NUMBER_OF_INGREDIENTS]Referenced by CheckIngredientMatch()
ItemBase m_IngredientsSorted[MAX_NUMBER_OF_INGREDIENTS]if the recipe is valid, this array will contain all ingredients sorted against the recipe ingredients
string m_Nameint m_NumberOfResultsfloat m_AnimationLength = 1animation length in relative time units
float m_Specialty = 0value > 0 for roughness, value < 0 for precision
bool m_IsInstaRecipeshould this recipe be performed instantly without animation
bool m_AnywhereInInventoryis this recipe valid even when neither of the items is in hands
Referenced by CraftMetalWire.Init(), CraftTannedLeather.Init(), OpenCan.Init()
Show 2 more
, PeelPotato.Init(), and IsRecipeAnywhere()float m_MinQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]float m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]float m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]float m_MaxDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]bool m_IngredientUseSoftSkills[MAX_NUMBER_OF_INGREDIENTS]float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]bool m_ResultSetFullQuantity[MAXIMUM_RESULTS]float m_ResultSetQuantity[MAXIMUM_RESULTS]float m_ResultSetHealth[MAXIMUM_RESULTS]float m_ResultSpawnDistance[MAXIMUM_RESULTS]int m_ResultToInventory[MAXIMUM_RESULTS]int m_ResultInheritsHealth[MAXIMUM_RESULTS]int m_ResultInheritsColor[MAXIMUM_RESULTS]int m_ResultReplacesIngredient[MAXIMUM_RESULTS]bool m_ResultUseSoftSkills[MAXIMUM_RESULTS]Methods 33
void Init()Referenced by RecipeBase()
protected void SetAnimation(DayZPlayerConstants uid)References m_RecipeUID
float GetLengthInSecs()References m_AnimationLength
Referenced by PluginRecipesManager.GetRecipeLengthInSecs()
bool IsRepeatable()Referenced by PluginRecipesManager.GetIsRepeatable()
References array.Count(), array.Get(), Object.GetType()
Show 4 more
, CGame.IsKindOf(), m_Ingredients, m_IngredientsSorted, and m_Itemsvoid InsertIngredient(int index, string ingredient, DayZPlayerConstants uid = BASE_CRAFT_ANIMATION_ID, bool showItem = false)References InsertIngredientEx()
void InsertIngredientEx(int index, string ingredient, string soundCategory, DayZPlayerConstants uid = BASE_CRAFT_ANIMATION_ID, bool showItem = false)Referenced by CraftArmbandFlag.Init(), CraftArmbandRag.Init(), CraftArmbandRaincoat.Init()
Show 13 more
, CraftBoneKnife.Init(), CraftFeathers.Init(), CraftFenceKit.Init(), CraftFireplace.Init(), CraftHandDrillKit.Init(), CraftImprovisedExplosive.Init(), CraftRag.Init(), CraftShelterKit.Init(), CraftTerritoryFlagKit.Init(), CraftWatchtowerKit.Init(), OpenCan.Init(), InsertIngredient(), and SplitFirewood.Init()References array.Count(), array.Remove(), array.Remove()
Show 2 more
, m_Ingredients, and m_SoundCategoriesvoid AddResult(string item)bool IsInstaRecipe()References m_IsInstaRecipe
Referenced by PluginRecipesManager.GetIsInstaRecipe()
void SpawnItems(ItemBase ingredients[], PlayerBase player, array<ItemBase> spawned_objects)Referenced by PerformRecipe()
void ApplyModificationsResults(ItemBase sorted[], array<ItemBase> results, ItemBase result, PlayerBase player)References Class.Cast(), Class.Cast(), array.Get()
Show 21 more
, Object.GetHealth(), Object.GetHealth01(), Object.GetHealth01(), Object.GetMaxHealth(), ItemBase.IsItemBase(), Object.IsMagazine(), Debug.Log(), Magazine.ServerSetAmmoCount(), Magazine.ServerSetAmmoMax(), Object.SetHealth(), ItemBase.SetQuantity(), ItemBase.SetQuantityMax(), int.ToString(), MiscGameplayFunctions.TransferInventory(), MiscGameplayFunctions.TransferItemProperties(), m_NumberOfResults, m_ResultInheritsHealth, m_ResultReplacesIngredient, m_ResultSetFullQuantity, m_ResultSetHealth, and m_ResultSetQuantityReferenced by PerformRecipe()
void DeleleIngredientsPass()References array.Clear(), array.Count(), EntityAI.Delete()
Show 2 more
, array.Get(), and m_IngredientsToBeDeletedReferenced by PerformRecipe()
void ApplyModificationsIngredients(ItemBase sorted[], PlayerBase player)Referenced by PerformRecipe()
Referenced by CheckRecipe()
bool CheckRecipe(ItemBase item1, ItemBase item2, PlayerBase player)References CanDo(), CheckConditions(), Error()
Show 3 more
, PlayerBase.GetItemInHands(), IsRecipeAnywhere(), and m_IngredientsSortedvoid OnSelectedRecipe(ItemBase item1, ItemBase item2, PlayerBase player)void OnSelected(ItemBase item1, ItemBase item2, PlayerBase player)Referenced by OnSelectedRecipe()
void PerformRecipe(ItemBase item1, ItemBase item2, PlayerBase player)References ApplyModificationsIngredients(), ApplyModificationsResults(), CheckRecipe()
Show 7 more
, DeleleIngredientsPass(), Do(), Error(), Debug.Log(), SpawnItems(), m_IngredientsSorted, and m_SpecialtyReferenced by PluginRecipesManager.PerformRecipeServer()
void ApplySoftSkillsSpecialty(PlayerBase player)bool CanDo(ItemBase ingredients[], PlayerBase player)void Do(ItemBase ingredients[], PlayerBase player, array<ItemBase> results, float specialty_weight)Referenced by PerformRecipe()
References array.Count(), array.Get(), array.Get()
Show 4 more
, Object.GetType(), CGame.IsKindOf(), m_Ingredients, and m_SoundCategoriesReferenced by PluginRecipesManager.GetSoundCategory()
Referenced by ScriptConsoleItemsTab.ListItemRelatedActions()
returns a mask which marks ingredient positions for a given item in this recipe(for example mask of value 3 [....000011] means this item is both ingredient 1 and 2 in this recipe[from right to left])
int GetAnimationCommandUID()References BASE_CRAFT_ANIMATION_ID
Referenced by PluginRecipesManager.GetAnimationCommandUID()
RecipeAnimationInfo GetRecipeAnimationInfo(PlayerBase player, ItemBase mainItem, ItemBase target)Referenced by PluginRecipesManager.GetRecipeAnimationInfo()