Dayz 1.25
Dayz Code 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 )
103 {
104 super.CopyOldPropertiesToNew( old_item, new_item );
105
106 FireplaceIndoor fireplace_indoor = FireplaceIndoor.Cast( new_item );
107 if ( fireplace_indoor )
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
Definition ActionPlaceFireplaceIndoor.c:82
float m_FireplaceRot
Definition ActionPlaceFireplaceIndoor.c:81
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 )
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.
Definition InventoryLocation.c:28
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