DayZ 1.24
Loading...
Searching...
No Matches
WeaponChamberFromAttMag.c
Go to the documentation of this file.
1
2// load bullet from att mag (no anim)
4{
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{
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)
47class WeaponChamberFromAttMagOnExit extends WeaponStateBase
48{
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)
62class WeaponEjectAndChamberFromAttMag extends WeaponEjectAllMuzzles
63{
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
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
Definition Guards.c:602
override void OnExit(WeaponEventBase e)
void WeaponEjectAndChamberFromAttMag(Weapon_Base w=NULL, WeaponStateBase parent=NULL, int action=-1, int actionType=-1)
override void OnAbort(WeaponEventBase e)
signalize mechanism manipulation
Definition Events.c:35
represent weapon state base
Definition BulletHide.c:2
void WeaponChamberFromAttMagOnExit(Weapon_Base w=NULL, WeaponStateBase parent=NULL, int action=-1, int actionType=-1)
override void OnEntry(WeaponEventBase e)
void WeaponChamberFromInnerMag(Weapon_Base w=NULL, WeaponStateBase parent=NULL, int action=-1, int actionType=-1)
void WeaponChamberFromAttMag(Weapon_Base w=NULL, WeaponStateBase parent=NULL, int action=-1, int actionType=-1)
override void OnExit(WeaponEventBase e)
bool pushToChamberFromInnerMagazine(Weapon_Base weapon, int muzzleIndex)
bool pushToChamberFromAttachedMagazine(Weapon_Base weapon, int muzzleIndex)
Definition weapon_utils.c:1