Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
dayzcreatureaitype.c
Go to the documentation of this file.
2{
3 string m_CfgPath;
5
10
12 {
13 m_CfgPath = "CfgVehicles " + GetName() + " ";
14 m_AnimEventsCfgPath = m_CfgPath + "AnimEvents ";
15 LoadParams();
16 }
17
19 {
21
22 string soundsCfgPath = m_AnimEventsCfgPath + "Sounds ";
23
24 int soundCount = g_Game.ConfigGetChildrenCount(soundsCfgPath);
25 for (int i = 0; i < soundCount; i++)
26 {
27 string soundName;
28 g_Game.ConfigGetChildName(soundsCfgPath, i, soundName);
29 string soundPath = soundsCfgPath + soundName + " ";
30 AnimSoundEvent soundEvent = new AnimSoundEvent(soundPath);
31 if (soundEvent.IsValid())
32 m_AnimSoundEvents.Set(soundEvent.m_iID, soundEvent);
33 }
34 }
35
37 {
39
40 string soundsCfgPath = m_AnimEventsCfgPath + "SoundVoice ";
41
42 int soundCount = g_Game.ConfigGetChildrenCount(soundsCfgPath);
43 for (int i = 0; i < soundCount; i++)
44 {
45 string soundName;
46 g_Game.ConfigGetChildName(soundsCfgPath, i, soundName);
47 string soundPath = soundsCfgPath + soundName + " ";
48 AnimSoundVoiceEvent soundEvent = new AnimSoundVoiceEvent(soundPath);
49 if (soundEvent.IsValid())
50 m_AnimSoundVoiceEvents.Set(soundEvent.m_iID, soundEvent);
51 }
52 }
53
55 {
57 string stepsCfgPath = m_AnimEventsCfgPath + "Steps ";
58 int stepsCount = g_Game.ConfigGetChildrenCount(stepsCfgPath);
59
60 for (int i = 0; i < stepsCount; i++)
61 {
62 string stepName;
63 g_Game.ConfigGetChildName(stepsCfgPath, i, stepName);
64 string stepPath = stepsCfgPath + stepName + " ";
65 AnimStepEvent stepEvent = new AnimStepEvent(stepPath);
66 m_AnimStepEvents.Set(stepEvent.m_iID, stepEvent);
67 }
68 }
69
71 {
73
74 string damagesCfgPath = m_AnimEventsCfgPath + "Damages ";
75 int damagesCount = g_Game.ConfigGetChildrenCount(damagesCfgPath);
76
77 for (int i = 0; i < damagesCount; i++)
78 {
79 string damageName;
80 g_Game.ConfigGetChildName(damagesCfgPath, i, damageName);
81 string damagePath = damagesCfgPath + damageName + " ";
82 AnimDamageEvent damageEvent = new AnimDamageEvent(damagePath);
83 m_AnimDamageEvents.Set(damageEvent.m_iID, damageEvent);
84 }
85 }
86
94
95 AnimStepEvent GetStepEvent(int event_id)
96 {
97 return m_AnimStepEvents.Get(event_id);
98 }
99
100 AnimSoundEvent GetSoundEvent(int event_id)
101 {
102 return m_AnimSoundEvents.Get(event_id);
103 }
104
105 AnimSoundVoiceEvent GetSoundVoiceEvent(int event_id)
106 {
107 return m_AnimSoundVoiceEvents.Get(event_id);
108 }
109
110 AnimDamageEvent GetDamageEvent(int event_id)
111 {
112 return m_AnimDamageEvents.Get(event_id);
113 }
114
120}
AnimSoundEvent GetSoundEvent(int event_id)
ref map< int, ref AnimSoundVoiceEvent > m_AnimSoundVoiceEvents
ref array< ref AnimSoundEvent > m_animSoundEvents
DEPRECATED.
ref array< ref AnimSoundVoiceEvent > m_animSoundVoiceEvents
ref array< ref AnimDamageEvent > m_animDamageEvents
ref map< int, ref AnimSoundEvent > m_AnimSoundEvents
AnimSoundVoiceEvent GetSoundVoiceEvent(int event_id)
AnimStepEvent GetStepEvent(int event_id)
ref map< int, ref AnimDamageEvent > m_AnimDamageEvents
AnimDamageEvent GetDamageEvent(int event_id)
ref map< int, ref AnimStepEvent > m_AnimStepEvents
ref array< ref AnimStepEvent > m_animStepEvents
proto native owned string GetName()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZGame g_Game
Definition dayzgame.c:3942