DayZ 1.24
Loading...
Searching...
No Matches
ActionPourLiquid Class Reference
Inheritance diagram for ActionPourLiquid:
[legend]
Collaboration diagram for ActionPourLiquid:
[legend]

Private Member Functions

void ActionPourLiquid ()
 
override void CreateConditionComponents ()
 
override bool HasProneException ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
override void OnStartAnimationLoop (ActionData action_data)
 
override void OnEndAnimationLoop (ActionData action_data)
 
override void OnEnd (ActionData action_data)
 
- Private Member Functions inherited from ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Detailed Description

Definition at line 11 of file ActionPourLiquid.c.

Constructor & Destructor Documentation

◆ ActionPourLiquid()

Member Function Documentation

◆ ActionCondition()

override bool ActionPourLiquid::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 33 of file ActionPourLiquid.c.

34 {
35 ItemBase target_item = ItemBase.Cast(target.GetObject());
36
37 if (target_item && item)
38 {
40 }
41 return false;
42 }
Definition Liquid.c:2
static bool CanTransfer(ItemBase source_ent, ItemBase target_ent)
Definition Liquid.c:79

References Liquid::CanTransfer().

◆ CreateConditionComponents()

override void ActionPourLiquid::CreateConditionComponents ( )
inlineprivate

Definition at line 22 of file ActionPourLiquid.c.

23 {
26 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
const float DEFAULT

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.

◆ HasProneException()

override bool ActionPourLiquid::HasProneException ( )
inlineprivate

Definition at line 28 of file ActionPourLiquid.c.

29 {
30 return true;
31 }

◆ OnEnd()

override void ActionPourLiquid::OnEnd ( ActionData action_data)
inlineprivate

Definition at line 71 of file ActionPourLiquid.c.

72 {
73 if (!GetGame().IsMultiplayer() || GetGame().IsServer())
74 {
75 Bottle_Base target_vessel = Bottle_Base.Cast(action_data.m_Target.GetObject());
76 Param1<bool> play = new Param1<bool>(false);
77
78 GetGame().RPCSingleParam(target_vessel, SoundTypeBottle.POURING, play, true);
79 }
80 }
SoundTypeBottle
Definition Bottle_Base.c:2
proto native CGame GetGame()

References GetGame().

◆ OnEndAnimationLoop()

override void ActionPourLiquid::OnEndAnimationLoop ( ActionData action_data)
inlineprivate

Definition at line 60 of file ActionPourLiquid.c.

61 {
62 if (!GetGame().IsMultiplayer() || GetGame().IsServer())
63 {
64 Bottle_Base target_vessel = Bottle_Base.Cast(action_data.m_Target.GetObject());
65 Param1<bool> play = new Param1<bool>(false);
66
67 GetGame().RPCSingleParam(target_vessel, SoundTypeBottle.POURING, play, true);
68 }
69 }

References GetGame().

◆ OnFinishProgressServer()

override void ActionPourLiquid::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 44 of file ActionPourLiquid.c.

45 {
46 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
47 }

References m_SpecialtyWeight.

◆ OnStartAnimationLoop()

override void ActionPourLiquid::OnStartAnimationLoop ( ActionData action_data)
inlineprivate

Definition at line 49 of file ActionPourLiquid.c.

50 {
51 if (!GetGame().IsMultiplayer() || GetGame().IsServer())
52 {
53 Bottle_Base vessel_in_hands = Bottle_Base.Cast(action_data.m_Target.GetObject());
54 Param1<bool> play = new Param1<bool>(true);
55
56 GetGame().RPCSingleParam(vessel_in_hands, SoundTypeBottle.POURING, play, true);
57 }
58 }

References GetGame().


The documentation for this class was generated from the following file: