Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
weaponchamberfromattmag.c
Go to the documentation of this file.
1 
2 // load bullet from att mag (no anim)
4 {
5  void WeaponChamberFromAttMag (Weapon_Base w = NULL, WeaponStateBase parent = NULL, int action = -1, int actionType = -1)
6  { }
7 
8  override void OnEntry (WeaponEventBase e)
9  {
10  super.OnEntry(e);
11  if(e)
12  {
13  int mi = m_weapon.GetCurrentMuzzle();
14  m_weapon.SetCharged(true);
15  m_weapon.SetWeaponOpen(false);
17  }
18  }
19  override void OnExit (WeaponEventBase e)
20  {
21  super.OnExit(e);
22  }
23 };
24 
25 // load bullet from att mag (no anim)
27 {
28  void WeaponChamberFromInnerMag (Weapon_Base w = NULL, WeaponStateBase parent = NULL, int action = -1, int actionType = -1)
29  { }
30 
31  override void OnEntry (WeaponEventBase e)
32  {
33  super.OnEntry(e);
34  if (e)
35  {
36  int mi = m_weapon.GetCurrentMuzzle();
38  }
39  }
40  override void OnExit (WeaponEventBase e)
41  {
42  super.OnExit(e);
43  }
44 };
45 
46 // load bullet from att mag (no anim)
47 class WeaponChamberFromAttMagOnExit extends WeaponStateBase
48 {
49  void WeaponChamberFromAttMagOnExit (Weapon_Base w = NULL, WeaponStateBase parent = NULL, int action = -1, int actionType = -1)
50  { }
51 
52  override void OnExit (WeaponEventBase e)
53  {
54  int mi = m_weapon.GetCurrentMuzzle();
56 
57  super.OnExit(e);
58  }
59 };
60 
61 // load bullet from att mag (no anim)
62 class WeaponEjectAndChamberFromAttMag extends WeaponEjectAllMuzzles
63 {
64  void WeaponEjectAndChamberFromAttMag (Weapon_Base w = NULL, WeaponStateBase parent = NULL, int action = -1, int actionType = -1)
65  { }
66 
67  override void OnExit (WeaponEventBase e)
68  {
69  if (e)
70  {
71  int mi = m_weapon.GetCurrentMuzzle();
73  }
74  super.OnExit(e);
75  }
76  override void OnAbort (WeaponEventBase e)
77  {
78  if (e)
79  {
80  int mi = m_weapon.GetCurrentMuzzle();
82  }
83  super.OnAbort(e);
84  }
85 };
86 
WeaponChamberFromInnerMag
Definition: weaponunjamming.c:6
OnAbort
override void OnAbort()
Definition: remotedetonator.c:300
OnExit
override void OnExit(HandEventBase e)
Definition: hand_states.c:28
pushToChamberFromAttachedMagazine
bool pushToChamberFromAttachedMagazine(Weapon_Base weapon, int muzzleIndex)
Definition: weapon_utils.c:1
WeaponEjectAllMuzzles
Definition: weaponchamberfromattmag.c:62
WeaponEventBase
signalize mechanism manipulation
Definition: events.c:34
WeaponStateBase
represent weapon state base
Definition: bullethide.c:1
m_weapon
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
Definition: guards.c:583
Weapon_Base
shorthand
Definition: boltactionrifle_base.c:5
pushToChamberFromInnerMagazine
bool pushToChamberFromInnerMagazine(Weapon_Base weapon, int muzzleIndex)
Definition: weapon_utils.c:33
WeaponChamberFromAttMag
Definition: weaponunjamming.c:1
OnEntry
HandStateEquipped OnEntry
Definition: weaponchambering.c:208