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
//-----------------------------------------------------------------------------
17
class
TreeHard
:
PlantSuper
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
//-----------------------------------------------------------------------------
42
class
TreeSoft
:
PlantSuper
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
//-----------------------------------------------------------------------------
68
class
BushHard
:
PlantSuper
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
//-----------------------------------------------------------------------------
89
class
BushSoft
:
PlantSuper
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
};
BushHard
Definition
plant.c:69
BushSoft
For specific tree declaration see description of TreeHard.
Definition
plant.c:90
EntityAI
Definition
building.c:6
TreeHard
Specific tree class can be declared as: class TreeHard + _ + p3d filename (without extension)
Definition
plant.c:18
TreeSoft
For specific tree declaration see description of TreeHard.
Definition
plant.c:43
PlantSuper
WoodBase PlantSuper
Definition
plant.c:1
GetGame
proto native CGame GetGame()
Daten
4_world
entities
core
inherited
plant.c
Generated by
1.12.0