Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
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
g_Game
.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
g_Game
.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
g_Game
.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
g_Game
.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
For specific tree declaration see description of TreeHard default values for hard bushes.
Definition
plant.c:69
BushHard::OnTreeCutDown
override void OnTreeCutDown(EntityAI cutting_entity)
Definition
plant.c:70
BushHard::IsBush
override bool IsBush()
Definition
plant.c:76
BushHard::CanBeAutoDeleted
override bool CanBeAutoDeleted()
Definition
plant.c:81
BushSoft
For specific tree declaration see description of TreeHard.
Definition
plant.c:90
BushSoft::OnTreeCutDown
override void OnTreeCutDown(EntityAI cutting_entity)
Definition
plant.c:91
BushSoft::IsBush
override bool IsBush()
Definition
plant.c:96
BushSoft::CanBeAutoDeleted
override bool CanBeAutoDeleted()
Definition
plant.c:101
EntityAI
Definition
inventoryitem.c:2
TreeHard
Specific tree class can be declared as: class TreeHard + _ + p3d filename (without extension).
Definition
plant.c:18
TreeHard::OnTreeCutDown
override void OnTreeCutDown(EntityAI cutting_entity)
Definition
plant.c:19
TreeHard::HasPlayerCollisionSound
override bool HasPlayerCollisionSound()
Definition
plant.c:34
TreeHard::IsTree
override bool IsTree()
Definition
plant.c:24
TreeHard::CanBeAutoDeleted
override bool CanBeAutoDeleted()
Definition
plant.c:29
TreeSoft
For specific tree declaration see description of TreeHard.
Definition
plant.c:43
TreeSoft::OnTreeCutDown
override void OnTreeCutDown(EntityAI cutting_entity)
Definition
plant.c:44
TreeSoft::HasPlayerCollisionSound
override bool HasPlayerCollisionSound()
Definition
plant.c:59
TreeSoft::IsTree
override bool IsTree()
Definition
plant.c:49
TreeSoft::CanBeAutoDeleted
override bool CanBeAutoDeleted()
Definition
plant.c:54
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
PlantSuper
WoodBase PlantSuper
Definition
plant.c:1
Games
Dayz
scripts
4_world
entities
core
inherited
plant.c
Generated by
1.17.0