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