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

◆ CanCombineAmmo()

override bool VicinitySlotsContainer::CanCombineAmmo ( )
inlineprotected

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

77 {
78 PlayerBase m_player = PlayerBase.Cast( GetGame().GetPlayer() );
79 ItemBase ent = ItemBase.Cast( GetFocusedItem() );
80 ItemBase item_in_hands = ItemBase.Cast( GetGame().GetPlayer().GetHumanInventory().GetEntityInHands() );
81 ActionManagerClient amc;
82 Class.CastTo(amc, m_player.GetActionManager());
83
84 return ( amc.CanPerformActionFromInventory( item_in_hands, ent ) || amc.CanSetActionFromInventory( item_in_hands, ent ) );
85 }
class GP5GasMask extends MaskBase ItemBase
PlayerBase GetPlayer()
Определения ModifierBase.c:51
DayZPlayer m_player
Определения RandomGeneratorSyncManager.c:16
bool CanPerformActionFromInventory(ItemBase mainItem, ItemBase targetItem)
Определения ActionManagerClient.c:1040
bool CanSetActionFromInventory(ItemBase mainItem, ItemBase targetItem)
Определения ActionManagerClient.c:1138
override EntityAI GetFocusedItem()
Определения CargoContainer.c:733
proto native CGame GetGame()

Перекрестные ссылки ActionManagerClient::CanPerformActionFromInventory(), ActionManagerClient::CanSetActionFromInventory(), Class::CastTo(), Container::GetFocusedItem(), GetGame(), GetPlayer() и m_player.