23 bool result = m_arg0.GuardCondition(
e) && m_arg1.GuardCondition(
e);
37 bool result = !m_arg0.GuardCondition(
e);
52 bool result = m_arg0.GuardCondition(
e) || m_arg1.GuardCondition(
e);
123 if (
m_weapon.GetInternalMagazineCartridgeCount(
mi) >= 1)
179 if (
m_weapon.IsChamberEmpty(m_muzzle))
215 for (
int i = 0;
i <
m_weapon.GetMuzzleCount();
i++)
236 if (
m_weapon.IsChamberFull(m_muzzle))
310 if (
m_weapon.IsChamberFiredOut(m_muzzle))
345 for (
int i = 0;
i <
m_weapon.GetMuzzleCount();
i++)
422 if (
m_weapon.GetInternalMagazineMaxCartridgeCount(
mi) -
m_weapon.GetInternalMagazineCartridgeCount(
mi) > 1)
432class WeaponGuardInternalMagazineHasRoomForBullet
extends WeaponGuardBase
440 if (
m_weapon.GetInternalMagazineMaxCartridgeCount(
mi) -
m_weapon.GetInternalMagazineCartridgeCount(
mi) >= 1)
489class WeaponGuardChamberMultiHasRoomBulltetIgnoreLast
extends WeaponGuardBase
557 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" guard - mag == NULL or mag2 == NULL, cannot perform comparison");
604 return player.GetWeaponManager().WantContinue();
void wpnDebugPrint(string s)
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
void WeaponGuardHasAmmo(Weapon_Base w=NULL)
override bool GuardCondition(WeaponEventBase e)
void WeaponGuardWeaponDischarged(Weapon_Base w=NULL)
void WeaponGuardWeaponOpen(Weapon_Base w=NULL)
static bool IsWeaponLogEnable()
signalize mechanism manipulation
represents guard on a transition from state to state
void WeaponGuardWeaponCharged(Weapon_Base w=NULL)
void WeaponGuardWeaponOpen(Weapon_Base w=NULL)
void WeaponGuardJammed(Weapon_Base w=NULL)
override bool GuardCondition(WeaponEventBase e)
void WeaponGuardInnerMagazineFull(Weapon_Base w=NULL)
WeaponChambering_Base m_state
ref WeaponGuardBase m_arg1
void WeaponGuardCurrentChamberFiredOut(Weapon_Base w=NULL)
void WeaponGuardHasAmmoInLoopedState(WeaponChambering_Base state)
void WeaponGuardCanAttachMag(Weapon_Base w=NULL)
void WeaponGuardHasAmmoInnerMagazine(Weapon_Base w=NULL)
void WeaponGuardCanSwapMag(Weapon_Base w=NULL)
void WeaponGuardHasMag(Weapon_Base w=NULL)
void WeaponGuardInternalMagazineHasRoomForBullet(Weapon_Base w=NULL)
void GuardNot(WeaponGuardBase arg0=NULL)
void WeaponGuardAnyChamberFiredOut(Weapon_Base w=NULL)
void WeaponGuardChamberHasRoomForMoreThanOne(Weapon_Base w=NULL)
void WeaponGuardInnerMagazineFullShareChamber(Weapon_Base w=NULL)
void WeaponGuardIsDestroyed(Weapon_Base w=NULL)
void WeaponGuardChamberFull(Weapon_Base w=NULL, int muzzle_index=0)
void WeaponGuardChamberMultiHasRoomBulltet(Weapon_Base w=NULL)
void WeaponGuardChamberFiredOut(Weapon_Base w=NULL, int muzzle_index=0)
void WeaponGuardChamberEmpty(Weapon_Base w=NULL, int muzzle_index=0)
void WeaponGuardCurrentChamberEmpty(Weapon_Base w=NULL)
void WeaponGuardChamberMultiHasRoomBulltetIgnoreLast(Weapon_Base w=NULL)
bool GuardCondition(WeaponEventBase e)
void GuardAnd(WeaponGuardBase arg0=NULL, WeaponGuardBase arg1=NULL)
void WeaponGuardCanDetachMag(Weapon_Base w=NULL)
void GuardOr(WeaponGuardBase arg0=NULL, WeaponGuardBase arg1=NULL)
void WeaponGuardAnyChamberEmpty(Weapon_Base w=NULL, int muzzle_index=0)
void WeaponGuardCurrentChamberFull(Weapon_Base w=NULL)
void WeaponGuardHasAmmoInEvent(Weapon_Base w=NULL)
void WeaponGuardChamberHasRoomForOne(Weapon_Base w=NULL)
ref WeaponGuardBase m_arg0
void WeaponGuardMagazinesHaveEqualSizes(Weapon_Base w=NULL)
void Error(string err)
Messagebox with error message.
bool magazinesHaveEqualSizes(notnull Magazine mag, notnull Magazine mag2)