guiYMOUR / mindustry-Extra-Utilities-mod

Now start adapting to the new version
GNU General Public License v3.0
168 stars 27 forks source link

飞船发射的导弹没办法压制敌方修复 #40

Open Kasuj opened 3 months ago

guiYMOUR commented 3 months ago

fcb630caac5605d254b7eb9bcf87c4b9

Kasuj commented 3 months ago

就是悲怆在还没开启模组以前,发射远程压制性追踪导弹,能够压制敌方修复建筑,但开启之后,就没办法压制了

guiYMOUR commented 3 months ago

压制敌方建筑修复是飞船的能力不是导弹的能力,然后EU修改悲怆导弹是为了减小开销和让悲怆可以对空

Kasuj commented 3 months ago

可是压制敌方修复建筑导弹也有能力啊

guiYMOUR commented 3 months ago

这里是原版飞船导弹的代码,你说导弹有能力,那请问压制的能力写在了哪里

                bullet = new BulletType(){{
                    shootEffect = Fx.sparkShoot;
                    smokeEffect = Fx.shootSmokeTitan;
                    hitColor = Pal.suppress;
                    shake = 1f;
                    speed = 0f;
                    keepVelocity = false;
                    collidesAir = false;

                    spawnUnit = new MissileUnitType("disrupt-missile"){{
                        targetAir = false;
                        speed = 4.6f;
                        maxRange = 5f;
                        outlineColor = Pal.darkOutline;
                        health = 70;
                        homingDelay = 10f;
                        lowAltitude = true;
                        engineSize = 3f;
                        engineColor = trailColor = Pal.sapBulletBack;
                        engineLayer = Layer.effect;
                        deathExplosionEffect = Fx.none;
                        loopSoundVolume = 0.1f;

                        parts.add(new ShapePart(){{
                            layer = Layer.effect;
                            circle = true;
                            y = -0.25f;
                            radius = 1.5f;
                            color = Pal.suppress;
                            colorTo = Color.white;
                            progress = PartProgress.life.curve(Interp.pow5In);
                        }});

                        parts.add(new RegionPart("-fin"){{
                            mirror = true;
                            progress = PartProgress.life.mul(3f).curve(Interp.pow5In);
                            moveRot = 32f;
                            rotation = -6f;
                            moveY = 1.5f;
                            x = 3f / 4f;
                            y = -6f / 4f;
                        }});

                        weapons.add(new Weapon(){{
                            shootCone = 360f;
                            mirror = false;
                            reload = 1f;
                            shootOnDeath = true;
                            bullet = new ExplosionBulletType(140f, 25f){{
                                collidesAir = false;
                                suppressionRange = 140f;
                                shootEffect = new ExplosionEffect(){{
                                    lifetime = 50f;
                                    waveStroke = 5f;
                                    waveLife = 8f;
                                    waveColor = Color.white;
                                    sparkColor = smokeColor = Pal.suppress;
                                    waveRad = 40f;
                                    smokeSize = 4f;
                                    smokes = 7;
                                    smokeSizeBase = 0f;
                                    sparks = 10;
                                    sparkRad = 40f;
                                    sparkLen = 6f;
                                    sparkStroke = 2f;
                                }};
                            }};
                        }});
                    }};
                }};
guiYMOUR commented 3 months ago

还是你想要让它带上压制治疗的能力,这个很好处理

Kasuj commented 3 months ago

不应该啊,算了,我只是想让你把飞船的导弹加上压制治疗的能力