См. определение в файле weapon_utils.c строка 1
2{
3 Magazine mag = weapon.GetMagazine(muzzleIndex);
4 if (mag && !mag.IsDamageDestroyed())
5 {
7 float damage;
8 string type;
9 if (mag && mag.LocalAcquireCartridge(damage, type))
10 {
11 weapon.SelectionBulletShow();
13 }
14 else
15 Error(
"[wpnfsm] " +
Object.GetDebugName(weapon) +
" chamberFromAttachedMagazine, error - cannot take cartridge from magazine");
16
17 if (weapon.PushCartridgeToChamber(muzzleIndex, damage, type))
18 {
20 return true;
21 }
22 else
23 Error(
"[wpnfsm] " +
Object.GetDebugName(weapon) +
" chamberFromAttachedMagazine, error - cannot load chamber!");
24 }
25 else
26 {
28
29 }
30 return false;
31}
void wpnDebugPrint(string s)
static bool IsWeaponLogEnable()
void Error(string err)
Messagebox with error message.
Перекрестные ссылки Error(), LogManager::IsWeaponLogEnable() и wpnDebugPrint().
Используется в WeaponEjectAllMuzzles::OnAbort(), WeaponEjectCasing::OnEntry(), WeaponFire::OnEntry(), WeaponStateBase::OnEntry(), WeaponEjectAllMuzzles::OnExit() и WeaponStateBase::OnExit().