27 RegisterNetSyncVariableInt(
"m_FoodStage.m_SelectionIndex", 0, 6);
28 RegisterNetSyncVariableInt(
"m_FoodStage.m_TextureIndex", 0, 6);
29 RegisterNetSyncVariableInt(
"m_FoodStage.m_MaterialIndex", 0, 6);
30 RegisterNetSyncVariableFloat(
"m_FoodStage.m_CookingTime", 0, 600, 0);
35 RegisterNetSyncVariableBool(
"m_MakeCookingSounds");
48 super.EEDelete(parent);
60 switch (
oldLoc.GetParent().GetType())
65 case "SharpWoodenStick":
116 super.OnVariablesSynchronized();
188 if (!
super.OnStoreLoad(
ctx, version))
216 super.AfterStoreLoad();
333 return new NutritionalProfile(
GetFoodEnergy(
item,
classname,
food_stage),
GetFoodWater(
item,
classname,
food_stage),
GetFoodNutritionalIndex(
item,
classname,
food_stage),
GetFoodTotalVolume(
item,
classname,
food_stage),
GetFoodToxicity(
item,
classname,
food_stage),
GetFoodAgents(
item,
classname,
food_stage),
GetFoodDigestibility(
item,
classname,
food_stage));
417 if (!
source.HasFoodStage())
452 Error(
"ReplaceEdibleWithNew - cannot use edible without player");
505 delta *= DayZGame.Cast(
GetGame()).GetFoodDecayModifier();
Param4< int, int, string, int > TSelectableActionInfoWithColor
void AddAction(typename actionName)
Edible_Base ItemBase ReplaceEdibleWithNewLambda(EntityAI old_item, string new_item_type, PlayerBase player)
InventoryLocationType
types of Inventory Location
override void InsertAgent(int agent, float count=1)
bool AddQuantity(float value, bool destroy_config=true, bool destroy_forced=false)
add item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
class JsonUndergroundAreaTriggerData GetPosition
override void OnStoreSave(ParamsWriteContext ctx)
void MakeSoundsOnClient(bool soundstate, CookingMethodType cookingMethod=CookingMethodType.NONE)
FoodStageType GetFoodStageType()
void OnConsume(float amount, PlayerBase consumer)
override bool CanBeCookedOnStick()
override string GetDebugText()
EffectSound m_SoundEffectCooking
DEPRECATED.
FoodStageType GetNextFoodStageType(CookingMethodType cooking_method)
const string SOUND_BAKING_DONE
override bool IsMushroom()
override void OnVariablesSynchronized()
void SoundCookingStart(string sound_name)
override bool OnStoreLoad(ParamsReadContext ctx, int version)
bool Consume(float amount, PlayerBase consumer)
const string SOUND_BAKING_START
static float GetFoodTotalVolume(ItemBase item, string classname="", int food_stage=0)
string GetFoodStageName(FoodStageType food_stage_type)
static float GetFoodEnergy(ItemBase item, string classname="", int food_stage=0)
CookingMethodType m_CookedByMethod
void SetCookingTime(float time)
static float GetFoodDigestibility(ItemBase item, string classname="", int food_stage=0)
override void ProcessDecay(float delta, bool hasRootAsPlayer)
override bool CanBeCooked()
FoodStageType GetLastDecayStage()
override void SetActions()
override bool CanHaveTemperature()
SoundOnVehicle m_SoundCooking
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
const string SOUND_BURNING_DONE
static float GetFoodToxicity(ItemBase item, string classname="", int food_stage=0)
static float GetFoodNutritionalIndex(ItemBase item, string classname="", int food_stage=0)
override void EEDelete(EntityAI parent)
static int GetFoodAgents(ItemBase item, string classname="", int food_stage=0)
override bool CanProcessDecay()
void ChangeFoodStage(FoodStageType new_food_stage_type)
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
bool CanChangeToNewStage(CookingMethodType cooking_method)
ref FoodStage m_FoodStage
FoodStageType m_LastDecayStage
override void AfterStoreLoad()
void ReplaceEdibleWithNew(string typeName)
static NutritionalProfile GetNutritionalProfile(ItemBase item, string classname="", int food_stage=0)
const string DIRECT_COOKING_SLOT_NAME
static float GetFoodWater(ItemBase item, string classname="", int food_stage=0)
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
void TransferFoodStage(notnull Edible_Base source)
Wrapper class for managing sound through SEffectManager.
override void Stop()
Stops sound.
provides access to slot configuration
static proto native owned string GetSlotName(int id)
converts slot_id to string
Manager class for managing Effect (EffectParticle, EffectSound)
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Serialization general interface. Serializer API works with:
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
const float DECAY_FOOD_BAKED_FRVG
const float DECAY_FOOD_CAN_OPEN
const float DECAY_FOOD_RAW_FRVG
const int DECAY_TIMER_RANDOM_PERCENTAGE
const int DECAY_FOOD_FRVG_DRIED_CHANCE
const float DECAY_FOOD_RAW_MEAT
const float DECAY_FOOD_BAKED_MEAT
const float DECAY_FOOD_BOILED_MEAT
const float DECAY_FOOD_BOILED_FRVG
const float DECAY_FOOD_DRIED_MEAT
const float DECAY_FOOD_RAW_CORPSE
const float DECAY_RATE_ON_PLAYER
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
const int SAT_DEBUG_ACTION