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

◆ PushBulletToInternalMagazine()

bool WeaponStateBase::PushBulletToInternalMagazine ( int muzzleIndex)
inlineprivate

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

197 {
198 if(m_type.Length() > 0)
199 {
200 if (!m_weapon.IsInternalMagazineFull(muzzleIndex))
201 {
202 if (m_weapon.PushCartridgeToInternalMagazine(muzzleIndex, m_damage, m_type))
203 {
204 if (LogManager.IsWeaponLogEnable()) { wpnDebugPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " WeaponChambering PushBulletToInternalMagazine, ok - " + m_type + " - internal magazine"); }
205 return true;
206 }
207 else
208 {
209 if (LogManager.IsWeaponLogEnable()) { wpnDebugPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " WeaponChambering PushBulletToInternalMagazine, error - " + m_type + " cannot load to internal magazine!"); }
210 }
211 }
212 else
213 {
214 if (LogManager.IsWeaponLogEnable()) { wpnDebugPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " WeaponChambering PushBulletToInternalMagazine, error - " + m_type + " cannot load to internal magazine(full)!"); }
215 }
216
217 }
218 else
219 {
220 if (LogManager.IsWeaponLogEnable()) { wpnDebugPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " WeaponChambering PushBulletToInternalMagazine, error - bullet type is not set!"); }
221 }
222 return false;
223 }
void wpnDebugPrint(string s)
float m_damage
Определения WeaponChambering.c:23
Weapon_Base m_weapon
Определения WeaponStateBase.c:12
string m_type
Определения WeaponChambering.c:24
class LOD Object

Перекрестные ссылки LogManager::IsWeaponLogEnable(), m_damage, m_type, m_weapon и wpnDebugPrint().