789 {
790 bool done = false;
792 {
794
796 m_srcMagazine.GetInventory().GetCurrentInventoryLocation(leftHandIl);
798 {
800 {
802 {
804 {
806 {
808 done = true;
809 }
810 }
811 }
812 }
813
814 if( !done)
815 {
818
820 {
822 {
824 }
825 else
826 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" ChamberMultiBullet, error - cannot drop ammo pile from left hand after not found inventory space for ammo pile - abort");
827
828 }
829 else
830 {
832 {
834 }
835 else
836 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" ChamberMultiBullet, error - cannot remove ammo pile from wpn - abort");
837 }
838 }
839 }
840 }
841
842 super.OnAbort(e);
846 }
void wpnDebugPrint(string s)
void DayZPlayerUtils()
cannot be instantiated
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
FindInventoryLocationType
flags for searching locations in inventory
ref InventoryLocation m_srcMagazinePrevLocation
source of the cartridge
ref WeaponChambering_Base m_chamber
static proto native bool LocationSyncMoveEntity(notnull InventoryLocation src_loc, notnull InventoryLocation dst_loc)
synchronously removes item from current inventory location and adds it to destination no anims involv...
static proto native bool LocationCanMoveEntity(notnull InventoryLocation src, notnull InventoryLocation dst)
queries if the entity contained in inv_loc.m_item can be moved to another location This is a shorthan...
script counterpart to engine's class Inventory
proto native bool IsValid()
verify current set inventory location
proto native vector GetPos()
returns position of item in world if type is Ground
static bool IsWeaponLogEnable()
const float MAX_DROP_MAGAZINE_DISTANCE_SQ
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
void Error(string err)
Messagebox with error message.