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

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
protected

Other conditions are handled in CCTLiquid If object is a specified water source object type we ignore it as it's liquid source handling is handled by a different action and conditions

Don't allow drinking with hands with heavy items in hands

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

47 {
50 if (target.GetObject() && target.GetObject().GetWaterSourceObjectType() != EWaterSourceObjectType.NONE)
51 return false;
52
53 if (item && item.IsHeavyBehaviour())
54 return false;
55
56 return player.CanEatAndDrink();
57 }
EWaterSourceObjectType
Определения EWaterSourceObjectType.c:2

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