4 if (
mag && !
mag.IsDamageDestroyed())
11 weapon.SelectionBulletShow();
15 Error(
"[wpnfsm] " +
Object.GetDebugName(
weapon) +
" chamberFromAttachedMagazine, error - cannot take cartridge from magazine");
23 Error(
"[wpnfsm] " +
Object.GetDebugName(
weapon) +
" chamberFromAttachedMagazine, error - cannot load chamber!");
41 weapon.SelectionBulletShow();
45 Error(
"[wpnfsm] " +
Object.GetDebugName(
weapon) +
" chamberFromInnerMagazine, error - cannot take cartridge from magazine");
53 Error(
"[wpnfsm] " +
Object.GetDebugName(
weapon) +
" chamberFromInnerMagazine, error - cannot load chamber!");
61 string type =
string.Empty;
69 Error(
"[wpnfsm] " +
Object.GetDebugName(
weapon) +
" ejectBulletAndStoreInMagazine, error - cannot eject chambered cartridge!");
79 wpnDebugPrint(
"[wpnfsm] " +
Object.GetDebugName(
weapon) +
" ejectBulletAndStoreInMagazine, ok - cartridge stored in magazine");
82 Error(
"[wpnfsm] " +
Object.GetDebugName(
weapon) +
" ejectBulletAndStoreInMagazine, error - cannot store cartridge!");
86 if (
mag.ServerStoreCartridge(
damage, type))
90 wpnDebugPrint(
"[wpnfsm] " +
Object.GetDebugName(
weapon) +
" ejectBulletAndStoreInMagazine, ok - cartridge stored in user defined magazine");
93 Error(
"[wpnfsm] " +
Object.GetDebugName(
weapon) +
" ejectBulletAndStoreInMagazine, error - cannot store cartridge in magazine");
void wpnDebugPrint(string s)
void DayZPlayerUtils()
cannot be instantiated
static bool IsWeaponLogEnable()
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
bool pushToChamberFromInnerMagazine(Weapon_Base weapon, int muzzleIndex)
bool magazinesHaveEqualSizes(notnull Magazine mag, notnull Magazine mag2)
void ejectBulletAndStoreInMagazine(Weapon_Base weapon, int muzzleIndex, Magazine mag, DayZPlayer p)
bool pushToChamberFromAttachedMagazine(Weapon_Base weapon, int muzzleIndex)