Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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  {
23  return;
24  }
25 
26  switch (item.GetType())
27  {
28  case "Pickaxe":
29  case "SledgeHammer":
30  case "Hammer":
31  case "Mace":
32  output_map.Insert("Stone",1);
33  break;
34  case "PipeWrench":
35  case "Wrench":
36  case "Screwdriver":
37  case "Crowbar":
38  case "MeatTenderizer":
39  output_map.Insert("SmallStone",1);
40  break;
41  }
42  }
43 
44  /*Return value defines how much damage the item will take*/
45  float GetDamageToMiningItemEachDrop(ItemBase item)
46  {
47  if (item)
48  {
49  switch (item.GetType())
50  {
51  case "SledgeHammer":
52  case "Pickaxe":
53  return 20;
54  case "Wrench":
55  case "Screwdriver":
56  case "MeatTenderizer":
57  return 25;
58  case "PipeWrench":
59  case "Crowbar":
60  return 50;
61  case "Hammer":
62  case "Mace":
63  return 40;
64  }
65  }
66 
67  return 25;
68  }
69 };
70 
112 // currently unused rocks
113 /*
114 
115  class Static_stone5_Trail_B: RockBase {};
116  class Static_stone5_Trail_G: RockBase {};
117  class Static_stone5_Trail_R: RockBase {};
118  class Static_stone5_Trail_Y: RockBase {};
119  class Static_stones_erosion: RockBase {};
120 */
121 
122 
123 //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
124 // obsolete
125 /*class Static_r2_boulder1: RockBase
126 {
127 };
128 class Static_r2_boulder2: RockBase
129 {
130 };
131 class Static_small_stone_01_f: RockBase
132 {
133 };
134 class Static_small_stone_02_f: RockBase
135 {
136 };
137 class Static_stone_small_f: RockBase
138 {
139 };
140 class Static_stone_small_w: RockBase
141 {
142 };
143 class Static_bluntstone_01: RockBase
144 {
145 };
146 class Static_bluntstone_01_lc: RockBase
147 {
148 };
149 class Static_bluntstone_02: RockBase
150 {
151 };
152 class Static_bluntstone_02_lc: RockBase
153 {
154 };
155 class Static_bluntstone_03: RockBase
156 {
157 };
158 class Static_SharpStone_01: RockBase
159 {
160 };
161 class Static_sharpstone_01_lc: RockBase
162 {
163 };
164 class Static_sharpstone_02: RockBase
165 {
166 };
167 class Static_sharpstone_02_lc: RockBase
168 {
169 };
170 class Static_sharpstone_03: RockBase
171 {
172 };
173 class Static_sharpstone_03_lc: RockBase
174 {
175 };*/
ItemBase
Definition: inventoryitem.c:730
Static_rock_wallh2
Definition: rockbase.c:99
Static_rock_apart1
Definition: rockbase.c:76
Static_rock_wallv
Definition: rockbase.c:101
Static_rock_bright_wallh3
Definition: rockbase.c:89
Static_rock_bright_spike3
Definition: rockbase.c:86
Static_rock_monolith3
Definition: rockbase.c:93
Static_stone2
Definition: rockbase.c:72
Static_rock_stone6
Definition: rockbase.c:102
Static_rock_bright_wallh2
Definition: rockbase.c:88
Static_rock_bright_spike2
Definition: rockbase.c:85
Static_rock_stone9_moss
Definition: rockbase.c:109
Static_stone5
Definition: rockbase.c:75
Static_rock_wallh1
Definition: rockbase.c:98
Static_rock_apart2
Definition: rockbase.c:77
Static_rock_bright_monolith2
Definition: rockbase.c:81
Static_rock_wallh3
Definition: rockbase.c:100
Static_rock_monolith4
Definition: rockbase.c:94
Static_stone1
Definition: rockbase.c:71
Static_rock_bright_monolith4
Definition: rockbase.c:83
Static_rock_stone8_moss
Definition: rockbase.c:107
Static_rock_stone10_moss
Definition: rockbase.c:111
map
map
Definition: controlsxboxnew.c:3
Static_rock_bright_monolith1
Definition: rockbase.c:80
Static_rock_stone9
Definition: rockbase.c:108
Object
Definition: objecttyped.c:1
Static_rock_bright_wallv
Definition: rockbase.c:90
RockBase
Definition: rockbase.c:1
Static_rock_spike2
Definition: rockbase.c:96
Static_rock_bright_apart2
Definition: rockbase.c:79
Static_stone4
Definition: rockbase.c:74
Static_rock_stone10
Definition: rockbase.c:110
Static_rock_bright_monolith3
Definition: rockbase.c:82
Static_rock_stone7_moss
Definition: rockbase.c:105
Static_rock_monolith1
Definition: rockbase.c:91
Static_rock_stone8
Definition: rockbase.c:106
Static_rock_spike1
Definition: rockbase.c:95
Static_rock_bright_apart1
Definition: rockbase.c:78
Static_rock_spike3
Definition: rockbase.c:97
Static_stone3
Definition: rockbase.c:73
Static_rock_stone6_moss
Definition: rockbase.c:103
Static_rock_monolith2
Definition: rockbase.c:92
Static_rock_stone7
Definition: rockbase.c:104
Static_rock_bright_wallh1
Definition: rockbase.c:87
Static_rock_bright_spike1
Definition: rockbase.c:84