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

◆ OnWeaponActionEnd()

void WeaponManager::OnWeaponActionEnd ( )
inlineprivate

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

998 {
999 if ( !m_InProgress )
1000 return;
1001
1002 if (!m_ControlAction)
1003 {
1004 if (g_Game.IsServer() && g_Game.IsMultiplayer())
1005 {
1007 {
1008 g_Game.ClearJunctureEx(m_player,m_PendingTargetMagazine);
1009 }
1010 }
1011 else
1012 {
1013 InventoryLocation il = new InventoryLocation();
1014 ItemBase itemInHands = m_player.GetItemInHands();
1015 GameInventory playerInventory = m_player.GetInventory();
1016 il.SetHands(m_player, itemInHands);
1017 playerInventory.ClearInventoryReservationEx(itemInHands, il);
1018
1020 {
1022 }
1023
1025 {
1027 }
1028 }
1029 }
1030
1031 m_ControlAction = NULL;
1037 //m_WeaponInHand = NULL;
1038 m_InProgress = false;
1039 m_readyToStart = false;
1040 m_WantContinue = true;
1041
1042 }
DayZGame g_Game
Определения DayZGame.c:3942
class GP5GasMask extends MaskBase ItemBase
bool ClearInventoryReservationEx(EntityAI item, InventoryLocation dst)
proto native void SetHands(notnull EntityAI parent, EntityAI e)
sets current inventory location type to Hands
PlayerBase m_player
Определения WeaponManager.c:5
bool m_readyToStart
Определения WeaponManager.c:22
ActionBase m_ControlAction
Определения WeaponManager.c:25
bool m_WantContinue
Определения WeaponManager.c:19
int m_PendingWeaponActionAcknowledgmentID
Определения WeaponManager.c:9
bool m_InProgress
Определения WeaponManager.c:17
Magazine m_PendingTargetMagazine
Определения WeaponManager.c:10
ref InventoryLocation m_PendingInventoryLocation
Определения WeaponManager.c:13
ref InventoryLocation m_TargetInventoryLocation
Определения WeaponManager.c:11
int m_PendingWeaponAction
Определения WeaponManager.c:12

Перекрестные ссылки GameInventory::ClearInventoryReservationEx(), g_Game, m_ControlAction, m_InProgress, m_PendingInventoryLocation, m_PendingTargetMagazine, m_PendingWeaponAction, m_PendingWeaponActionAcknowledgmentID, m_player, m_readyToStart, m_TargetInventoryLocation, m_WantContinue и InventoryLocation::SetHands().

Используется в Refresh(), StartPendingAction() и Update().