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

◆ DeferredWeaponFailed()

void DeferredWeaponFailed ( )
protected

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

322 {
323 Weapon_Base weapon;
324 Class.CastTo(weapon, GetEntityInHands());
325
326 string secondPart = " - ENTITY IN HANDS IS NOT A WEAPON: " + Object.GetDebugName(GetEntityInHands());
327
328 string firstPart = "[wpnfsm] " + Object.GetDebugName(GetInventoryOwner()) + " failed to perform weaponevent " + m_DeferredWeaponEvent.DumpToString();
329 if (weapon)
330 {
331 secondPart = " on " + Object.GetDebugName(GetEntityInHands()) + " which is in state " + weapon.GetCurrentState();
332 secondPart += " with physical state: J: " + weapon.IsJammed() + " | ";
333 for (int i = 0; i < weapon.GetMuzzleCount(); ++i)
334 {
335 secondPart += "Chamber_" + i + ": B(" + weapon.IsChamberFull(i) + ") F(" + weapon.IsChamberFiredOut(i) + ") E(" + weapon.IsChamberEmpty(i) + ") | ";
336 secondPart += "Magazine_" + i + ": " + weapon.GetMagazine(i);
337 if (i < weapon.GetMuzzleCount() - 1)
338 secondPart += " | ";
339 }
340 }
341
342 Error(firstPart + secondPart);
344 }
ref WeaponEventBase m_DeferredWeaponEvent
deferred hand event
Определения DayZPlayerInventory.c:156
void CancelWeaponEvent()
Определения DayZPlayerInventory.c:276
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения ObjectTyped.c:2
shorthand
Определения BoltActionRifle_Base.c:6
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки CancelWeaponEvent(), Class::CastTo(), Error() и m_DeferredWeaponEvent.