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

Private Member Functions

void ActionDrainLiquid ()
 
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 ActionDrainLiquid.c.

Constructor & Destructor Documentation

◆ ActionDrainLiquid()

Member Function Documentation

◆ ActionCondition()

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

Definition at line 33 of file ActionDrainLiquid.c.

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

References Liquid::CanTransfer().

◆ CreateConditionComponents()

override void ActionDrainLiquid::CreateConditionComponents ( )
inlineprivate

Definition at line 22 of file ActionDrainLiquid.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 ActionDrainLiquid::HasProneException ( )
inlineprivate

Definition at line 28 of file ActionDrainLiquid.c.

29 {
30 return true;
31 }

◆ OnEnd()

override void ActionDrainLiquid::OnEnd ( ActionData action_data)
inlineprivate

Definition at line 69 of file ActionDrainLiquid.c.

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

References GetGame().

◆ OnEndAnimationLoop()

override void ActionDrainLiquid::OnEndAnimationLoop ( ActionData action_data)
inlineprivate

Definition at line 59 of file ActionDrainLiquid.c.

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

References GetGame().

◆ OnFinishProgressServer()

override void ActionDrainLiquid::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 42 of file ActionDrainLiquid.c.

43 {
44 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
45 }

References m_SpecialtyWeight.

◆ OnStartAnimationLoop()

override void ActionDrainLiquid::OnStartAnimationLoop ( ActionData action_data)
inlineprivate

Definition at line 48 of file ActionDrainLiquid.c.

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

References GetGame().


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