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

◆ ActionCondition()

override bool FirearmActionAttachMagazine::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

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

27 {
28 if (!super.ActionCondition( player, target, item ))
29 return false;
30
31 HumanCommandWeapons hcw = player.GetCommandModifier_Weapons();
32 Magazine mag = Magazine.Cast(target.GetObject());
33 Weapon_Base wpn = Weapon_Base.Cast(item);
34 return mag && (player.GetWeaponManager().CanAttachMagazine(wpn,mag) || player.GetWeaponManager().CanSwapMagazine(wpn,mag)) && (!hcw || hcw.GetRunningAction() != WeaponActions.RELOAD);
35 }
proto native int GetRunningAction()
returns -1 when no action is running or RELOAD,MECHANISM, ....
WeaponActions
actions
Определения human.c:816
void HumanCommandWeapons()
Определения human.c:1113

Перекрестные ссылки ActionTarget и HumanCommandWeapons::GetRunningAction().