DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс GreenBellPepper
+ Граф наследования:GreenBellPepper:

Закрытые члены

override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsFruit ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override void EEOnCECreate ()
 
- Закрытые члены унаследованные от Edible_Base
void RefreshAudio ()
 
void RemoveAudio ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
override FoodStage GetFoodStage ()
 
override bool IsMeat ()
 
override bool IsCorpse ()
 
override bool IsFruit ()
 
override bool IsMushroom ()
 
FoodStageType GetFoodStageType ()
 
bool IsFoodRaw ()
 
bool IsFoodBaked ()
 
bool IsFoodBoiled ()
 
bool IsFoodDried ()
 
bool IsFoodBurned ()
 
bool IsFoodRotten ()
 
void ChangeFoodStage (FoodStageType new_food_stage_type)
 
FoodStageType GetNextFoodStageType (CookingMethodType cooking_method)
 
string GetFoodStageName (FoodStageType food_stage_type)
 
bool CanChangeToNewStage (CookingMethodType cooking_method)
 
void TransferFoodStage (notnull Edible_Base source)
 
void OnFoodStageChange (FoodStageType stageOld, FoodStageType stageNew)
 called on server
 
void HandleFoodStageChangeAgents (FoodStageType stageOld, FoodStageType stageNew)
 removes select agents on foodstage transitions
 
float GetCookingTime ()
 
void SetCookingTime (float time)
 
void ResetCookingTime ()
 
void ReplaceEdibleWithNew (string typeName)
 
override void SetActions ()
 
void SoundCookingStart (string sound_name)
 
void SoundCookingStop ()
 
override bool CanDecay ()
 
override bool CanProcessDecay ()
 
override void ProcessDecay (float delta, bool hasRootAsPlayer)
 
void UpdateVaporParticle ()
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
override string GetDebugText ()
 
override float GetBaitEffectivity ()
 
float GetDecayTimer ()
 
float GetDecayDelta ()
 
FoodStageType GetLastDecayStage ()
 
void UpdateVisuals ()
 

Дополнительные унаследованные члены

- Закрытые статические члены унаследованные от Edible_Base
static float GetFoodTotalVolume (ItemBase item, string classname="", int food_stage=0)
 
static float GetFoodEnergy (ItemBase item, string classname="", int food_stage=0)
 
static float GetFoodWater (ItemBase item, string classname="", int food_stage=0)
 
static float GetFoodNutritionalIndex (ItemBase item, string classname="", int food_stage=0)
 
static float GetFoodToxicity (ItemBase item, string classname="", int food_stage=0)
 
static int GetFoodAgents (ItemBase item, string classname="", int food_stage=0)
 
static float GetFoodDigestibility (ItemBase item, string classname="", int food_stage=0)
 
static NutritionalProfile GetNutritionalProfile (ItemBase item, string classname="", int food_stage=0)
 
- Закрытые данные унаследованные от Edible_Base
bool m_MakeCookingSounds
 
SoundOnVehicle m_SoundCooking
 
EffectSound m_SoundEffectCooking
 DEPRECATED.
 
string m_SoundPlaying
 
ref FoodStage m_FoodStage
 
float m_DecayTimer
 
float m_DecayDelta = 0.0
 
FoodStageType m_LastDecayStage = FoodStageType.NONE
 
ParticleSource m_HotVaporParticle
 

Подробное описание

Методы

◆ CanBeCooked()

override bool CanBeCooked ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick()

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanDecay()

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ EEOnCECreate()

override void EEOnCECreate ( )
inlineprivate
34 {
35 int rand = Math.RandomInt(0,10);
36 float baseTemp = GetGame().GetMission().GetWorldData().GetBaseEnvTemperature();
37
39 {
40 int randQ = Math.RandomFloat(10,80);
42
43 if ( rand >= 9 )
44 {
46 SetHealth( "", "", GetMaxHealth()*0.1 );
47
48 }
49 else
50 {
52 SetHealth( "", "", GetMaxHealth()*0.4 );
53 }
54 }
55 else
56 {
57 if ( rand > 6 )
58 {
60 SetHealth( "", "", GetMaxHealth()*0.1 );
61 }
62 else if ( rand > 2 )
63 {
65 SetHealth( "", "", GetMaxHealth()*0.4 );
66 }
67 }
68 }
FoodStageType
Definition FoodStage.c:2
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Set item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
Definition ItemBase.c:7981
void ChangeFoodStage(FoodStageType new_food_stage_type)
Definition Edible_Base.c:509
Definition constants.c:638
Definition EnMath.c:7
Definition EntityAI.c:95
proto native CGame GetGame()
const float COLD_AREA_TEMPERATURE_THRESHOLD
Definition constants.c:760
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].

Перекрестные ссылки Edible_Base::ChangeFoodStage(), GameConstants::COLD_AREA_TEMPERATURE_THRESHOLD, GetGame(), Math::RandomFloat(), Math::RandomInt() и SetQuantity().

◆ IsFruit()

override bool IsFruit ( )
inlineprivate
14 {
15 return true;
16 }

◆ SetActions()

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
31 }
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
Definition ActionCreateIndoorFireplace.c:2
Definition ActionCreateIndoorOven.c:2
Definition ActionEat.c:65

Перекрестные ссылки AddAction().


Объявления и описания членов класса находятся в файле: