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

◆ AbortWeaponEvent()

void AbortWeaponEvent ( )
protected

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

283 {
284 HumanCommandWeapons hcw = GetDayZPlayerOwner().GetCommandModifier_Weapons();
285
286 Weapon_Base weapon;
287 Class.CastTo(weapon, GetEntityInHands());
288
289 if (hcw && weapon && weapon.CanProcessWeaponEvents() && !weapon.IsIdle())
290 {
292 {
293 wpnDebugPrint("[wpnfsm] " + Object.GetDebugName(weapon) + " Weapon event: ABORT! notifying running state=" + weapon.GetCurrentState());
294 }
295
296 weapon.ProcessWeaponAbortEvent(new WeaponEventHumanCommandActionAborted(GetDayZPlayerOwner()));
297 }
298 }
void wpnDebugPrint(string s)
Определения Debug.c:9
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:168
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения human.c:994
static bool IsWeaponLogEnable()
Определения Debug.c:718
Определения Debug.c:594
Определения 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().