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

Закрытые члены

override void OnEntry (WeaponEventBase e)
 
override void OnUpdate (float dt)
 
override void OnExit (WeaponEventBase e)
 

Подробное описание

Методы

◆ OnEntry()

override void OnEntry ( WeaponEventBase e)
inlineprivate
201 {
202 super.OnEntry(e);
203 if (e)
204 {
206 Magnum_Ejector ejector = Magnum_Ejector.Cast(m_weapon.GetAttachmentByType(Magnum_Ejector));
207 if(cylinder && ejector)
208 {
209 float a;
210 int mi = m_weapon.GetCurrentMuzzle();
211 switch(mi)
212 {
213 case 0:
215 break;
216 case 1:
218 cylinder.ResetAnimationPhase("Rotate_Cylinder", MAGNUM_ROTATION_POSITION_6 );
219 ejector.ResetAnimationPhase("Rotate_Ejector", MAGNUM_ROTATION_POSITION_6 );
220 break;
221 case 2:
223 break;
224 case 3:
226 break;
227 case 4:
229 break;
230 case 5:
232 break;
233 }
234 cylinder.SetAnimationPhase("Rotate_Cylinder", a );
235 ejector.SetAnimationPhase("Rotate_Ejector", a );
236 }
237 }
238 }
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
Definition Guards.c:604
const float MAGNUM_ROTATION_POSITION_2
Definition Magnum.c:4
const float MAGNUM_ROTATION_POSITION_1
Definition Magnum.c:3
const float MAGNUM_ROTATION_POSITION_3
Definition Magnum.c:5
const float MAGNUM_ROTATION_POSITION_4
Definition Magnum.c:6
const float MAGNUM_ROTATION_POSITION_6
Definition Magnum.c:8
const float MAGNUM_ROTATION_POSITION_5
Definition Magnum.c:7
const float MAGNUM_ROTATION_POSITION_0
Definition Magnum.c:2
Definition EntityAI.c:95

Перекрестные ссылки m_weapon, MAGNUM_ROTATION_POSITION_0, MAGNUM_ROTATION_POSITION_1, MAGNUM_ROTATION_POSITION_2, MAGNUM_ROTATION_POSITION_3, MAGNUM_ROTATION_POSITION_4, MAGNUM_ROTATION_POSITION_5 и MAGNUM_ROTATION_POSITION_6.

◆ OnExit()

override void OnExit ( WeaponEventBase e)
inlineprivate
255 {
256 if (e)
257 m_dtAccumulator = 0;
258 super.OnExit(e);
259 }
class WeaponFireWithEject extends WeaponFire m_dtAccumulator

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

◆ OnUpdate()

override void OnUpdate ( float dt)
inlineprivate
241 {
243
245 Class.CastTo(p, m_weapon.GetHierarchyParent());
246
247 int muzzleIndex = m_weapon.GetCurrentMuzzle();
248 float reloadTime = m_weapon.GetReloadTime(muzzleIndex);
250 if (m_weapon.CanProcessWeaponEvents())
251 m_weapon.ProcessWeaponEvent(new WeaponEventReloadTimeout(p));
252 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition DayZPlayerImplement.c:111
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), m_dtAccumulator и m_weapon.


Объявления и описания членов класса находятся в файле: