DayZ 1.24
Loading...
Searching...
No Matches
ActionPlaceFireplaceIndoor.c File Reference

Go to the source code of this file.

Classes

class  ActionPlaceFireplaceIndoor
 

Functions

void FireplaceToIndoorsLambda (EntityAI old_item, string new_item_type, PlayerBase player, vector pos, Object target)
 
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 

Variables

ActionPlaceFireplaceIndoor m_FirePointIndex
 
float m_FireplaceRot
 
vector m_SmokePosition
 

Function Documentation

◆ CopyOldPropertiesToNew()

override void CopyOldPropertiesToNew ( notnull EntityAI old_item,
EntityAI new_item )

Definition at line 102 of file ActionPlaceFireplaceIndoor.c.

103 {
104 super.CopyOldPropertiesToNew(old_item, new_item);
105
106 FireplaceIndoor fireplace_indoor = FireplaceIndoor.Cast(new_item);
108 {
109 //set fire point index
110 fireplace_indoor.SetFirePointIndex(m_FirePointIndex);
111
112 //get fire and smoke position
113 fireplace_indoor.SetSmokePointPosition(m_SmokePosition);
114
117 fireplace_indoor.SetOrientation(fprot);
118
119 //synchronize
120 fireplace_indoor.Synchronize();
121 }
122 }
ActionPlaceFireplaceIndoor m_FirePointIndex
vector m_SmokePosition
float m_FireplaceRot
static const vector Zero
Definition EnConvert.c:110

References m_FireplaceRot, m_FirePointIndex, m_SmokePosition, and vector::Zero.

◆ FireplaceToIndoorsLambda()

void FireplaceToIndoorsLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player,
vector pos,
Object target )

Definition at line 84 of file ActionPlaceFireplaceIndoor.c.

85 {
87 vector mtx[4];
89 mtx[3] = pos;
90 gnd.SetGround(NULL, mtx);
91 OverrideNewLocation(gnd);
92
93 //set fire point index and smoke point position in world
94 m_FirePointIndex = player.GetLastFirePointIndex();
95 m_FireplaceRot = player.GetLastFirePointRot();
96
97 vector smoke_point_pos = target.GetSelectionPositionMS(FireplaceIndoor.FIREPOINT_SMOKE_POSITION + m_FirePointIndex.ToString());
100 }
InventoryLocation.
static void MatrixIdentity4(out vector mat[4])
Creates identity matrix.
Definition EnMath3D.c:233

References m_FireplaceRot, m_FirePointIndex, m_SmokePosition, and Math3D::MatrixIdentity4().

Referenced by ActionPlaceFireplaceIndoor::OnExecuteServer().

Variable Documentation

◆ m_FireplaceRot

◆ m_FirePointIndex

◆ m_SmokePosition