DayZ 1.24
Loading...
Searching...
No Matches
ActionDeployHuntingTrap.c
Go to the documentation of this file.
2{
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
25
27 {
28 return GetGame().IsClient() || action_data.m_MainItem.CanBePlaced(action_data.m_Player, action_data.m_Player.GetPosition());
29 }
30
35}
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
EffectSound m_Sound
override void CreateConditionComponents()
override bool ActionConditionContinue(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void MoveEntityToFinalPosition(ActionData action_data, vector position, vector orientation)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
proto native CGame GetGame()