64 {
66
69 vector smoke_point_pos = action_data.m_Target.GetObject().GetSelectionPositionMS( OvenIndoor.OVENPOINT_SMOKE_POSITION +
m_FirePointIndex.ToString() );
70 vector smoke_point_pos_world = action_data.m_Target.GetObject().ModelToWorld( smoke_point_pos );
72
73 OvenIndoor fp_indoor = OvenIndoor.Cast( obj );
74 if ( fp_indoor )
75 {
78
79 vector fprot = vector.Zero;
81 fp_indoor.SetOrientation( fprot );
82
83 fp_indoor.Synchronize();
84
85
87 {
89 action_data.m_Player.LocalTakeEntityToTargetAttachment(fp_indoor, action_data.m_MainItem);
90 }
91 else
92 action_data.m_Player.ServerTakeEntityToTargetAttachment(fp_indoor, action_data.m_MainItem);
93 }
94 }
ActionPlaceFireplaceIndoor m_FirePointIndex
const int ECE_PLACE_ON_SURFACE
void ClearInventoryReservationEx(ActionData action_data)
proto native Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
proto native CGame GetGame()