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

Private Member Functions

void ActionUseRangefinder ()
 
override void CreateConditionComponents ()
 
override bool IsFullBody (PlayerBase player)
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (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 9 of file ActionUseRangefinder.c.

Constructor & Destructor Documentation

◆ ActionUseRangefinder()

void ActionUseRangefinder::ActionUseRangefinder ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 35 of file ActionUseRangefinder.c.

36 {
37 return item.GetCompEM().CanWork() && Rangefinder.Cast(item).IsInOptics();
38 }

◆ CreateConditionComponents()

override void ActionUseRangefinder::CreateConditionComponents ( )
inlineprivate

Definition at line 19 of file ActionUseRangefinder.c.

20 {
23 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasTarget()

override bool ActionUseRangefinder::HasTarget ( )
inlineprivate

Definition at line 30 of file ActionUseRangefinder.c.

31 {
32 return false;
33 }

◆ IsFullBody()

override bool ActionUseRangefinder::IsFullBody ( PlayerBase player)
inlineprivate

Definition at line 25 of file ActionUseRangefinder.c.

26 {
27 return true;
28 }

◆ OnFinishProgressServer()

override void ActionUseRangefinder::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 40 of file ActionUseRangefinder.c.

41 {
42 /*if (action_data.m_Player)
43 {
44 string message = Rangefinder.Cast( action_data.m_MainItem ).DoMeasurement(action_data.m_Player);
45 SendMessageToClient(action_data.m_Player,message);
46 }*/
47
48 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
49 }

References m_SpecialtyWeight.


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