DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Figs.c
См. документацию.
2{
3 override bool CanBeCooked()
4 {
5 return true;
6 }
7
8 override bool CanBeCookedOnStick()
9 {
10 return true;
11 }
12
13 override bool IsFruit()
14 {
15 return true;
16 }
17
18 override bool CanDecay()
19 {
20 return true;
21 }
22
32
33 override void EEOnCECreate()
34 {
35 int rand = Math.RandomInt(0,10);
36 float baseTemp = GetGame().GetMission().GetWorldData().GetBaseEnvTemperature();
37
39 {
40 int randQ = Math.RandomFloat(10,80);
41 SetQuantity( randQ );
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 }
69}
ActionForceFeedSmallCB ActionForceFeed
Определения ActionForceFeed.c:11
void AddAction(typename actionName)
Определения AdvancedCommunication.c:220
override void SetQuantity()
Определения ConstructionInfoIcons.c:298
FoodStageType
Определения FoodStage.c:2
Определения ActionEatFruit.c:10
void Edible_Base()
Определения Edible_Base.c:25
void ChangeFoodStage(FoodStageType new_food_stage_type)
Определения Edible_Base.c:598
override void SetActions()
Определения Figs.c:23
override void EEOnCECreate()
Определения Figs.c:33
override bool CanBeCooked()
Определения Figs.c:3
override bool IsFruit()
Определения Figs.c:13
override bool CanDecay()
Определения Figs.c:18
override bool CanBeCookedOnStick()
Определения Figs.c:8
Определения Figs.c:2
Определения EnMath.c:7
DayZGame GetGame()
Определения gameplay.c:636
const float COLD_AREA_TEMPERATURE_THRESHOLD
Определения 3_Game/DayZ/constants.c:839
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].