Exemplo n.º 1
0
        public override void OnModelChange()
        {
            base.OnModelChange();

            if (IsFunctional)
            {
                m_base1  = Subparts["GatlingTurretBase1"];
                m_base2  = m_base1.Subparts["GatlingTurretBase2"];
                m_barrel = new MyLargeGatlingBarrel();
                ((MyLargeGatlingBarrel)m_barrel).Init(m_base2.Subparts["GatlingBarrel"], this);
                GetCameraDummy();
            }
            else
            {
                m_base1  = null;
                m_base2  = null;
                m_barrel = null;
            }

            ResetRotation();
        }
Exemplo n.º 2
0
        public override void OnModelChange()
        {
            base.OnModelChange();

            if (IsFunctional)
            {
                m_base1 = Subparts["GatlingTurretBase1"];
                m_base2 = m_base1.Subparts["GatlingTurretBase2"];
                m_barrel = new MyLargeGatlingBarrel();
                ((MyLargeGatlingBarrel)m_barrel).Init(m_base2.Subparts["GatlingBarrel"], this);
                GetCameraDummy();
            }
            else
            {
                m_base1 = null;
                m_base2 = null;
                m_barrel = null;
            }

            ResetRotation();
        }