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

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

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

class  ActionPlaceFireplaceIndoor
 

Функции

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)
 

Переменные

ActionPlaceFireplaceIndoor 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 FireplaceIndoor fireplace_indoor = FireplaceIndoor.Cast( new_item );
109 if ( fireplace_indoor )
110 {
111 //set fire point index
112 fireplace_indoor.SetFirePointIndex( m_FirePointIndex );
113
114 //get fire and smoke position
115 fireplace_indoor.SetSmokePointPosition( m_SmokePosition );
116
119 fireplace_indoor.SetOrientation( fprot );
120
121 //synchronize
122 fireplace_indoor.Synchronize();
123 }
124 }
ActionPlaceFireplaceIndoor m_FirePointIndex
vector m_SmokePosition
Definition ActionPlaceFireplaceIndoor.c:84
float m_FireplaceRot
Definition ActionPlaceFireplaceIndoor.c:83
Definition EntityAI.c:95
Definition EnConvert.c:106
static const vector Zero
Definition EnConvert.c:110

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

◆ FireplaceToIndoorsLambda()

void FireplaceToIndoorsLambda ( 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( FireplaceIndoor.FIREPOINT_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().

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

Переменные

◆ m_FireplaceRot

◆ m_FirePointIndex

◆ m_SmokePosition