123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- // 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);
- }
- };
- class WeaponChamberFromAttMagOpenbolt 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(true);
- pushToChamberFromAttachedMagazine(m_weapon, mi);
- }
- }
- override void OnExit (WeaponEventBase e)
- {
- super.OnExit(e);
- }
- };
- class WeaponChamberFromAttMagOpenbolt_W4T extends WeaponChamberFromAttMagOpenbolt
- {
- override bool IsWaitingForActionFinish()
- {
- return true;
- }
- }
- // 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);
- }
- };
|