Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
actiondrinkpondcontinuous.c File Reference

Go to the source code of this file.

Data Structures

class  ActionDrinkPondContinuousCB

Functions

override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
void ActionDrinkPondContinuous ()
override bool CanBeUsedInFreelook ()
override void CreateConditionComponents ()
override GetInputType ()
int GetLiquidSource (ActionTarget target)
override bool IsDrink ()
override void OnEnd (ActionData action_data)
override void OnFinishProgressServer (ActionData action_data)
override void OnStart (ActionData action_data)
override bool ReadFromContext (ParamsReadContext ctx, out ActionReciveData action_recive_data)
override void WriteToContext (ParamsWriteContext ctx, ActionData action_data)

Variables

const string ALLOWED_WATER_SURFACES = string.Format("%1|%2", UAWaterType.FRESH, UAWaterType.STILL)
ActionDrinkPondContinuousCB WATER_DRANK_PER_SEC = 35

Function Documentation

◆ ActionCondition()

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

Definition at line 44 of file actiondrinkpondcontinuous.c.

References ActionTarget.

◆ ActionDrinkPondContinuous()

void ActionDrinkPondContinuous ( )
protected

◆ CanBeUsedInFreelook()

override bool CanBeUsedInFreelook ( )
protected

Definition at line 33 of file actiondrinkpondcontinuous.c.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
protected

◆ GetInputType()

override GetInputType ( )
protected

Definition at line 28 of file actiondrinkpondcontinuous.c.

◆ GetLiquidSource()

int GetLiquidSource ( ActionTarget target)
protected

Definition at line 123 of file actiondrinkpondcontinuous.c.

References ActionTarget, g_Game, and path.

Referenced by OnFinishProgressServer().

◆ IsDrink()

override bool IsDrink ( )
protected

Definition at line 23 of file actiondrinkpondcontinuous.c.

◆ OnEnd()

override void OnEnd ( ActionData action_data)
protected

Definition at line 59 of file actiondrinkpondcontinuous.c.

References ActionData.

◆ OnFinishProgressServer()

◆ OnStart()

override void OnStart ( ActionData action_data)
protected

Definition at line 52 of file actiondrinkpondcontinuous.c.

References ActionData.

◆ ReadFromContext()

override bool ReadFromContext ( ParamsReadContext ctx,
out ActionReciveData action_recive_data )
protected

Definition at line 107 of file actiondrinkpondcontinuous.c.

References HasTarget(), and Serializer::Read().

◆ WriteToContext()

override void WriteToContext ( ParamsWriteContext ctx,
ActionData action_data )
protected

Definition at line 94 of file actiondrinkpondcontinuous.c.

References ActionData, HasTarget(), Serializer::Write(), and vector::Zero.

Variable Documentation

◆ ALLOWED_WATER_SURFACES

const string ALLOWED_WATER_SURFACES = string.Format("%1|%2", UAWaterType.FRESH, UAWaterType.STILL)
protected

Definition at line 12 of file actiondrinkpondcontinuous.c.

◆ WATER_DRANK_PER_SEC

ActionDrinkPondContinuousCB WATER_DRANK_PER_SEC = 35