DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ StartAction()

bool WeaponManager::StartAction ( int action,
Magazine mag,
InventoryLocation il,
ActionBase control_action = NULL )
inlineprivate

См. определение в файле WeaponManager.c строка 770

771 {
772 //if it is controled by action inventory reservation and synchronization provide action itself
773 if(control_action)
774 {
775 m_ControlAction = ActionBase.Cast(control_action);
776 m_PendingWeaponAction = action;
777 m_InProgress = true;
778 m_IsEventSended = false;
782
783 return true;
784 }
785
786
787 if (GetGame().IsMultiplayer() && GetGame().IsServer())
788 return false;
789
790 if ( !ScriptInputUserData.CanStoreInputUserData() )
791 return false;
792 if ( !InventoryReservation(mag, il) )
793 return false;
794
795 m_PendingWeaponAction = action;
796 m_InProgress = true;
797 m_IsEventSended = false;
798
799 if ( !GetGame().IsMultiplayer() )
800 m_readyToStart = true;
801 else
802 Synchronize();
803
804 return true;
805 }
bool m_readyToStart
Определения WeaponManager.c:22
ActionBase m_ControlAction
Определения WeaponManager.c:25
bool m_IsEventSended
Определения WeaponManager.c:18
bool m_InProgress
Определения WeaponManager.c:17
Magazine m_PendingTargetMagazine
Определения WeaponManager.c:10
void Synchronize()
Определения WeaponManager.c:519
ref InventoryLocation m_PendingInventoryLocation
Определения WeaponManager.c:13
int m_PendingWeaponAction
Определения WeaponManager.c:12
void StartPendingAction()
Определения WeaponManager.c:807
bool InventoryReservation(Magazine mag, InventoryLocation invLoc)
Определения WeaponManager.c:338
proto native CGame GetGame()

Перекрестные ссылки ScriptInputUserData::CanStoreInputUserData(), GetGame(), InventoryReservation(), m_ControlAction, m_InProgress, m_IsEventSended, m_PendingInventoryLocation, m_PendingTargetMagazine, m_PendingWeaponAction, m_readyToStart, StartPendingAction() и Synchronize().

Используется в AttachMagazine(), DetachMagazine(), EjectBullet(), EjectBulletVerified(), LoadBullet(), LoadMultiBullet(), SetNextMuzzleMode(), SwapMagazine(), SwapMagazineEx() и Unjam().