DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
RockBase.c
Go to the documentation of this file.
2{
3 override bool IsRock()
4 {
5 return true;
6 }
7
8 override bool CanBeAutoDeleted()
9 {
10 return false;
11 }
12
14 {
15 if (item)
16 {
17 switch (item.GetType())
18 {
19 case "Pickaxe":
20 return 4;
21 case "SledgeHammer":
22 return 8;
23 }
24 }
25
26 return 1;
27 }
28
29 /* Defines the yield of the action*/
31 {
32 if (item == null)
33 {
34 return;
35 }
36
37 switch (item.GetType())
38 {
39 case "Pickaxe":
40 case "SledgeHammer":
41 case "Hammer":
42 case "Mace":
43 output_map.Insert("Stone",1);
44 break;
45 case "PipeWrench":
46 case "Wrench":
47 case "Screwdriver":
48 case "Crowbar":
49 case "MeatTenderizer":
50 output_map.Insert("SmallStone",1);
51 break;
52 }
53 }
54
55 /*Return value defines how much damage the item will take*/
57 {
58 if (item)
59 {
60 switch (item.GetType())
61 {
62 case "SledgeHammer":
63 case "Pickaxe":
64 return 20;
65 case "Wrench":
66 case "Screwdriver":
67 case "MeatTenderizer":
68 return 25;
69 case "PipeWrench":
70 case "Crowbar":
71 return 50;
72 case "Hammer":
73 case "Mace":
74 return 40;
75 }
76 }
77
78 return 25;
79 }
80};
81
123// currently unused rocks
124/*
125
126 class Static_stone5_Trail_B: RockBase {};
127 class Static_stone5_Trail_G: RockBase {};
128 class Static_stone5_Trail_R: RockBase {};
129 class Static_stone5_Trail_Y: RockBase {};
130 class Static_stones_erosion: RockBase {};
131*/
132
133
134//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
135// obsolete
136/*class Static_r2_boulder1: RockBase
137{
138};
139class Static_r2_boulder2: RockBase
140{
141};
142class Static_small_stone_01_f: RockBase
143{
144};
145class Static_small_stone_02_f: RockBase
146{
147};
148class Static_stone_small_f: RockBase
149{
150};
151class Static_stone_small_w: RockBase
152{
153};
154class Static_bluntstone_01: RockBase
155{
156};
157class Static_bluntstone_01_lc: RockBase
158{
159};
160class Static_bluntstone_02: RockBase
161{
162};
163class Static_bluntstone_02_lc: RockBase
164{
165};
166class Static_bluntstone_03: RockBase
167{
168};
169class Static_SharpStone_01: RockBase
170{
171};
172class Static_sharpstone_01_lc: RockBase
173{
174};
175class Static_sharpstone_02: RockBase
176{
177};
178class Static_sharpstone_02_lc: RockBase
179{
180};
181class Static_sharpstone_03: RockBase
182{
183};
184class Static_sharpstone_03_lc: RockBase
185{
186};*/
float GetDamageToMiningItemEachDrop(ItemBase item)
Definition RockBase.c:56
void GetMaterialAndQuantityMap(ItemBase item, out map< string, int > output_map)
Definition RockBase.c:30
override bool IsRock()
Definition RockBase.c:3
override bool CanBeAutoDeleted()
Definition RockBase.c:8
int GetAmountOfDrops(ItemBase item)
Definition RockBase.c:13