DayZ 1.24
Loading...
Searching...
No Matches
ActionRepackTentCB Class Reference
Inheritance diagram for ActionRepackTentCB:
[legend]
Collaboration diagram for ActionRepackTentCB:
[legend]

Private Member Functions

override void CreateActionComponent ()
 
void DropDuringRepacking ()
 

Detailed Description

Definition at line 1 of file ActionRepackTent.c.

Member Function Documentation

◆ CreateActionComponent()

override void ActionRepackTentCB::CreateActionComponent ( )
inlineprivate

◆ DropDuringRepacking()

void ActionRepackTentCB::DropDuringRepacking ( )
inlineprivate

Definition at line 8 of file ActionRepackTent.c.

9 {
10 vector orientation = m_ActionData.m_Player.GetOrientation();
11 vector position = m_ActionData.m_Player.GetPosition() + m_ActionData.m_Player.GetDirection();
13 float direction[4];
16
19
22
24 {
25 if (m_ActionData.m_MainItem.GetInventory().GetCurrentInventoryLocation(source))
26 {
28 m_ActionData.m_Player.PredictiveTakeToDst(source, destination);
29 }
30 }
31 else
32 {
33 if (m_ActionData.m_MainItem.GetInventory().GetCurrentInventoryLocation(source))
34 {
36 m_ActionData.m_Player.PredictiveTakeToDst(source, destination);
37 }
38 }
39 }
PlayerBase m_Player
Definition ActionBase.c:33
ItemBase m_MainItem
Definition ActionBase.c:28
InventoryLocation.
const float DEFAULT
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
proto native CGame GetGame()
static proto void MatrixToQuat(vector mat[3], out float d[4])
Converts rotation matrix to quaternion.
static proto void YawPitchRollMatrix(vector ang, out vector mat[3])
Creates rotation matrix from angles.

References UAMaxDistances::DEFAULT, vector::DistanceSq(), GetGame(), ActionBaseCB::m_ActionData, ActionData::m_MainItem, ActionData::m_Player, Math3D::MatrixToQuat(), and Math3D::YawPitchRollMatrix().

Referenced by ActionRepackTent::OnStartAnimationLoopClient(), and ActionRepackTent::OnStartAnimationLoopServer().


The documentation for this class was generated from the following file: