DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл ActionPlaceOvenIndoor.c

См. исходные тексты.

Структуры данных

class  ActionPlaceOvenIndoor
 

Функции

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)
 

Переменные

ActionPlaceOvenIndoor m_FirePointIndex
 
float m_FireplaceRot
 
vector m_SmokePosition
 

Функции

◆ CopyOldPropertiesToNew()

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

Перекрестные ссылки m_FireplaceRot, m_FirePointIndex, m_SmokePosition, Print() и vector::Zero.

◆ FireplaceToIndoorOvenLambda()

void FireplaceToIndoorOvenLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player,
vector pos,
Object target )
87 {
89 vector mtx[4];
91 mtx[3] = pos;
92 gnd.SetGround( NULL, mtx );
93 OverrideNewLocation( gnd );
94
95 //set fire point index and smoke point position in world
96 m_FirePointIndex = player.GetLastFirePointIndex();
97 m_FireplaceRot = player.GetLastFirePointRot();
98
99 vector smoke_point_pos = target.GetSelectionPositionMS( OvenIndoor.OVENPOINT_SMOKE_POSITION + m_FirePointIndex.ToString() );
102 }
InventoryLocation.
Definition InventoryLocation.c:29
Definition EnMath3D.c:28
static void MatrixIdentity4(out vector mat[4])
Creates identity matrix.
Definition EnMath3D.c:256

Перекрестные ссылки m_FireplaceRot, m_FirePointIndex, m_SmokePosition и Math3D::MatrixIdentity4().

Используется в ActionPlaceOvenIndoor::OnExecuteServer().

Переменные

◆ m_FireplaceRot

float m_FireplaceRot

◆ m_FirePointIndex

ActionPlaceOvenIndoor m_FirePointIndex

◆ m_SmokePosition

vector m_SmokePosition