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

Go to the source code of this file.

Classes

class  ActionPlaceOvenIndoor
 

Functions

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

Variables

ActionPlaceOvenIndoor 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 ActionPlaceOvenIndoor.c.

103 {
104 super.CopyOldPropertiesToNew(old_item, new_item);
105
106 OvenIndoor fireplace_indoor = OvenIndoor.Cast(new_item);
108 {
109 //set fire point index
110 fireplace_indoor.SetFirePointIndex(m_FirePointIndex);
111
112 // rotate fireplace
115 fireplace_indoor.SetOrientation(fprot);
116 Print(fireplace_indoor.GetOrientation());
117
118 // smoke pos (chimney)
119 fireplace_indoor.SetSmokePointPosition(m_SmokePosition);
120
121 //synchronize
122 fireplace_indoor.Synchronize();
123 }
124 }
vector m_SmokePosition
ActionPlaceOvenIndoor m_FirePointIndex
float m_FireplaceRot
static const vector Zero
Definition EnConvert.c:110
proto void Print(void var)
Prints content of variable to console/log.

References m_FireplaceRot, m_FirePointIndex, m_SmokePosition, Print(), and vector::Zero.

◆ FireplaceToIndoorOvenLambda()

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

Definition at line 84 of file ActionPlaceOvenIndoor.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(OvenIndoor.OVENPOINT_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 ActionPlaceOvenIndoor::OnExecuteServer().

Variable Documentation

◆ m_FireplaceRot

float m_FireplaceRot

Definition at line 81 of file ActionPlaceOvenIndoor.c.

◆ m_FirePointIndex

ActionPlaceOvenIndoor m_FirePointIndex

◆ m_SmokePosition

vector m_SmokePosition

Definition at line 82 of file ActionPlaceOvenIndoor.c.