Dayz Explorer 1.28.160049
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{
19 override void OnTreeCutDown(EntityAI cutting_entity)
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 override bool HasPlayerCollisionSound()
35 {
36 return false;
37 }
38};
39
40//-----------------------------------------------------------------------------
43{
44 override void OnTreeCutDown(EntityAI cutting_entity)
45 {
46 GetGame().RPCSingleParam(cutting_entity, PlantType.TREE_SOFT, null, true);
47 }
48
49 override bool IsTree()
50 {
51 return true;
52 }
53
54 override bool CanBeAutoDeleted()
55 {
56 return false;
57 }
58
59 override bool HasPlayerCollisionSound()
60 {
61 return false;
62 }
63};
64
65//-----------------------------------------------------------------------------
69{
70 override void OnTreeCutDown(EntityAI cutting_entity)
71 {
72
73 GetGame().RPCSingleParam(cutting_entity, PlantType.BUSH_HARD, null, true);
74 }
75
76 override bool IsBush()
77 {
78 return true;
79 }
80
81 override bool CanBeAutoDeleted()
82 {
83 return false;
84 }
85};
86
87//-----------------------------------------------------------------------------
90{
91 override void OnTreeCutDown(EntityAI cutting_entity)
92 {
93 GetGame().RPCSingleParam(cutting_entity, PlantType.BUSH_SOFT, null, true);
94 }
95
96 override bool IsBush()
97 {
98 return true;
99 }
100
101 override bool CanBeAutoDeleted()
102 {
103 return false;
104 }
105};
For specific tree declaration see description of TreeHard.
Definition plant.c:90
Specific tree class can be declared as: class TreeHard + _ + p3d filename (without extension)
Definition plant.c:18
For specific tree declaration see description of TreeHard.
Definition plant.c:43
WoodBase PlantSuper
Definition plant.c:1
proto native CGame GetGame()