DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
NutritionalProfile.c
Go to the documentation of this file.
2{
3 float m_Energy;
7 float m_Toxicity;
12
13 void NutritionalProfile(float energy, float water_content, float nutritional_index, float fullness_index, float toxicity, int agents, float digestibility)
14 {
15 m_Energy = energy;
16 m_WaterContent = water_content;
17 m_NutritionalIndex = nutritional_index;
18 m_FullnessIndex = fullness_index;
19 m_Toxicity = toxicity;
20 m_Agents = agents;
21 m_Digestibility = digestibility;
22 }
23
24 void MarkAsLiquid(int liquid_type, string classname)
25 {
26 m_LiquidType = liquid_type;
27 m_LiquidClassname = classname;
28 }
29
31 {
32 return m_Agents;
33 }
34
36 {
37 return m_LiquidType;
38 }
39
41 {
42 return m_LiquidClassname;
43 }
44
45 bool IsLiquid()
46 {
47 return (m_LiquidType > 0);
48 }
49
50 float GetEnergy()
51 {
52 return m_Energy;
53 }
54
56 {
57 return m_WaterContent;
58 }
59
61 {
62 return m_NutritionalIndex;
63 }
64
66 {
67 return m_FullnessIndex;
68 }
69
71 {
72 return m_Toxicity;
73 }
74
76 {
77 return m_Digestibility;
78 }
79}
void MarkAsLiquid(int liquid_type, string classname)
void NutritionalProfile(float energy, float water_content, float nutritional_index, float fullness_index, float toxicity, int agents, float digestibility)