DayZ 1.24
Loading...
Searching...
No Matches
Plant.c
Go to the documentation of this file.
1/*enum PlantType
2 {
3 TREE_HARD = 0,
4 TREE_SOFT = 1,
5 BUSH_HARD = 2,
6 BUSH_SOFT = 3,
7 }*/
8//-----------------------------------------------------------------------------
18{
20 {
21 GetGame().RPCSingleParam(cutting_entity, PlantType.TREE_HARD, null, true);
22 }
23
24 override bool IsTree()
25 {
26 return true;
27 }
28
29 override bool CanBeAutoDeleted()
30 {
31 return false;
32 }
33};
34
35//-----------------------------------------------------------------------------
38{
40 {
41 GetGame().RPCSingleParam(cutting_entity, PlantType.TREE_SOFT, null, true);
42 }
43
44 override bool IsTree()
45 {
46 return true;
47 }
48
49 override bool CanBeAutoDeleted()
50 {
51 return false;
52 }
53};
54
55//-----------------------------------------------------------------------------
59{
61 {
62
63 GetGame().RPCSingleParam(cutting_entity, PlantType.BUSH_HARD, null, true);
64 }
65
66 override bool IsBush()
67 {
68 return true;
69 }
70
71 override bool CanBeAutoDeleted()
72 {
73 return false;
74 }
75};
76
77//-----------------------------------------------------------------------------
80{
82 {
83 GetGame().RPCSingleParam(cutting_entity, PlantType.BUSH_SOFT, null, true);
84 }
85
86 override bool IsBush()
87 {
88 return true;
89 }
90
91 override bool CanBeAutoDeleted()
92 {
93 return false;
94 }
95};
WoodBase PlantSuper
Definition Plant.c:1
override bool IsBush()
Definition Plant.c:66
override void OnTreeCutDown(EntityAI cutting_entity)
Definition Plant.c:60
override bool CanBeAutoDeleted()
Definition Plant.c:71
For specific tree declaration see description of TreeHard.
Definition Plant.c:80
override bool CanBeAutoDeleted()
Definition Plant.c:91
override bool IsBush()
Definition Plant.c:86
override void OnTreeCutDown(EntityAI cutting_entity)
Definition Plant.c:81
Specific tree class can be declared as: class TreeHard + _ + p3d filename (without extension)
Definition Plant.c:18
override bool IsTree()
Definition Plant.c:24
override void OnTreeCutDown(EntityAI cutting_entity)
Definition Plant.c:19
override bool CanBeAutoDeleted()
Definition Plant.c:29
For specific tree declaration see description of TreeHard.
Definition Plant.c:38
override bool CanBeAutoDeleted()
Definition Plant.c:49
override void OnTreeCutDown(EntityAI cutting_entity)
Definition Plant.c:39
override bool IsTree()
Definition Plant.c:44
proto native CGame GetGame()