Jump to content

What determines the size of the engine exhaust?


Recommended Posts

I am patching an old mod and the engine looks like a nuclear bomb goes off, the exhaust is way too big. Yet I cant find a way to tune it down. I've also checked the stock cfg of the LV45 and it lists:

 

Quote

    fx_exhaustFlame_blue = 0.0, -5.74338, 0.0, 0.0, 1.0, 0.0, running
    fx_exhaustLight_blue = 0.0, -5.74338, 0.0, 0.0, 0.0, 1.0, running
    fx_smokeTrail_light = 0.0, -5.74338, 0.0, 0.0, 1.0, 0.0, running
    fx_exhaustSparks_flameout = 0.0, -5.74338, 0.0, 0.0, 1.0, 0.0, flameout
 

but no size. what determines the size?

Link to comment
Share on other sites

  • 3 weeks later...

The size is determined by the model and I don't think can be changed. What you need to use is ModuleEnginesFX

This is a patch I made for an engine. I did have to add in some thrusttransforms from a model and to note. When using multiple prefab particles in the same effect, each must have a unique name. As you can see there is a localRotation, localScale, and localOffset. But depending on the FX, some dont work being rescaled. It has to do with a version of unity it was made with not supporting local scale. Don't have a list of which. Also the smoke trails tend to go sideways and needs reorienting. Not sure if localRotation does actually work or not. Its been a while since I played with it.

Spoiler

@PART[bahaTrrEngine]
    {
        @TechRequired = advRocketry
        @title = TRR Retractable Radial Engine Cluster A
        @description = No one likes a tiny engine, but sometimes you need them.  Now you can have them, but hide them so you don't embarrass yourself.
        @author = Barar
        !mesh = DELETE
        !MODEL {}
        !MODEL {}
        MODEL {
            model = BahaSP/Parts/trrEngine/model
        }
        MODEL {
        model = ApocSolutionsEngines/Assets/bahaRetractTRR
        }
        //     SmokeC 
        //    thrustTransform01, thrustTransform02
        !fx_exhaustFlame_blue_small = 0.0, -2, 0.0, 0.0, 1.0, 0.0, running
        !fx_exhaustLight_blue = 0.0, -2, 0.0, 0.0, 0.0, 1.0, running
        !fx_smokeTrail_light = 0.0, -2, 0.0, 0.0, 1.0, 0.0, running
        !fx_exhaustSparks_flameout = 0.0, -2, 0.0, 0.0, 1.0, 0.0, flameout
        !sound_vent_medium = engage
        !sound_rocket_hard = running
        !sound_vent_soft = disengage
        !sound_explosion_low = flameout    
        EFFECTS
        {
            running
            {
                AUDIO
                {
                    channel = Ship
                    clip = sound_rocket_hard
                    volume = 0.0 0.0
                    volume = 1.0 1.0
                    pitch = 0.0 0.8
                    pitch = 1.0 1.0
                    loop = true
                }
                PREFAB_PARTICLE
                {
                    name = exhaust4
                    prefabName = fx_exhaustFlame_blue
                    transformName = thrustTransform01
                    emission = 0.0 0.0
                    emission = 0.01 0.5
                    emission = 1.0 10.0
                    speed = 0.0 0.8
                    speed = 1.0 1.0
                    localRotation = 1, 0, 0, 0
                    localScale = 0.2, 0.2, 0.2
                    localOffset = 0, 0, 0
                }
                PREFAB_PARTICLE
                {
                    name = exhaust6
                    prefabName = fx_exhaustFlame_blue
                    transformName = thrustTransform02
                    emission = 0.0 0.0
                    emission = 0.01 0.5
                    emission = 1.0 10.0
                    speed = 0.0 0.8
                    speed = 1.0 1.0
                    localRotation = 1, 0, 0, 0
                    localScale = 0.2, 0.2, 0.2
                    localOffset = 0, 0, 0
                }
                PREFAB_PARTICLE
                {
                    name = exhaust7
                    prefabName = fx_smokeTrail_light
                    transformName = SmokeC
                    emission = 0.0 0.0
                    emission = 0.01 0.8
                    emission = 1.0 5.0
                    speed = 0.0 0.5
                    speed = 1.0 0.5
                    localRotation = 1, 0, 0, 0
                    localScale = 0.25, 0.175, 0.25
                    localOffset = 0, 0, 0
                }
            }
            engage
            {
                AUDIO
                {
                    channel = Ship
                    clip = sound_vent_medium
                    loop = false
                }
            }
            disengage
            {
                AUDIO
                {
                    channel = Ship
                    clip = sound_vent_soft
                    loop = false
                }
            }
            flameout
            {
                PREFAB_PARTICLE
                {
                    prefabName = fx_exhaustSparks_flameout_2
                    transformName = thrustTransform
                    oneShot = true
                    localScale = 1.0, 1.0, 1.0
                }
                AUDIO
                {
                    channel = Ship
                    clip = sound_explosion_low
                    volume = 1.0
                    pitch = 2.0
                    loop = false
                }
            }
        }    
        !MODULE[ModuleEngines]{}
        MODULE
        {
            name = ModuleEnginesFX
            thrustVectorTransformName = thrustTransform
            exhaustDamage = True
            ignitionThreshold = 0.1
            minThrust = 0
            maxThrust = 50
            heatProduction = 300
            fxOffset = 0, 0, 0.1
            PROPELLANT
            {
                name = LiquidFuel
                ratio = 0.9
                DrawGauge = True
            }
            PROPELLANT
            {
                name = Oxidizer
                ratio = 1.1
            }
            atmosphereCurve
            {
                key = 0 310
                key = 1 285
                key = 9 0.001
            }
            
        }    
    }    
    

 

 

 

 

Link to comment
Share on other sites

On 2/6/2020 at 10:40 AM, FreeThinker said:

We apparently is does because if you tweakscale a engine, it exhaust with be scaled up as well.

Its exhaust does not get scaled up. Either that or RealPlume plumes dont get scaled up. I'm pretty sure it stays the same with both.

Link to comment
Share on other sites

  • 2 months later...
On 2/7/2020 at 2:40 AM, FreeThinker said:

We apparently is does because if you tweakscale a engine, it exhaust with be scaled up as well.

Well, I'm sure that TweakScale don't work for stock engines, they only work for those whose part config has "module tweakscale" in them

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...