DayZ 1.24
Loading...
Searching...
No Matches
ActionCraftImprovisedEyePatch.c
Go to the documentation of this file.
8
10{
12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_Text = "#STR_CraftImprovisedEyePatch";
19 }
20
26
27 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
28 {
29 return true;
30 }
31
32 override bool HasTarget()
33 {
34 return false;
35 }
36
38 {
41
42 cover = action_data.m_Player.SpawnEntityOnGroundPos("EyePatch_Improvised", action_data.m_Player.GetPosition());
43 action_data.m_MainItem.AddQuantity(-1);
44
45 MiscGameplayFunctions.TransferItemProperties(item_ingredient, cover);
46 }
47
49 {
50 return "ImprovisedCloth_craft";
51 }
52};
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
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnFinishProgressServer(ActionData action_data)
override string GetSoundCategory(ActionData action_data)
ref CABase m_ActionComponent
Definition ActionBase.c:30
const float DEFAULT_REPAIR_CYCLE
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597