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

◆ ActionCondition()

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

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

30 {
31 if (!super.ActionCondition( player, target, item ))
32 return false;
33
34 bool result = false;
35 Weapon_Base wpn = Weapon_Base.Cast(item);
36 if ( player.GetWeaponManager().CanEjectBullet(wpn))
37 {
38 if( g_Game.IsServer() && g_Game.IsMultiplayer() )
39 {
40 result = true;
41 }
42 else
43 {
44 if( player.GetWeaponManager().CanEjectBulletVerified() )
45 {
46 result = true;
47 }
48 player.GetWeaponManager().SetEjectBulletTryTimestamp();
49 }
50 }
51 return result;
52 }
DayZGame g_Game
Определения DayZGame.c:3942

Перекрестные ссылки ActionTarget и g_Game.