DayZ
1.24
Loading...
Searching...
No Matches
MushroomBase.c
Go to the documentation of this file.
1
class
MushroomBase
:
Edible_Base
2
{
3
override
bool
CanBeCookedOnStick
()
4
{
5
return
true
;
6
}
7
8
override
bool
CanBeCooked
()
9
{
10
return
true
;
11
}
12
13
override
bool
IsMushroom
()
14
{
15
return
true
;
16
}
17
18
override
bool
CanDecay
()
19
{
20
return
true
;
21
}
22
23
override
void
SetActions
()
24
{
25
super
.SetActions();
26
27
AddAction
(ActionForceFeed);
28
AddAction
(
ActionEat
);
29
}
30
31
override
void
EEOnCECreate
()
32
{
33
int
rand
=
Math
.
RandomInt
(0, 10);
34
35
if
(
rand
> 6)
36
{
37
ChangeFoodStage
(
FoodStageType
.ROTTEN);
38
SetHealth(
""
,
""
, GetMaxHealth() * 0.1);
39
}
40
else
if
(
rand
> 2)
41
{
42
ChangeFoodStage
(
FoodStageType
.DRIED);
43
SetHealth(
""
,
""
, GetMaxHealth() * 0.4);
44
}
45
}
46
};
AddAction
void AddAction(typename actionName)
Definition
AdvancedCommunication.c:212
FoodStageType
FoodStageType
Definition
FoodStage.c:2
ActionEat
Definition
ActionEat.c:63
Edible_Base
Definition
Edible_Base.c:2
Edible_Base::ChangeFoodStage
void ChangeFoodStage(FoodStageType new_food_stage_type)
Definition
Edible_Base.c:394
Math
Definition
EnMath.c:7
MushroomBase
Definition
MushroomBase.c:2
MushroomBase::SetActions
override void SetActions()
Definition
MushroomBase.c:23
MushroomBase::CanDecay
override bool CanDecay()
Definition
MushroomBase.c:18
MushroomBase::EEOnCECreate
override void EEOnCECreate()
Definition
MushroomBase.c:31
MushroomBase::CanBeCookedOnStick
override bool CanBeCookedOnStick()
Definition
MushroomBase.c:3
MushroomBase::CanBeCooked
override bool CanBeCooked()
Definition
MushroomBase.c:8
MushroomBase::IsMushroom
override bool IsMushroom()
Definition
MushroomBase.c:13
Param3
Definition
EntityAI.c:95
Math::RandomInt
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
scripts
4_World
Entities
ItemBase
Gear
Food
MushroomBase.c
Generated by
1.10.0