DayZ
1.24
Loading...
Searching...
No Matches
RockBase.c
Go to the documentation of this file.
1
class
RockBase
:
Object
2
{
3
override
bool
IsRock
()
4
{
5
return
true
;
6
}
7
8
override
bool
CanBeAutoDeleted
()
9
{
10
return
false
;
11
}
12
13
int
GetAmountOfDrops
(
ItemBase
item
)
14
{
15
return
-1;
16
}
17
18
/* Defines the yield of the action*/
19
void
GetMaterialAndQuantityMap
(
ItemBase
item
,
out
map<string, int>
output_map
)
20
{
21
if
(
item
==
null
)
22
return
;
23
24
switch
(
item
.GetType())
25
{
26
case
"Pickaxe"
:
27
case
"SledgeHammer"
:
28
case
"Hammer"
:
29
case
"Mace"
:
30
output_map
.Insert(
"Stone"
, 1);
31
break
;
32
case
"PipeWrench"
:
33
case
"Wrench"
:
34
case
"Screwdriver"
:
35
case
"Crowbar"
:
36
case
"MeatTenderizer"
:
37
output_map
.Insert(
"SmallStone"
, 1);
38
break
;
39
}
40
}
41
42
/*Return value defines how much damage the item will take*/
43
float
GetDamageToMiningItemEachDrop
(
ItemBase
item
)
44
{
45
if
(
item
)
46
{
47
switch
(
item
.GetType())
48
{
49
case
"SledgeHammer"
:
50
case
"Pickaxe"
:
51
return
20;
52
case
"Wrench"
:
53
case
"Screwdriver"
:
54
case
"MeatTenderizer"
:
55
return
25;
56
case
"PipeWrench"
:
57
case
"Crowbar"
:
58
return
50;
59
case
"Hammer"
:
60
case
"Mace"
:
61
return
40;
62
}
63
}
64
65
return
25;
66
}
67
};
68
69
class
Static_stone1
:
RockBase
{};
70
class
Static_stone2
:
RockBase
{};
71
class
Static_stone3
:
RockBase
{};
72
class
Static_stone4
:
RockBase
{};
73
class
Static_stone5
:
RockBase
{};
74
class
Static_rock_apart1
:
RockBase
{};
75
class
Static_rock_apart2
:
RockBase
{};
76
class
Static_rock_bright_apart1
:
RockBase
{};
77
class
Static_rock_bright_apart2
:
RockBase
{};
78
class
Static_rock_bright_monolith1
:
RockBase
{};
79
class
Static_rock_bright_monolith2
:
RockBase
{};
80
class
Static_rock_bright_monolith3
:
RockBase
{};
81
class
Static_rock_bright_monolith4
:
RockBase
{};
82
class
Static_rock_bright_spike1
:
RockBase
{};
83
class
Static_rock_bright_spike2
:
RockBase
{};
84
class
Static_rock_bright_spike3
:
RockBase
{};
85
class
Static_rock_bright_wallh1
:
RockBase
{};
86
class
Static_rock_bright_wallh2
:
RockBase
{};
87
class
Static_rock_bright_wallh3
:
RockBase
{};
88
class
Static_rock_bright_wallv
:
RockBase
{};
89
class
Static_rock_monolith1
:
RockBase
{};
90
class
Static_rock_monolith2
:
RockBase
{};
91
class
Static_rock_monolith3
:
RockBase
{};
92
class
Static_rock_monolith4
:
RockBase
{};
93
class
Static_rock_spike1
:
RockBase
{};
94
class
Static_rock_spike2
:
RockBase
{};
95
class
Static_rock_spike3
:
RockBase
{};
96
class
Static_rock_wallh1
:
RockBase
{};
97
class
Static_rock_wallh2
:
RockBase
{};
98
class
Static_rock_wallh3
:
RockBase
{};
99
class
Static_rock_wallv
:
RockBase
{};
100
class
Static_rock_stone6
:
RockBase
{};
101
class
Static_rock_stone6_moss
:
RockBase
{};
102
class
Static_rock_stone7
:
RockBase
{};
103
class
Static_rock_stone7_moss
:
RockBase
{};
104
class
Static_rock_stone8
:
RockBase
{};
105
class
Static_rock_stone8_moss
:
RockBase
{};
106
class
Static_rock_stone9
:
RockBase
{};
107
class
Static_rock_stone9_moss
:
RockBase
{};
108
class
Static_rock_stone10
:
RockBase
{};
109
class
Static_rock_stone10_moss
:
RockBase
{};
110
// currently unused rocks
111
/*
112
113
class Static_stone5_Trail_B: RockBase {};
114
class Static_stone5_Trail_G: RockBase {};
115
class Static_stone5_Trail_R: RockBase {};
116
class Static_stone5_Trail_Y: RockBase {};
117
class Static_stones_erosion: RockBase {};
118
*/
119
120
121
//jtomasik - it would be blast being able just to inherit it from RockBase, but the way static objects are handled most likely don't allow it? ask p cimo
122
// obsolete
123
/*class Static_r2_boulder1: RockBase
124
{
125
};
126
class Static_r2_boulder2: RockBase
127
{
128
};
129
class Static_small_stone_01_f: RockBase
130
{
131
};
132
class Static_small_stone_02_f: RockBase
133
{
134
};
135
class Static_stone_small_f: RockBase
136
{
137
};
138
class Static_stone_small_w: RockBase
139
{
140
};
141
class Static_bluntstone_01: RockBase
142
{
143
};
144
class Static_bluntstone_01_lc: RockBase
145
{
146
};
147
class Static_bluntstone_02: RockBase
148
{
149
};
150
class Static_bluntstone_02_lc: RockBase
151
{
152
};
153
class Static_bluntstone_03: RockBase
154
{
155
};
156
class Static_SharpStone_01: RockBase
157
{
158
};
159
class Static_sharpstone_01_lc: RockBase
160
{
161
};
162
class Static_sharpstone_02: RockBase
163
{
164
};
165
class Static_sharpstone_02_lc: RockBase
166
{
167
};
168
class Static_sharpstone_03: RockBase
169
{
170
};
171
class Static_sharpstone_03_lc: RockBase
172
{
173
};*/
ItemBase
Definition
InventoryItem.c:697
Object
Definition
ObjectTyped.c:2
Param3
Definition
EntityAI.c:95
RockBase
Definition
RockBase.c:2
RockBase::GetDamageToMiningItemEachDrop
float GetDamageToMiningItemEachDrop(ItemBase item)
Definition
RockBase.c:43
RockBase::CanBeAutoDeleted
override bool CanBeAutoDeleted()
Definition
RockBase.c:8
RockBase::GetAmountOfDrops
int GetAmountOfDrops(ItemBase item)
Definition
RockBase.c:13
RockBase::GetMaterialAndQuantityMap
void GetMaterialAndQuantityMap(ItemBase item, out map< string, int > output_map)
Definition
RockBase.c:19
RockBase::IsRock
override bool IsRock()
Definition
RockBase.c:3
Static_rock_apart1
Definition
RockBase.c:74
Static_rock_apart2
Definition
RockBase.c:75
Static_rock_bright_apart1
Definition
RockBase.c:76
Static_rock_bright_apart2
Definition
RockBase.c:77
Static_rock_bright_monolith1
Definition
RockBase.c:78
Static_rock_bright_monolith2
Definition
RockBase.c:79
Static_rock_bright_monolith3
Definition
RockBase.c:80
Static_rock_bright_monolith4
Definition
RockBase.c:81
Static_rock_bright_spike1
Definition
RockBase.c:82
Static_rock_bright_spike2
Definition
RockBase.c:83
Static_rock_bright_spike3
Definition
RockBase.c:84
Static_rock_bright_wallh1
Definition
RockBase.c:85
Static_rock_bright_wallh2
Definition
RockBase.c:86
Static_rock_bright_wallh3
Definition
RockBase.c:87
Static_rock_bright_wallv
Definition
RockBase.c:88
Static_rock_monolith1
Definition
RockBase.c:89
Static_rock_monolith2
Definition
RockBase.c:90
Static_rock_monolith3
Definition
RockBase.c:91
Static_rock_monolith4
Definition
RockBase.c:92
Static_rock_spike1
Definition
RockBase.c:93
Static_rock_spike2
Definition
RockBase.c:94
Static_rock_spike3
Definition
RockBase.c:95
Static_rock_stone10_moss
Definition
RockBase.c:109
Static_rock_stone10
Definition
RockBase.c:108
Static_rock_stone6_moss
Definition
RockBase.c:101
Static_rock_stone6
Definition
RockBase.c:100
Static_rock_stone7_moss
Definition
RockBase.c:103
Static_rock_stone7
Definition
RockBase.c:102
Static_rock_stone8_moss
Definition
RockBase.c:105
Static_rock_stone8
Definition
RockBase.c:104
Static_rock_stone9_moss
Definition
RockBase.c:107
Static_rock_stone9
Definition
RockBase.c:106
Static_rock_wallh1
Definition
RockBase.c:96
Static_rock_wallh2
Definition
RockBase.c:97
Static_rock_wallh3
Definition
RockBase.c:98
Static_rock_wallv
Definition
RockBase.c:99
Static_stone1
Definition
RockBase.c:69
Static_stone2
Definition
RockBase.c:70
Static_stone3
Definition
RockBase.c:71
Static_stone4
Definition
RockBase.c:72
Static_stone5
Definition
RockBase.c:73
scripts
4_World
Entities
RockBase.c
Generated by
1.10.0