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

◆ AbortWeaponEvent()

void AbortWeaponEvent ( )
protected

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

285 {
286 HumanCommandWeapons hcw = GetDayZPlayerOwner().GetCommandModifier_Weapons();
287
288 Weapon_Base weapon;
289 Class.CastTo(weapon, GetEntityInHands());
290
291 if (hcw && weapon && weapon.CanProcessWeaponEvents() && !weapon.IsIdle())
292 {
294 {
295 wpnDebugPrint("[wpnfsm] " + Object.GetDebugName(weapon) + " Weapon event: ABORT! notifying running state=" + weapon.GetCurrentState());
296 }
297
298 weapon.ProcessWeaponAbortEvent(new WeaponEventHumanCommandActionAborted(GetDayZPlayerOwner()));
299 }
300 }
void wpnDebugPrint(string s)
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:170
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения human.c:1027
static bool IsWeaponLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:829
Определения ObjectTyped.c:2
shorthand
Определения BoltActionRifle_Base.c:6
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), GetDayZPlayerOwner(), LogManager::IsWeaponLogEnable() и wpnDebugPrint().

Используется в ManBase::OnCommandClimbStart(), ManBase::OnCommandDeathStart(), ManBase::OnCommandFallStart(), ManBase::OnCommandMelee2Start(), ManBase::OnCommandSwimStart(), ManBase::OnJumpStart() и ManBase::OnStanceChange().