public override void OnModelChange() { base.OnModelChange(); if (IsFunctional) { m_base1 = Subparts["InteriorTurretBase1"]; m_base2 = m_base1.Subparts["InteriorTurretBase2"]; m_barrel = new MyLargeInteriorBarrel(); ((MyLargeInteriorBarrel)m_barrel).Init(m_base2, this); GetCameraDummy(); } else { m_base1 = null; m_base2 = null; m_barrel = null; } ResetRotation(); }