DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Tomato.c
См. документацию.
2{
3 override bool CanBeCookedOnStick()
4 {
5 return true;
6 }
7
8 override bool CanBeCooked()
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);
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
FoodStageType
Определения FoodStage.c:2
Определения ActionEatFruit.c:10
proto native Mission GetMission()
void Edible_Base()
Определения Edible_Base.c:25
void ChangeFoodStage(FoodStageType new_food_stage_type)
Определения Edible_Base.c:598
Определения constants.c:659
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Определения PileOfWoodenPlanks.c:88
Определения EnMath.c:7
WorldData GetWorldData()
Определения gameplay.c:743
override bool CanBeCooked()
Определения Tomato.c:8
override bool IsFruit()
Определения Tomato.c:13
override void SetActions()
Определения Tomato.c:23
override bool CanBeCookedOnStick()
Определения Tomato.c:3
override void EEOnCECreate()
Определения Tomato.c:33
override bool CanDecay()
Определения Tomato.c:18
Определения Tomato.c:2
float GetBaseEnvTemperature()
Определения WorldData.c:206
proto native CGame GetGame()
const float COLD_AREA_TEMPERATURE_THRESHOLD
Определения constants.c:789
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].