Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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
( !
GetGame
().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
GetGame
().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
34
}
35
}
ItemBase
Definition:
inventoryitem.c:730
GetGame
proto native CGame GetGame()
m_Sound
EffectSound m_Sound
Definition:
hungersoundhandler.c:18
ActionDeployBase
Definition:
actiondeploybase.c:19
CCTNone
Definition:
cctnone.c:1
ActionDeployHuntingTrap
Definition:
actiondeployhuntingtrap.c:1
PlayerBase
Definition:
playerbaseclient.c:1
vector
Definition:
enconvert.c:105
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition:
actionbase.c:20
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition:
dayzplayer.c:601
m_ConditionItem
ref CCIBase m_ConditionItem
Definition:
actionbase.c:55
CCINonRuined
Definition:
ccinonruined.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition:
actionbase.c:56
m_StanceMask
protected int m_StanceMask
Definition:
actionbase.c:53
DAYZ
scripts_v1.24.157551
scripts
world
classes
useractionscomponent
actions
continuous
deployactions
actiondeployhuntingtrap.c
Generated by
1.8.17