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

Private Member Functions

void ActionShave ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override bool HasTarget ()
 
override bool IsShaveSelf ()
 
override void OnFinishProgressServer (ActionData action_data)
 
override void OnFinishProgressClient (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 ActionShave.c.

Constructor & Destructor Documentation

◆ ActionShave()

void ActionShave::ActionShave ( )
inlineprivate

Definition at line 11 of file ActionShave.c.

12 {
15
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_SHAVE;
17 m_FullBody = false;
18 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
19 m_Text = "#shave_myself";
20 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
float m_SpecialtyWeight
Definition ActionBase.c:68
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CallbackClass, AnimatedActionBase::m_CommandUID, m_FullBody, m_SpecialtyWeight, m_StanceMask, m_Text, and UASoftSkillsWeight::PRECISE_LOW.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 28 of file ActionShave.c.

29 {
30 if (player.CanShave())
31 return true;
32
33 return false;
34 }

◆ CreateConditionComponents()

override void ActionShave::CreateConditionComponents ( )
inlineprivate

Definition at line 22 of file ActionShave.c.

23 {
26 }
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 ActionShave::HasTarget ( )
inlineprivate

Definition at line 36 of file ActionShave.c.

37 {
38 return false;
39 }

◆ IsShaveSelf()

override bool ActionShave::IsShaveSelf ( )
inlineprivate

Definition at line 41 of file ActionShave.c.

42 {
43 return true;
44 }

◆ OnFinishProgressClient()

override void ActionShave::OnFinishProgressClient ( ActionData action_data)
inlineprivate

Definition at line 52 of file ActionShave.c.

53 {
54 super.OnFinishProgressClient(action_data);
55
56 GetGame().GetAnalyticsClient().OnActionFinishedShaveSelf();
57 }
proto native CGame GetGame()

References GetGame().

◆ OnFinishProgressServer()

override void ActionShave::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 46 of file ActionShave.c.

47 {
48 action_data.m_Player.ShavePlayer();
49 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
50 }

References m_SpecialtyWeight.


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