DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ FireplaceToIndoorOvenLambda()

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

См. определение в файле ActionPlaceOvenIndoor.c строка 86

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() );
100 vector smoke_point_pos_world = target.ModelToWorld( smoke_point_pos );
101 m_SmokePosition = smoke_point_pos_world;
102 }
ActionPlaceFireplaceIndoor m_FirePointIndex
vector m_SmokePosition
Определения ActionPlaceFireplaceIndoor.c:86
float m_FireplaceRot
Определения ActionPlaceFireplaceIndoor.c:85
proto native void SetGround(EntityAI e, vector mat[4])
sets current inventory location type to Ground with transformation mat
InventoryLocation.
Определения InventoryLocation.c:29
Определения EnMath3D.c:28
Определения EnConvert.c:106
static void MatrixIdentity4(out vector mat[4])
Creates identity matrix.
Определения EnMath3D.c:256

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

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