Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionuserangefinder.c
Go to the documentation of this file.
1
class
ActionUseRangefinderCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.m_ActionComponent =
new
CAContinuousTime
( 1.0 );
6
}
7
};
8
10
class
ActionUseRangefinder
:
ActionContinuousBase
11
{
12
void
ActionUseRangefinder
()
13
{
14
m_CallbackClass
=
ActionUseRangefinderCB
;
15
m_CommandUID
=
DayZPlayerConstants
.CMD_GESTUREFB_LOOKOPTICS;
16
m_SpecialtyWeight
= UASoftSkillsWeight.PRECISE_LOW;
17
m_Text
=
"#use_range_finder"
;
18
}
19
20
override
void
CreateConditionComponents
()
21
{
22
m_ConditionItem
=
new
CCINonRuined
;
23
m_ConditionTarget
=
new
CCTNone
;
24
}
25
26
override
bool
IsFullBody
(
PlayerBase
player)
27
{
28
return
true
;
29
}
30
31
override
bool
HasTarget
()
32
{
33
return
false
;
34
}
35
36
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
37
{
38
return
item.GetCompEM().CanWork() && Rangefinder.Cast( item ).IsInOptics();
39
}
40
}
ActionTarget
class ActionTargets ActionTarget
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
animatedactionbase.c:3
ActionBase::m_Text
string m_Text
Definition
actionbase.c:64
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Definition
actionbase.c:70
ActionBase::m_SpecialtyWeight
float m_SpecialtyWeight
Definition
actionbase.c:83
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
actionbase.c:71
ActionContinuousBaseCB
Definition
actioncontinuousbase.c:2
ActionContinuousBase::ActionContinuousBase
void ActionContinuousBase()
Definition
actioncontinuousbase.c:124
ActionUseRangefinderCB
Definition
actionuserangefinder.c:2
ActionUseRangefinderCB::CreateActionComponent
override void CreateActionComponent()
Definition
actionuserangefinder.c:3
ActionUseRangefinder::ActionUseRangefinder
void ActionUseRangefinder()
Definition
actionuserangefinder.c:12
ActionUseRangefinder::CreateConditionComponents
override void CreateConditionComponents()
Definition
actionuserangefinder.c:20
ActionUseRangefinder::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionuserangefinder.c:36
ActionUseRangefinder::HasTarget
override bool HasTarget()
Definition
actionuserangefinder.c:31
ActionUseRangefinder::IsFullBody
override bool IsFullBody(PlayerBase player)
Definition
actionuserangefinder.c:26
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
animatedactionbase.c:143
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
animatedactionbase.c:145
CAContinuousTime
Definition
cacontinuoustime.c:2
CCINonRuined
Definition
ccinonruined.c:2
CCTNone
Definition
cctnone.c:2
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
continuous
actionuserangefinder.c
Generated by
1.17.0