DayZ 1.24
Loading...
Searching...
No Matches
ActionShave.c
Go to the documentation of this file.
8
10{
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 }
21
27
28 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
29 {
30 if (player.CanShave())
31 return true;
32
33 return false;
34 }
35
36 override bool HasTarget()
37 {
38 return false;
39 }
40
41 override bool IsShaveSelf()
42 {
43 return true;
44 }
45
47 {
48 action_data.m_Player.ShavePlayer();
49 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
50 }
51
53 {
54 super.OnFinishProgressClient(action_data);
55
56 GetGame().GetAnalyticsClient().OnActionFinishedShaveSelf();
57 }
58};
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30
override void CreateActionComponent()
Definition ActionShave.c:3
override bool HasTarget()
Definition ActionShave.c:36
void ActionShave()
Definition ActionShave.c:11
override bool IsShaveSelf()
Definition ActionShave.c:41
override void CreateConditionComponents()
Definition ActionShave.c:22
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition ActionShave.c:28
override void OnFinishProgressServer(ActionData action_data)
Definition ActionShave.c:46
override void OnFinishProgressClient(ActionData action_data)
Definition ActionShave.c:52
const float SHAVE
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
proto native CGame GetGame()