Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
firearmactionunjam.c
Go to the documentation of this file.
2{
4 {
5 }
6
7 override bool HasTarget()
8 {
9 return false;
10 }
11
12 override typename GetInputType()
13 {
15 }
16
18 {
21 }
22
23 override bool HasProgress()
24 {
25 return false;
26 }
27
28
29 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item ) //condition for action
30 {
31 if (!super.ActionCondition( player, target, item ))
32 return false;
33
34 Weapon_Base wpn = Weapon_Base.Cast(item);
35 return player.GetWeaponManager().CanUnjam(wpn);
36 }
37
38 override void Start( ActionData action_data )
39 {
40 super.Start( action_data );
41
42 action_data.m_Player.GetWeaponManager().Unjam( this );
43 }
44};
ActionBase ActionData
Definition actionbase.c:30
class ActionTargets ActionTarget
ref CCIBase m_ConditionItem
Definition actionbase.c:70
ref CCTBase m_ConditionTarget
Definition actionbase.c:71
void FirearmActionBase()
override void Start(ActionData action_data)
override bool HasProgress()
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool HasTarget()