Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
mushroombase.c
Go to the documentation of this file.
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
29 }
30
31 override void EEOnCECreate()
32 {
33 int rand = Math.RandomInt(0,10);
34
35 if ( rand > 6 )
36 {
38 SetHealth( "", "", GetMaxHealth()*0.1 );
39 }
40 else if ( rand > 2 )
41 {
43 SetHealth( "", "", GetMaxHealth()*0.4 );
44 }
45 }
46};
ActionForceFeedSmallCB ActionForceFeed
void AddAction(typename actionName)
void Edible_Base()
Definition edible_base.c:25
void ChangeFoodStage(FoodStageType new_food_stage_type)
Definition enmath.c:7
override bool CanDecay()
override bool CanBeCookedOnStick()
Definition mushroombase.c:3
override bool CanBeCooked()
Definition mushroombase.c:8
override void EEOnCECreate()
override bool IsMushroom()
override void SetActions()
FoodStageType
Definition foodstage.c:2
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].