Пример #1
0
        public override void Init(StringBuilder hudLabelText, MyEntity parentObject,
                                  Vector3 position, Vector3 forwardVector, Vector3 upVector,
                                  MyMwcObjectBuilder_Base objectBuilder)
        {
            base.Init(hudLabelText, MyModelsEnum.LargeShipCiwsBase, MyMaterialType.METAL, parentObject, position, forwardVector, upVector, objectBuilder, MyModelsEnum.LargeShipCiwsBase_COL);

            Matrix barrelMatrix          = MyMath.NormalizeMatrix(ModelLod0.Dummies["axis"].Matrix);
            MyLargeShipCIWSBarrel barrel = new MyLargeShipCIWSBarrel();

            barrel.Init(hudLabelText, barrelMatrix, MyMwcObjectBuilder_SmallShip_Ammo_TypesEnum.Autocannon_High_Speed, this);
            MountBarrel(barrel);

            // User settings:
            m_predictionIntervalConst_ms  = 250;
            m_checkTargetIntervalConst_ms = 150;
            m_randomStandbyChangeConst_ms = 4000;

            m_shootingSound        = MySoundCuesEnum.WepMachineGunNormFire3d;
            m_shootingSoundRelease = MySoundCuesEnum.WepMachineGunNormRel3d;
        }
Пример #2
0
        public override void Init(StringBuilder hudLabelText, MyEntity parentObject,
            Vector3 position, Vector3 forwardVector, Vector3 upVector,
            MyMwcObjectBuilder_Base objectBuilder)
        {
            base.Init(hudLabelText, MyModelsEnum.LargeShipCiwsBase, MyMaterialType.METAL, parentObject, position, forwardVector, upVector, objectBuilder, MyModelsEnum.LargeShipCiwsBase_COL);

            Matrix barrelMatrix = MyMath.NormalizeMatrix(ModelLod0.Dummies["axis"].Matrix);
            MyLargeShipCIWSBarrel barrel = new MyLargeShipCIWSBarrel();

            barrel.Init(hudLabelText, barrelMatrix, MyMwcObjectBuilder_SmallShip_Ammo_TypesEnum.Autocannon_High_Speed, this);
            MountBarrel(barrel);

            // User settings:
            m_predictionIntervalConst_ms = 250;
            m_checkTargetIntervalConst_ms = 150;
            m_randomStandbyChangeConst_ms = 4000;
            
            m_shootingSound = MySoundCuesEnum.WepMachineGunNormFire3d;
            m_shootingSoundRelease = MySoundCuesEnum.WepMachineGunNormRel3d;
        }