DayZ
1.24
Loading...
Searching...
No Matches
ActionDrinkThroughContinuous.c
Go to the documentation of this file.
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
}
m_ConditionItem
ref CCIBase m_ConditionItem
Definition
ActionBase.c:55
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
ActionBase.c:56
EWaterSourceObjectType
EWaterSourceObjectType
Definition
EWaterSourceObjectType.c:2
ActionDrinkThroughContinuous
Definition
ActionDrinkThroughContinuous.c:2
ActionDrinkThroughContinuous::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
ActionDrinkThroughContinuous.c:9
ActionDrinkThroughContinuous::CreateConditionComponents
override void CreateConditionComponents()
Definition
ActionDrinkThroughContinuous.c:3
CCINone
Definition
CCINone.c:2
CCTCursor
Definition
CCTCursor.c:2
ItemBase
Definition
InventoryItem.c:697
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
UAMaxDistances
Definition
ActionConstants.c:105
UAMaxDistances::SMALL
const float SMALL
Definition
ActionConstants.c:106
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
ActionDrinkThroughContinuous.c
Generated by
1.10.0