1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- // load bullet from att mag (no anim)
- class WeaponChamberFromAttMag extends WeaponStateBase
- {
- void WeaponChamberFromAttMag (Weapon_Base w = NULL, WeaponStateBase parent = NULL, int action = -1, int actionType = -1)
- { }
- override void OnEntry (WeaponEventBase e)
- {
- super.OnEntry(e);
- if(e)
- {
- int mi = m_weapon.GetCurrentMuzzle();
- m_weapon.SetCharged(true);
- m_weapon.SetWeaponOpen(false);
- pushToChamberFromAttachedMagazine(m_weapon, mi);
- }
- }
- override void OnExit (WeaponEventBase e)
- {
- super.OnExit(e);
- }
- };
- // load bullet from att mag (no anim)
- class WeaponChamberFromInnerMag extends WeaponStateBase
- {
- void WeaponChamberFromInnerMag (Weapon_Base w = NULL, WeaponStateBase parent = NULL, int action = -1, int actionType = -1)
- { }
- override void OnEntry (WeaponEventBase e)
- {
- super.OnEntry(e);
- if (e)
- {
- int mi = m_weapon.GetCurrentMuzzle();
- pushToChamberFromInnerMagazine(m_weapon, mi);
- }
- }
- override void OnExit (WeaponEventBase e)
- {
- super.OnExit(e);
- }
- };
- // load bullet from att mag (no anim)
- class WeaponChamberFromAttMagOnExit extends WeaponStateBase
- {
- void WeaponChamberFromAttMagOnExit (Weapon_Base w = NULL, WeaponStateBase parent = NULL, int action = -1, int actionType = -1)
- { }
- override void OnExit (WeaponEventBase e)
- {
- int mi = m_weapon.GetCurrentMuzzle();
- pushToChamberFromAttachedMagazine(m_weapon, mi);
- super.OnExit(e);
- }
- };
- // load bullet from att mag (no anim)
- class WeaponEjectAndChamberFromAttMag extends WeaponEjectAllMuzzles
- {
- void WeaponEjectAndChamberFromAttMag (Weapon_Base w = NULL, WeaponStateBase parent = NULL, int action = -1, int actionType = -1)
- { }
- override void OnExit (WeaponEventBase e)
- {
- if (e)
- {
- int mi = m_weapon.GetCurrentMuzzle();
- pushToChamberFromAttachedMagazine(m_weapon, mi);
- }
- super.OnExit(e);
- }
- override void OnAbort (WeaponEventBase e)
- {
- if (e)
- {
- int mi = m_weapon.GetCurrentMuzzle();
- pushToChamberFromAttachedMagazine(m_weapon, mi);
- }
- super.OnAbort(e);
- }
- };
|