DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionDrinkThroughContinuous.c
См. документацию.
1
class
ActionDrinkThroughContinuous
:
ActionDrinkPondContinuous
2
{
3
override
void
CreateConditionComponents
()
4
{
5
m_ConditionItem =
new
CCINone
();
6
m_ConditionTarget =
new
CCTCursor
(
UAMaxDistances
.
SMALL
);
7
}
8
9
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item)
10
{
11
if
(item && item.IsHeavyBehaviour())
12
return
false
;
13
14
if
(!player.CanEatAndDrink())
15
return
false
;
16
17
return
target.GetObject() && target.GetObject().GetWaterSourceObjectType() ==
EWaterSourceObjectType
.THROUGH;
18
}
19
20
override
bool
IsLockTargetOnUse
()
21
{
22
return
false
;
23
}
24
}
ActionDrinkPondContinuous
void ActionDrinkPondContinuous()
Определения
ActionDrinkPondContinuous.c:14
ActionTarget
class ActionTargets ActionTarget
EWaterSourceObjectType
EWaterSourceObjectType
Определения
EWaterSourceObjectType.c:2
ActionDrinkThroughContinuous::IsLockTargetOnUse
override bool IsLockTargetOnUse()
Определения
ActionDrinkThroughContinuous.c:20
ActionDrinkThroughContinuous::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения
ActionDrinkThroughContinuous.c:9
ActionDrinkThroughContinuous::CreateConditionComponents
override void CreateConditionComponents()
Определения
ActionDrinkThroughContinuous.c:3
ActionDrinkThroughContinuous
Определения
ActionDrinkThroughContinuous.c:2
CCINone
Определения
CCINone.c:2
CCTCursor
Определения
CCTCursor.c:2
ItemBase
Определения
InventoryItem.c:731
PlayerBase
Определения
PlayerBaseClient.c:2
UAMaxDistances::SMALL
const float SMALL
Определения
ActionConstants.c:111
UAMaxDistances
Определения
ActionConstants.c:110
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
ActionDrinkThroughContinuous.c
Создано системой
1.13.2