DayZ
1.30
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
CCTLiquid
(
LIQUID_GROUP_DRINKWATER
-
LIQUID_SNOW
-
LIQUID_HOTWATER
,
UAMaxDistances
.
DEFAULT
,
UAMaxDistances
.
DEFAULT
);
7
}
8
9
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item)
10
{
12
if
(item && item.IsHeavyBehaviour())
13
return
false
;
14
15
if
(!player.CanEatAndDrink())
16
return
false
;
17
18
return
target.GetObject() && target.GetObject().GetWaterSourceObjectType() ==
EWaterSourceObjectType
.THROUGH;
19
}
20
21
override
bool
IsLockTargetOnUse
()
22
{
23
return
false
;
24
}
25
}
m_ConditionItem
ref CCIBase m_ConditionItem
Определения
ActionBase.c:63
m_ConditionTarget
ref CCTBase m_ConditionTarget
Определения
ActionBase.c:64
ActionDrinkPondContinuous
void ActionDrinkPondContinuous()
Определения
ActionDrinkPondContinuous.c:16
ActionTarget
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
Определения
ActionTargets.c:125
EWaterSourceObjectType
EWaterSourceObjectType
Определения
EWaterSourceObjectType.c:2
ActionDrinkThroughContinuous::IsLockTargetOnUse
override bool IsLockTargetOnUse()
Определения
ActionDrinkThroughContinuous.c:21
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
CCTLiquid
Определения
CCTLiquid.c:2
ItemBase
Определения
4_World/DayZ/Entities/Core/Inherited/InventoryItem.c:878
PlayerBase
Определения
PlayerBaseClient.c:2
UAMaxDistances::DEFAULT
const float DEFAULT
Определения
ActionConstants.c:114
UAMaxDistances
Определения
ActionConstants.c:112
LIQUID_HOTWATER
const int LIQUID_HOTWATER
Определения
3_Game/DayZ/constants.c:590
LIQUID_GROUP_DRINKWATER
const int LIQUID_GROUP_DRINKWATER
Определения
3_Game/DayZ/constants.c:593
LIQUID_SNOW
const int LIQUID_SNOW
Определения
3_Game/DayZ/constants.c:586
Ishodniki
scripts
4_World
DayZ
Classes
UserActionsComponent
Actions
Continuous
ActionDrinkThroughContinuous.c
Создано системой
1.13.2