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

◆ CanDetachMagazine()

bool WeaponManager::CanDetachMagazine ( Weapon_Base wpn,
Magazine mag,
bool reservationCheck = true )
inlineprotected

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

181 {
182 if ( !wpn || !mag )
183 return false;
184
185 if ( m_player.GetHumanInventory().GetEntityInHands() != wpn )
186 return false;
187
188 if ( mag.GetHierarchyParent() != wpn )
189 return false;
190
191 if( m_player.IsItemsToDelete())
192 return false;
193
194 if ( reservationCheck && (m_player.GetInventory().HasInventoryReservation(wpn, null) || m_player.GetInventory().HasInventoryReservation(mag, null)))
195 return false;
196
197 return true;
198 }
PlayerBase m_player
Определения WeaponManager.c:5

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