Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actiondeployhuntingtrap.c
Go to the documentation of this file.
1
class
ActionDeployHuntingTrap
:
ActionDeployBase
2
{
3
void
ActionDeployHuntingTrap
()
4
{
5
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_CRAFTING;
6
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_CROUCH;
7
m_Sound
=
"craft_universal_0"
;
8
}
9
10
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
11
{
12
// Client
13
if
( !
g_Game
.IsDedicatedServer() )
14
return
item.
CanBePlaced
( player, player.GetPosition() );
15
16
// Server
17
return
true
;
18
}
19
20
override
void
CreateConditionComponents
()
21
{
22
m_ConditionItem
=
new
CCINonRuined
;
23
m_ConditionTarget
=
new
CCTNone
;
24
}
25
26
override
bool
ActionConditionContinue
(
ActionData
action_data )
27
{
28
return
g_Game
.IsClient() || action_data.m_MainItem.CanBePlaced( action_data.m_Player, action_data.m_Player.GetPosition() );
29
}
30
31
override
void
MoveEntityToFinalPosition
(
ActionData
action_data,
vector
position,
vector
orientation)
32
{
33
ClearInventoryReservationEx
(action_data);
34
}
35
}
m_StanceMask
int m_StanceMask
Definition
actionbase.c:33
ActionData
ActionBase ActionData
Definition
actionbase.c:30
ActionTarget
class ActionTargets ActionTarget
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Definition
actionbase.c:70
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
actionbase.c:71
ActionBase::ClearInventoryReservationEx
void ClearInventoryReservationEx(ActionData action_data)
Definition
actionbase.c:1040
ActionDeployBase::ActionDeployBase
void ActionDeployBase()
Definition
actiondeploybase.c:25
ActionDeployHuntingTrap::ActionConditionContinue
override bool ActionConditionContinue(ActionData action_data)
Definition
actiondeployhuntingtrap.c:26
ActionDeployHuntingTrap::CreateConditionComponents
override void CreateConditionComponents()
Definition
actiondeployhuntingtrap.c:20
ActionDeployHuntingTrap::MoveEntityToFinalPosition
override void MoveEntityToFinalPosition(ActionData action_data, vector position, vector orientation)
Definition
actiondeployhuntingtrap.c:31
ActionDeployHuntingTrap::ActionDeployHuntingTrap
void ActionDeployHuntingTrap()
Definition
actiondeployhuntingtrap.c:3
ActionDeployHuntingTrap::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actiondeployhuntingtrap.c:10
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
animatedactionbase.c:143
CCINonRuined
Definition
ccinonruined.c:2
CCTNone
Definition
cctnone.c:2
ItemBase
Definition
inventoryitem.c:742
ItemBase::CanBePlaced
override bool CanBePlaced(Man player, vector position)
Definition
tentbase.c:968
PlayerBase
Definition
playerbaseclient.c:2
vector
Definition
enconvert.c:119
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
m_Sound
EffectSound m_Sound
Definition
hungersoundhandler.c:18
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
continuous
deployactions
actiondeployhuntingtrap.c
Generated by
1.17.0