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

◆ WeaponDestroyedCheck()

bool WeaponDestroyedCheck ( InventoryItem weapon,
out string ammo )
protected

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

723 {
724 if (!weapon)
725 return false;
726
727 Weapon_Base firearm = Weapon_Base.Cast(weapon);
728 ItemBase bayonet = ItemBase.Cast(weapon.GetInventory().FindAttachment(weapon.GetBayonetAttachmentIdx()));
729
730 if ( firearm && bayonet && bayonet.IsRuined() )
731 {
732 ammo = bayonet.GetRuinedMeleeAmmoType();
733 return true;
734 }
735 else if (weapon.IsRuined())
736 {
737 ammo = weapon.GetRuinedMeleeAmmoType();
738 return true;
739 }
740 else
741 {
742 return false;
743 }
744 }
shorthand
Определения BoltActionRifle_Base.c:6

Используется в EvaluateHit_Common() и EvaluateHit_NonAlignableObjects().