DayZ 1.24
Loading...
Searching...
No Matches
ActionCraftImprovisedTorsoCover.c
Go to the documentation of this file.
2{
3 private const float TIME_TO_CRAFT_CLOTHES = 5.0;
4
5 override void CreateActionComponent()
6 {
7 //float adjusted_time = m_ActionData.m_Player.GetSoftSkillsManager().AdjustCraftingTime(TIME_TO_CRAFT_CLOTHES,UASoftSkillsWeight.ROUGH_HIGH);
9 }
10};
11
13{
15 {
17 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
18 m_FullBody = true;
19 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
21 m_Text = "#STR_CraftImprovisedTorsoCover";
22 }
23
29
30 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
31 {
32 if (item.GetQuantity() == 6)
33 return true;
34 return false;
35 }
36
37 override bool HasTarget()
38 {
39 return false;
40 }
41
43 {
46
47 cover = action_data.m_Player.SpawnEntityOnGroundPos("TorsoCover_Improvised", action_data.m_Player.GetPosition());
48 action_data.m_MainItem.AddQuantity(-6);
49
50 MiscGameplayFunctions.TransferItemProperties(item_ingredient, cover);
51 }
52
54 {
55 return "ImprovisedCloth_craft";
56 }
57};
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 void OnFinishProgressServer(ActionData action_data)
override string GetSoundCategory(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
ref CABase m_ActionComponent
Definition ActionBase.c:30
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597