Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
bearsteakmeat.c
Go to the documentation of this file.
1class BearSteakMeat extends Edible_Base
2{
3 override bool CanBeCooked()
4 {
5 return true;
6 }
7
8 override bool CanBeCookedOnStick()
9 {
10 return true;
11 }
12
13 override bool IsMeat()
14 {
15 return true;
16 }
17
18 override bool CanDecay()
19 {
20 return true;
21 }
22
24 {
25 int keepAgentsRnd = 0;
27 {
28 keepAgentsRnd |= eAgents.SALMONELLA;
29 }
30
31 switch (stageNew)
32 {
33 case FoodStageType.BAKED:
34 case FoodStageType.BOILED:
35 case FoodStageType.DRIED:
36 RemoveAllAgentsExcept(keepAgentsRnd|eAgents.BRAIN|eAgents.HEAVYMETAL);
37 break;
38
39 case FoodStageType.BURNED:
40 RemoveAllAgentsExcept(eAgents.SALMONELLA|eAgents.HEAVYMETAL);
41 break;
42 }
43 }
44
45 override void SetActions()
46 {
47 super.SetActions();
48
51
54 }
55}
ActionForceFeedSmallCB ActionForceFeed
void AddAction(typename actionName)
override bool CanDecay()
override bool CanBeCookedOnStick()
override bool CanBeCooked()
override void HandleFoodStageChangeAgents(FoodStageType stageOld, FoodStageType stageNew)
override bool IsMeat()
override void SetActions()
Definition enmath.c:7
eAgents
Definition eagents.c:3
FoodStageType
Definition foodstage.c:2
const float SALMONELLA_RETENTION_PREDATOR
Definition constants.c:1031
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
Definition enmath.c:126
override void RemoveAllAgentsExcept(int agent_to_keep)
Definition itembase.c:8890