DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл Guards.c

См. исходные тексты.

Структуры данных

class  WeaponGuardBase
 represents guard on a transition from state to state Подробнее...
 

Функции

void WeaponGuardHasAmmo (Weapon_Base w=NULL)
 
override bool GuardCondition (WeaponEventBase e)
 
void WeaponGuardWeaponDischarged (Weapon_Base w=NULL)
 
void WeaponGuardWeaponOpen (Weapon_Base w=NULL)
 

Переменные

class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
 

Функции

◆ GuardCondition()

override bool GuardCondition ( WeaponEventBase e)
102 {
103 int mi = m_weapon.GetCurrentMuzzle();
104 Magazine mag = m_weapon.GetMagazine(mi);
105 if (mag != NULL && mag.GetAmmoCount() > 0)
106 {
107 if (LogManager.IsWeaponLogEnable()) { wpnDebugPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " guard - has ammo"); }
108 return true;
109 }
110 if (LogManager.IsWeaponLogEnable()) { wpnDebugPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " guard - no ammo"); }
111 return false;
112 }
void wpnDebugPrint(string s)
Definition Debug.c:9
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
Definition Guards.c:604
Definition Debug.c:600
static bool IsWeaponLogEnable()
Definition Debug.c:724
Definition ObjectTyped.c:2
Definition EntityAI.c:95

Перекрестные ссылки LogManager::IsWeaponLogEnable(), m_weapon и wpnDebugPrint().

◆ WeaponGuardHasAmmo()

◆ WeaponGuardWeaponDischarged()

void WeaponGuardWeaponDischarged ( Weapon_Base w = NULL)
580{ m_weapon = w; }

Перекрестные ссылки m_weapon.

Используется в Crossbow_Base::InitStateMachine() и Weapon_Base::InitStateMachine().

◆ WeaponGuardWeaponOpen()

void WeaponGuardWeaponOpen ( Weapon_Base w = NULL)
protected

Переменные

◆ m_weapon

Weapon_Base m_weapon

Используется в WeaponActionBase::Action(), ChamberMultiBullet(), WeaponStateBase::FindNextFreeMuzzle(), WeaponGuardBase::GuardCondition(), GuardCondition(), HasBullet(), IsJammed(), WeaponStateBase::LoadCurrentFSMState(), LoadCurrentFSMState(), WeaponStateBase::LoopedChambering(), WeaponStateBase::LoopedChamberingEjectLast(), WeaponStateBase::OnAbort(), WeaponEjectAllMuzzles::OnAbort(), WeaponChambering_Base::OnAbort(), OnAbort(), WeaponStartAction::OnAbort(), WeaponStableState::OnEntry(), WeaponStateJammed::OnEntry(), WeaponStateBase::OnEntry(), RemoveNewMagazineFromInventory::OnEntry(), WeaponStartAction::OnEntry(), WeaponChambering_Base::OnEntry(), WeaponChambering_Cartridge::OnEntry(), WeaponEjectCasing::OnEntry(), WeaponFire::OnEntry(), OnEntry(), WeaponFireMultiMuzzle::OnEntry(), OnExit(), WeaponStableState::OnExit(), WeaponStateJammed::OnExit(), WeaponStateBase::OnExit(), WeaponEjectAllMuzzles::OnExit(), WeaponChambering_Base::OnExit(), WeaponChambering_Cartridge::OnExit(), WeaponFire::OnExit(), WeaponStartAction::OnUpdate(), OnUpdate(), WeaponFireMultiMuzzle::OnUpdate(), WeaponStateBase::OnUpdate(), WeaponStateBase::RifleChambering(), WeaponStateBase::RifleEjectCasing(), WeaponStateBase::RifleReChambering(), WeaponStateBase::SaveCurrentFSMState(), SaveCurrentFSMState(), SyncAnimState(), WeaponActionBase::WeaponActionDryDryFire(), WeaponActionBase::WeaponActionDryFire(), WeaponStateBase::WeaponAttachMagazine(), WeaponStateBase::WeaponChambering(), WeaponStateBase::WeaponCharging(), WeaponStateBase::WeaponChargingInnerMag(), WeaponStateBase::WeaponChargingMultiple(), WeaponStateBase::WeaponChargingStretch(), WeaponStateBase::WeaponDetachingMag(), WeaponStateBase::WeaponEjectBullet(), WeaponStateBase::WeaponFireAndChamberNext(), WeaponStateBase::WeaponFireAndChamberNextFromInnerMag(), WeaponStateBase::WeaponFireLast(), WeaponGuardBase::WeaponGuardAnyChamberEmpty(), WeaponGuardBase::WeaponGuardAnyChamberFiredOut(), WeaponGuardBase::WeaponGuardCanAttachMag(), WeaponGuardBase::WeaponGuardCanDetachMag(), WeaponGuardBase::WeaponGuardCanSwapMag(), WeaponGuardBase::WeaponGuardChamberEmpty(), WeaponGuardBase::WeaponGuardChamberFiredOut(), WeaponGuardBase::WeaponGuardChamberFull(), WeaponGuardBase::WeaponGuardChamberHasRoomForMoreThanOne(), WeaponGuardBase::WeaponGuardChamberHasRoomForOne(), WeaponGuardBase::WeaponGuardChamberMultiHasRoomBulltet(), WeaponGuardBase::WeaponGuardChamberMultiHasRoomBulltetIgnoreLast(), WeaponGuardBase::WeaponGuardCurrentChamberEmpty(), WeaponGuardBase::WeaponGuardCurrentChamberFiredOut(), WeaponGuardBase::WeaponGuardCurrentChamberFull(), WeaponGuardHasAmmo(), WeaponGuardBase::WeaponGuardHasAmmoInEvent(), WeaponGuardBase::WeaponGuardHasAmmoInnerMagazine(), WeaponGuardBase::WeaponGuardHasMag(), WeaponGuardBase::WeaponGuardInnerMagazineFull(), WeaponGuardBase::WeaponGuardInnerMagazineFullShareChamber(), WeaponGuardBase::WeaponGuardInternalMagazineHasRoomForBullet(), WeaponGuardBase::WeaponGuardIsDestroyed(), WeaponGuardBase::WeaponGuardJammed(), WeaponGuardBase::WeaponGuardMagazinesHaveEqualSizes(), WeaponGuardBase::WeaponGuardWeaponCharged(), WeaponGuardWeaponDischarged(), WeaponGuardBase::WeaponGuardWeaponOpen(), WeaponStateBase::WeaponMagnumChambering(), WeaponStateBase::WeaponRechamber(), WeaponStateBase::WeaponReplacingMagAndChamberNext() и WeaponStateBase::WeaponUnjamming().