Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
animalbase.c
Go to the documentation of this file.
1 class AnimalBase extends DayZAnimal
2 {
3  protected ref ArrowManagerBase m_ArrowManager;
4 
5  void AnimalBase()
6  {
8  }
9 
11  {
12  return m_ArrowManager;
13  }
14 
15  override bool IsRefresherSignalingViable()
16  {
17  return false;
18  }
19 }
20 
21 class Animal_BosTaurus extends AnimalBase
22 {
24  {
25  m_DefaultHitComponent = "Zone_Chest";
27 
28  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Head", 5);
29  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Belly", 25);
30  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Neck", 65);
31  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Chest", 50);
32  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Legs", 70);
33  }
34 
35  override string CaptureSound()
36  {
37  return "CattleBellow_SoundSet";
38  }
39 
40  override string ReleaseSound()
41  {
42  return "CattleMooA_SoundSet";
43  }
44 }
45 class Animal_BosTaurusF extends Animal_BosTaurus {}
46 
47 class Animal_CanisLupus extends AnimalBase
48 {
50  {
51  m_DefaultHitComponent = "Zone_Chest";
53 
54  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Head", 2);
55  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Neck", 65);
56  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Chest", 50);
57  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Legs_Back", 75);
58  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Legs_Front", 70);
59  }
60 
61  override bool IsDanger()
62  {
63  return true;
64  }
65 
66  override string CaptureSound()
67  {
68  return "WolfWhimper_SoundSet";
69  }
70 
71  override string ReleaseSound()
72  {
73  return "WolfBark_SoundSet";
74  }
75 }
76 
77 class Animal_CapraHircus extends AnimalBase
78 {
79  override void RegisterHitComponentsForAI()
80  {
81  m_DefaultHitComponent = "Zone_Chest";
83 
84  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Head", 4);
85  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Neck", 65);
86  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Chest", 50);
87  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Legs", 70);
88  }
89 
90  override string CaptureSound()
91  {
92  return "GoatBleat_B_SoundSet";
93  }
94 
95  override string ReleaseSound()
96  {
97  return "GoatBleat_A_SoundSet";
98  }
99 
100 }
101 class Animal_CapraHircusF extends Animal_CapraHircus {}
102 class Animal_CapraHircus_Spooky extends Animal_CapraHircus
103 {
104  override string GetDestructionBehaviour()
105  {
106  return "DestructionEffectSpookyGoat";
107  }
108 
109  override bool IsDestructionBehaviour()
110  {
111  return true;
112  }
113 
114  #ifndef SERVER
115  protected GoatLight m_EyeLight;
116 
117  override void EEInit()
118  {
119  if (!IsDamageDestroyed())//walking up to or connecting to already dead zombies check
120  m_EyeLight = GoatLight.Cast(ScriptedLightBase.CreateLightAtObjMemoryPoint(GoatLight, this, "GoatLight"));
121  }
122 
124  {
125  if (m_EyeLight)
126  m_EyeLight.Destroy();
127  }
128  override void OnDamageDestroyed(int oldLevel)
129  {
130  if (m_EyeLight)
131  m_EyeLight.FadeOut(15);
132 
133  }
134  #endif
135 
136  override bool ResistContaminatedEffect()
137  {
138  return true;
139  }
140 }
141 
142 class Animal_CapreolusCapreolus extends AnimalBase
143 {
144  override void RegisterHitComponentsForAI()
145  {
146  m_DefaultHitComponent = "Zone_Chest";
148 
149  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Head", 4);
150  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Neck", 65);
151  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Chest", 50);
152  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Legs", 70);
153  }
154 
155  override string CaptureSound()
156  {
157  return "HareSquawk_SoundSet";
158  }
159 
160  override string ReleaseSound()
161  {
162  return "HareChirp_SoundSet";
163  }
164 }
165 class Animal_CapreolusCapreolusF extends Animal_CapreolusCapreolus {}
166 
167 class Animal_CervusElaphus extends AnimalBase
168 {
169  override void RegisterHitComponentsForAI()
170  {
171  m_DefaultHitComponent = "Zone_Chest";
173 
174  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Head", 2);
175  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Neck", 65);
176  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Chest", 50);
177  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Legs", 70);
178  }
179 
180  override string CaptureSound()
181  {
182  return "DeerBleat_SoundSet";
183  }
184 
185  override string ReleaseSound()
186  {
187  return "DeerRoar_SoundSet";
188  }
189 }
190 class Animal_CervusElaphusF extends Animal_CervusElaphus {}
191 
193 {
194  override void RegisterHitComponentsForAI()
195  {
196  m_DefaultHitComponent = "Spine";
198 
199  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Head", 1);
200  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Head", 5);
201  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Head", 20);
202  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "LArm1", 33);
203  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "RArm1", 33);
204  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Spine", 70);
205  }
206 
207  override string CaptureSound()
208  {
209  return "HenScream_SoundSet";
210  }
211 
212  override string ReleaseSound()
213  {
214  return "HenCluck_X_SoundSet";
215  }
216 
217  override bool ReplaceOnDeath()
218  {
219  return true;
220  }
221 
222  override bool CanBeSkinned()
223  {
224  return false;
225  }
226 
227  override string GetDeadItemName()
228  {
229  return "DeadRooster";
230  }
231 
232  override bool KeepHealthOnReplace()
233  {
234  return false;
235  }
236 }
237 
239 {
240  override string GetDeadItemName()
241  {
242  return "DeadChicken_Brown";
243  }
244 }
245 
246 class Animal_GallusGallusDomesticusF_Brown extends Animal_GallusGallusDomesticusF
247 {
248  override string GetDeadItemName()
249  {
250  return "DeadChicken_Brown";
251  }
252 }
253 
254 class Animal_GallusGallusDomesticusF_Spotted extends Animal_GallusGallusDomesticusF
255 {
256  override string GetDeadItemName()
257  {
258  return "DeadChicken_Spotted";
259  }
260 }
261 
262 class Animal_GallusGallusDomesticusF_White extends Animal_GallusGallusDomesticusF
263 {
264  override string GetDeadItemName()
265  {
266  return "DeadChicken_White";
267  }
268 }
269 
270 
271 class Animal_OvisAries extends AnimalBase
272 {
273  override void RegisterHitComponentsForAI()
274  {
275  m_DefaultHitComponent = "Zone_Chest";
277 
278  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Head", 4);
279  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Chest", 15);
280  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Neck", 55);
281  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Chest", 50);
282  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Legs", 70);
283  }
284 
285  override string CaptureSound()
286  {
287  return "SheepBleat_E_SoundSet";
288  }
289 
290  override string ReleaseSound()
291  {
292  return "SheepBleat_G_SoundSet";
293  }
294 }
295 class Animal_OvisAriesF extends Animal_OvisAries {}
296 
297 class Animal_SusDomesticus extends AnimalBase
298 {
299  override void RegisterHitComponentsForAI()
300  {
301  m_DefaultHitComponent = "Zone_Spine";
303 
304  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Head", 5);
305  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Belly", 25);
306  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Neck", 65);
307  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Chest", 50);
308  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Legs", 70);
309  }
310 
311  override string CaptureSound()
312  {
313  return "HogSqueal_SoundSet";
314  }
315 
316  override string ReleaseSound()
317  {
318  return "HogGrunt_G_SoundSet";
319  }
320 }
321 
322 class Animal_SusScrofa extends AnimalBase
323 {
324  override void RegisterHitComponentsForAI()
325  {
326  m_DefaultHitComponent = "Zone_Spine";
328 
329  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Head", 3);
330  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Neck", 55);
331  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Belly", 15);
332  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Legs", 70);
333  }
334 
335  override string CaptureSound()
336  {
337  return "HogSqueal_SoundSet";
338  }
339 
340  override string ReleaseSound()
341  {
342  return "HogGrunt_G_SoundSet";
343  }
344 }
345 
346 class Animal_UrsusArctos extends AnimalBase
347 {
348  override void RegisterHitComponentsForAI()
349  {
350  m_DefaultHitComponent = "Zone_Head";
352 
353  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Head", 25);
354  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Belly", 50);
355  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Neck", 65);
356  DayZAIHitComponentHelpers.RegisterHitComponent(m_HitComponentsForAI, "Zone_Legs", 70);
357  }
358 
359  override bool IsDanger()
360  {
361  return true;
362  }
363 
364  override string CaptureSound()
365  {
366  return "BearSnarl_SoundSet";
367  }
368 
369  override string ReleaseSound()
370  {
371  return "BearRoarShort_SoundSet";
372  }
373 }
ReplaceOnDeath
override bool ReplaceOnDeath()
Definition: animalbase.c:217
m_HitComponentsForAI
protected ref array< ref DayZAIHitComponent > m_HitComponentsForAI
Melee hit components (AI targeting)
Definition: dayzplayer.c:587
Animal_BosTaurus
Definition: animalbase.c:45
m_EyeLight
protected GoatLight m_EyeLight
Definition: animalbase.c:115
RegisterHitComponentsForAI
class AnimalBase extends DayZAnimal RegisterHitComponentsForAI()
Definition: animalbase.c:23
IsDamageDestroyed
protected bool IsDamageDestroyed(ActionTarget target)
Definition: actionbase.c:913
~Animal_CapraHircus_Spooky
void ~Animal_CapraHircus_Spooky()
Definition: animalbase.c:123
Animal_CervusElaphus
Definition: animalbase.c:190
Animal_GallusGallusDomesticus
Definition: animalbase.c:238
OnDamageDestroyed
override void OnDamageDestroyed(int oldLevel)
Definition: animalbase.c:128
GetDeadItemName
override string GetDeadItemName()
Definition: animalbase.c:227
AnimalBase
void AnimalBase()
Definition: animalbase.c:4
EEInit
override void EEInit()
Definition: animalbase.c:117
ReleaseSound
override string ReleaseSound()
Definition: animalbase.c:40
AnimalBase
Definition: animalbase.c:77
IsDestructionBehaviour
override bool IsDestructionBehaviour()
Definition: animalbase.c:109
GetArrowManager
override ArrowManagerBase GetArrowManager()
Definition: animalbase.c:9
ScriptedLightBase
Definition: pointlightbase.c:1
IsDanger
override bool IsDanger()
Definition: animalbase.c:61
KeepHealthOnReplace
override bool KeepHealthOnReplace()
Definition: animalbase.c:232
m_DefaultHitComponent
protected string m_DefaultHitComponent
Definition: dayzplayer.c:588
CanBeSkinned
override bool CanBeSkinned()
Definition: animalbase.c:222
CaptureSound
override string CaptureSound()
Definition: animalbase.c:35
m_ArrowManager
protected ref ArrowManagerBase m_ArrowManager
Definition: animalbase.c:2
ResistContaminatedEffect
override bool ResistContaminatedEffect()
Definition: animalbase.c:136
DayZAIHitComponentHelpers
Definition: dayzaihitcomponents.c:8
GetDestructionBehaviour
class Animal_CapraHircus extends AnimalBase GetDestructionBehaviour()
Definition: animalbase.c:104
m_DefaultHitPositionComponent
protected string m_DefaultHitPositionComponent
Definition: dayzplayer.c:589
Animal_GallusGallusDomesticusF
Definition: animalbase.c:254
IsRefresherSignalingViable
override bool IsRefresherSignalingViable()
Definition: animalbase.c:14
ArrowManagerBase
Definition: arrowmanagerbase.c:1
DayZAnimal
Definition: animalbase.c:1