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

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

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

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

Функции

class AnimalBase extends DayZAnimal RegisterHitComponentsForAI ()
 
void AnimalBase ()
 
override ArrowManagerBase GetArrowManager ()
 
override bool IsRefresherSignalingViable ()
 
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
36 {
37 return "CattleBellow_SoundSet";
38 }
39
40 override string ReleaseSound()
41 {
42 return "CattleMooA_SoundSet";
43 }
44}
46
47class Animal_CanisLupus extends AnimalBase
48{
49 override void RegisterHitComponentsForAI()
50 {
51 m_DefaultHitComponent = "Zone_Chest";
53
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
78{
79 override void RegisterHitComponentsForAI()
80 {
81 m_DefaultHitComponent = "Zone_Chest";
83
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}
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
143{
144 override void RegisterHitComponentsForAI()
145 {
146 m_DefaultHitComponent = "Zone_Chest";
148
153 }
154
155 override string CaptureSound()
156 {
157 return "HareSquawk_SoundSet";
158 }
159
160 override string ReleaseSound()
161 {
162 return "HareChirp_SoundSet";
163 }
164}
166
168{
169 override void RegisterHitComponentsForAI()
170 {
171 m_DefaultHitComponent = "Zone_Chest";
173
178 }
179
180 override string CaptureSound()
181 {
182 return "DeerBleat_SoundSet";
183 }
184
185 override string ReleaseSound()
186 {
187 return "DeerRoar_SoundSet";
188 }
189}
191
193{
194 override void RegisterHitComponentsForAI()
195 {
196 m_DefaultHitComponent = "Spine";
198
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
247{
248 override string GetDeadItemName()
249 {
250 return "DeadChicken_Brown";
251 }
252}
253
255{
256 override string GetDeadItemName()
257 {
258 return "DeadChicken_Spotted";
259 }
260}
261
263{
264 override string GetDeadItemName()
265 {
266 return "DeadChicken_White";
267 }
268}
269
270
271class Animal_OvisAries extends AnimalBase
272{
273 override void RegisterHitComponentsForAI()
274 {
275 m_DefaultHitComponent = "Zone_Chest";
277
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}
295class Animal_OvisAriesF extends Animal_OvisAries {}
296
298{
299 override void RegisterHitComponentsForAI()
300 {
301 m_DefaultHitComponent = "Zone_Spine";
303
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
322class Animal_SusScrofa extends AnimalBase
323{
324 override void RegisterHitComponentsForAI()
325 {
326 m_DefaultHitComponent = "Zone_Spine";
328
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
346class Animal_UrsusArctos extends AnimalBase
347{
348 override void RegisterHitComponentsForAI()
349 {
350 m_DefaultHitComponent = "Zone_Head";
352
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}
bool IsDamageDestroyed(ActionTarget target)
Definition ActionBase.c:913
GoatLight m_EyeLight
Definition AnimalBase.c:115
override bool IsDestructionBehaviour()
Definition AnimalBase.c:109
void ~Animal_CapraHircus_Spooky()
Definition AnimalBase.c:123
override bool ReplaceOnDeath()
Definition AnimalBase.c:217
override string ReleaseSound()
Definition AnimalBase.c:40
override string GetDeadItemName()
Definition AnimalBase.c:227
override string CaptureSound()
Definition AnimalBase.c:35
override bool ResistContaminatedEffect()
Definition AnimalBase.c:136
override bool IsDanger()
Definition AnimalBase.c:61
class Animal_CapraHircus extends AnimalBase GetDestructionBehaviour()
Definition AnimalBase.c:104
override bool CanBeSkinned()
Definition AnimalBase.c:222
override void OnDamageDestroyed(int oldLevel)
Definition AnimalBase.c:128
class AnimalBase extends DayZAnimal RegisterHitComponentsForAI()
Definition AnimalBase.c:23
override bool KeepHealthOnReplace()
Definition AnimalBase.c:232
override void EEInit()
Definition ContaminatedArea.c:42
Definition AnimalBase.c:45
Definition AnimalBase.c:190
Definition AnimalBase.c:255
override string GetDeadItemName()
Definition AnimalBase.c:256
Definition AnimalBase.c:239
override string GetDeadItemName()
Definition AnimalBase.c:240
Definition AnimalBase.c:78
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
223 {
224 return false;
225 }

◆ CaptureSound()

override string CaptureSound ( )
36 {
37 return "CattleBellow_SoundSet";
38 }

◆ EEInit()

override void EEInit ( )
protected
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 }

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

◆ GetArrowManager()

◆ GetDeadItemName()

override string GetDeadItemName ( )
protected
228 {
229 return "DeadRooster";
230 }

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

◆ GetDestructionBehaviour()

class Animal_CapraHircus extends AnimalBase GetDestructionBehaviour ( )
105 {
106 return "DestructionEffectSpookyGoat";
107 }

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

◆ IsDanger()

override bool IsDanger ( )
62 {
63 return true;
64 }

◆ IsDestructionBehaviour()

override bool IsDestructionBehaviour ( )
110 {
111 return true;
112 }

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

◆ IsRefresherSignalingViable()

override bool IsRefresherSignalingViable ( )
protected
36 {
37 return "CattleBellow_SoundSet";
38 }
39

◆ KeepHealthOnReplace()

override bool KeepHealthOnReplace ( )
protected
233 {
234 return false;
235 }

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

◆ OnDamageDestroyed()

override void OnDamageDestroyed ( int oldLevel)
protected
129 {
130 if (m_EyeLight)
131 m_EyeLight.FadeOut(15);
132
133 }

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

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

◆ RegisterHitComponentsForAI()

◆ ReleaseSound()

override string ReleaseSound ( )
41 {
42 return "CattleMooA_SoundSet";
43 }

◆ ReplaceOnDeath()

override bool ReplaceOnDeath ( )
protected
218 {
219 return true;
220 }

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

◆ ResistContaminatedEffect()

override bool ResistContaminatedEffect ( )
protected
137 {
138 return true;
139 }

◆ ~Animal_CapraHircus_Spooky()

124 {
125 if (m_EyeLight)
126 m_EyeLight.Destroy();
127 }

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

Переменные

◆ m_ArrowManager

◆ m_EyeLight