DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл AnimalBase.c

См. исходные тексты.

Структуры данных

class  DayZAnimal
 
class  Animal_BosTaurus
 
class  AnimalBase
 
class  Animal_CervusElaphus
 
class  Animal_RangiferTarandus
 
class  Animal_GallusGallusDomesticus
 
class  Animal_GallusGallusDomesticusF
 

Функции

class AnimalBase extends DayZAnimal RegisterHitComponentsForAI ()
 
void AnimalBase ()
 
override ArrowManagerBase GetArrowManager ()
 
override bool IsRefresherSignalingViable ()
 
override bool IsSelfAdjustingTemperature ()
 
override void DeathUpdate ()
 
override string CaptureSound ()
 
override string ReleaseSound ()
 
override bool IsDanger ()
 
class Animal_CapraHircus extends AnimalBase GetDestructionBehaviour ()
 
override bool IsDestructionBehaviour ()
 
override void EEInit ()
 
void ~Animal_CapraHircus_Spooky ()
 
override void OnDamageDestroyed (int oldLevel)
 
override bool ResistContaminatedEffect ()
 
override bool ReplaceOnDeath ()
 
override bool CanBeSkinned ()
 
override string GetDeadItemName ()
 
override bool KeepHealthOnReplace ()
 

Переменные

ref ArrowManagerBase m_ArrowManager
 
GoatLight m_EyeLight
 

Функции

◆ AnimalBase()

void AnimalBase ( )
protected
52 {
53 return "CattleBellow_SoundSet";
54 }
55
56 override string ReleaseSound()
57 {
58 return "CattleMooA_SoundSet";
59 }
60}
62
63class Animal_CanisLupus extends AnimalBase
64{
65 override void RegisterHitComponentsForAI()
66 {
67 m_DefaultHitComponent = "Zone_Chest";
69
75 }
76
77 override bool IsDanger()
78 {
79 return true;
80 }
81
82 override string CaptureSound()
83 {
84 return "WolfWhimper_SoundSet";
85 }
86
87 override string ReleaseSound()
88 {
89 return "WolfBark_SoundSet";
90 }
91}
92
94{
95 override void RegisterHitComponentsForAI()
96 {
97 m_DefaultHitComponent = "Zone_Chest";
99
104 }
105
106 override string CaptureSound()
107 {
108 return "GoatBleat_B_SoundSet";
109 }
110
111 override string ReleaseSound()
112 {
113 return "GoatBleat_A_SoundSet";
114 }
115
116}
119{
120 override string GetDestructionBehaviour()
121 {
122 return "DestructionEffectSpookyGoat";
123 }
124
125 override bool IsDestructionBehaviour()
126 {
127 return true;
128 }
129
130 #ifndef SERVER
131 protected GoatLight m_EyeLight;
132
133 override void EEInit()
134 {
135 if (!IsDamageDestroyed())//walking up to or connecting to already dead zombies check
136 m_EyeLight = GoatLight.Cast(ScriptedLightBase.CreateLightAtObjMemoryPoint(GoatLight, this, "GoatLight"));
137 }
138
140 {
141 if (m_EyeLight)
142 m_EyeLight.Destroy();
143 }
144 override void OnDamageDestroyed(int oldLevel)
145 {
146 if (m_EyeLight)
147 m_EyeLight.FadeOut(15);
148
149 }
150 #endif
151
152 override bool ResistContaminatedEffect()
153 {
154 return true;
155 }
156}
157
159{
160 override void RegisterHitComponentsForAI()
161 {
162 m_DefaultHitComponent = "Zone_Chest";
164
169 }
170
171 override string CaptureSound()
172 {
173 return "HareSquawk_SoundSet";
174 }
175
176 override string ReleaseSound()
177 {
178 return "HareChirp_SoundSet";
179 }
180}
182
184{
185 override void RegisterHitComponentsForAI()
186 {
187 m_DefaultHitComponent = "Zone_Chest";
189
194 }
195
196 override string CaptureSound()
197 {
198 return "DeerBleat_SoundSet";
199 }
200
201 override string ReleaseSound()
202 {
203 return "DeerRoar_SoundSet";
204 }
205}
207
209{
210 override void RegisterHitComponentsForAI()
211 {
212 m_DefaultHitComponent = "Zone_Chest";
214
219 }
220
221 override string CaptureSound()
222 {
223 return "DeerBleat_SoundSet";
224 }
225
226 override string ReleaseSound()
227 {
228 return "DeerRoar_SoundSet";
229 }
230}
232
234{
235 override void RegisterHitComponentsForAI()
236 {
237 m_DefaultHitComponent = "Spine";
239
246 }
247
248 override string CaptureSound()
249 {
250 return "HenScream_SoundSet";
251 }
252
253 override string ReleaseSound()
254 {
255 return "HenCluck_X_SoundSet";
256 }
257
258 override bool ReplaceOnDeath()
259 {
260 return true;
261 }
262
263 override bool CanBeSkinned()
264 {
265 return false;
266 }
267
268 override string GetDeadItemName()
269 {
270 return "DeadRooster";
271 }
272
273 override bool KeepHealthOnReplace()
274 {
275 return false;
276 }
277}
278
280{
281 override string GetDeadItemName()
282 {
283 return "DeadChicken_Brown";
284 }
285}
286
288{
289 override string GetDeadItemName()
290 {
291 return "DeadChicken_Brown";
292 }
293}
294
296{
297 override string GetDeadItemName()
298 {
299 return "DeadChicken_Spotted";
300 }
301}
302
304{
305 override string GetDeadItemName()
306 {
307 return "DeadChicken_White";
308 }
309}
310
311
312class Animal_OvisAries extends AnimalBase
313{
314 override void RegisterHitComponentsForAI()
315 {
316 m_DefaultHitComponent = "Zone_Chest";
318
324 }
325
326 override string CaptureSound()
327 {
328 return "SheepBleat_E_SoundSet";
329 }
330
331 override string ReleaseSound()
332 {
333 return "SheepBleat_G_SoundSet";
334 }
335}
336class Animal_OvisAriesF extends Animal_OvisAries {}
337
339{
340 override void RegisterHitComponentsForAI()
341 {
342 m_DefaultHitComponent = "Zone_Spine";
344
350 }
351
352 override string CaptureSound()
353 {
354 return "HogSqueal_SoundSet";
355 }
356
357 override string ReleaseSound()
358 {
359 return "HogGrunt_G_SoundSet";
360 }
361}
362
363class Animal_SusScrofa extends AnimalBase
364{
365 override void RegisterHitComponentsForAI()
366 {
367 m_DefaultHitComponent = "Zone_Spine";
369
374 }
375
376 override string CaptureSound()
377 {
378 return "HogSqueal_SoundSet";
379 }
380
381 override string ReleaseSound()
382 {
383 return "HogGrunt_G_SoundSet";
384 }
385}
386
387class Animal_UrsusArctos extends AnimalBase
388{
389 override void RegisterHitComponentsForAI()
390 {
391 m_DefaultHitComponent = "Zone_Head";
393
398 }
399
400 override bool IsDanger()
401 {
402 return true;
403 }
404
405 override string CaptureSound()
406 {
407 return "BearSnarl_SoundSet";
408 }
409
410 override string ReleaseSound()
411 {
412 return "BearRoarShort_SoundSet";
413 }
414}
415
417{
418 override void RegisterHitComponentsForAI()
419 {
420 m_DefaultHitComponent = "Spine";
422
427 }
428
429 override string CaptureSound()
430 {
431 return "HenScream_SoundSet";
432 }
433
434 override string ReleaseSound()
435 {
436 return "HenCluck_X_SoundSet";
437 }
438
439 override bool ReplaceOnDeath()
440 {
441 return true;
442 }
443
444 override bool CanBeSkinned()
445 {
446 return false;
447 }
448
449 override string GetDeadItemName()
450 {
451 return "DeadRabbit";
452 }
453
454 override bool KeepHealthOnReplace()
455 {
456 return false;
457 }
458}
459
461{
462 override void RegisterHitComponentsForAI()
463 {
464 m_DefaultHitComponent = "Spine";
466
471 }
472
473 override string CaptureSound()
474 {
475 return "HenScream_SoundSet";
476 }
477
478 override string ReleaseSound()
479 {
480 return "HenCluck_X_SoundSet";
481 }
482
483 override bool ReplaceOnDeath()
484 {
485 return true;
486 }
487
488 override bool CanBeSkinned()
489 {
490 return false;
491 }
492
493 override string GetDeadItemName()
494 {
495 return "DeadFox";
496 }
497
498 override bool KeepHealthOnReplace()
499 {
500 return false;
501 }
502}
GoatLight m_EyeLight
Definition AnimalBase.c:131
override bool IsDestructionBehaviour()
Definition AnimalBase.c:125
void ~Animal_CapraHircus_Spooky()
Definition AnimalBase.c:139
override bool ReplaceOnDeath()
Definition AnimalBase.c:258
override string ReleaseSound()
Definition AnimalBase.c:56
override string GetDeadItemName()
Definition AnimalBase.c:268
override string CaptureSound()
Definition AnimalBase.c:51
override bool ResistContaminatedEffect()
Definition AnimalBase.c:152
override bool IsDanger()
Definition AnimalBase.c:77
class Animal_CapraHircus extends AnimalBase GetDestructionBehaviour()
Definition AnimalBase.c:120
override bool CanBeSkinned()
Definition AnimalBase.c:263
override void OnDamageDestroyed(int oldLevel)
Definition AnimalBase.c:144
class AnimalBase extends DayZAnimal RegisterHitComponentsForAI()
Definition AnimalBase.c:39
override bool KeepHealthOnReplace()
Definition AnimalBase.c:273
override void EEInit()
Definition ContaminatedArea.c:42
override bool CanBeSkinned()
Definition DayZAnimal.c:60
Definition AnimalBase.c:61
Definition AnimalBase.c:206
Definition AnimalBase.c:296
override string GetDeadItemName()
Definition AnimalBase.c:297
Definition AnimalBase.c:280
override string GetDeadItemName()
Definition AnimalBase.c:281
Definition AnimalBase.c:231
Definition AnimalBase.c:94
Definition DayZAIHitComponents.c:9
static void RegisterHitComponent(array< ref DayZAIHitComponent > pHitComponents, string pName, float pWeight)
Register Hit Component for AI targeting.
Definition DayZAIHitComponents.c:21
Definition EntityAI.c:95
Definition PointLightBase.c:2
ref array< ref DayZAIHitComponent > m_HitComponentsForAI
Melee hit components (AI targeting)
Definition dayzplayer.c:587
void RegisterHitComponentsForAI()
register hit components for AI melee (used by attacking AI)
Definition dayzplayer.c:463
string m_DefaultHitComponent
Definition dayzplayer.c:588
string m_DefaultHitPositionComponent
Definition dayzplayer.c:589

◆ CanBeSkinned()

override bool CanBeSkinned ( )
protected
264 {
265 return false;
266 }

◆ CaptureSound()

override string CaptureSound ( )
52 {
53 return "CattleBellow_SoundSet";
54 }

◆ DeathUpdate()

◆ EEInit()

override void EEInit ( )
protected
134 {
135 if (!IsDamageDestroyed())//walking up to or connecting to already dead zombies check
136 m_EyeLight = GoatLight.Cast(ScriptedLightBase.CreateLightAtObjMemoryPoint(GoatLight, this, "GoatLight"));
137 }

Перекрестные ссылки m_EyeLight.

◆ GetArrowManager()

◆ GetDeadItemName()

override string GetDeadItemName ( )
protected
269 {
270 return "DeadRooster";
271 }

Используется в Entity::DeathUpdate().

◆ GetDestructionBehaviour()

class Animal_CapraHircus extends AnimalBase GetDestructionBehaviour ( )
121 {
122 return "DestructionEffectSpookyGoat";
123 }

Используется в Entity::AttemptDestructionBehaviour().

◆ IsDanger()

override bool IsDanger ( )
78 {
79 return true;
80 }

◆ IsDestructionBehaviour()

override bool IsDestructionBehaviour ( )
126 {
127 return true;
128 }

Используется в Entity::AttemptDestructionBehaviour().

◆ IsRefresherSignalingViable()

override bool IsRefresherSignalingViable ( )
protected
52 {
53 return "CattleBellow_SoundSet";
54 }
55

◆ IsSelfAdjustingTemperature()

override bool IsSelfAdjustingTemperature ( )
protected
57 {
58 return "CattleMooA_SoundSet";
59 }
60}

Используется в Entity::ProcessVariables().

◆ KeepHealthOnReplace()

override bool KeepHealthOnReplace ( )
protected
274 {
275 return false;
276 }

Используется в Entity::DeathUpdate().

◆ OnDamageDestroyed()

override void OnDamageDestroyed ( int oldLevel)
protected
145 {
146 if (m_EyeLight)
147 m_EyeLight.FadeOut(15);
148
149 }

Перекрестные ссылки m_EyeLight.

Используется в Entity::EEHealthLevelChanged().

◆ RegisterHitComponentsForAI()

◆ ReleaseSound()

override string ReleaseSound ( )
57 {
58 return "CattleMooA_SoundSet";
59 }

◆ ReplaceOnDeath()

override bool ReplaceOnDeath ( )
protected
259 {
260 return true;
261 }

Используется в Entity::EEKilled().

◆ ResistContaminatedEffect()

override bool ResistContaminatedEffect ( )
protected
153 {
154 return true;
155 }

◆ ~Animal_CapraHircus_Spooky()

140 {
141 if (m_EyeLight)
142 m_EyeLight.Destroy();
143 }

Перекрестные ссылки m_EyeLight.

Переменные

◆ m_ArrowManager

◆ m_EyeLight