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

◆ AbortWeaponEvent()

void AbortWeaponEvent ( )
protected

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

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