Jump to content

SRB Thrust Curves


Recommended Posts

On 28.06.2016 at 1:55 AM, CodeFantastic said:

 Would there be a way to add thrust curves? I'd like my boosters to thruttle back a bit so I can control my craft better.

They're stock now. But no stock parts have them at the moment.

Here are the patches I use to enable them:

+PART[sepMotor1]:Final
{
    @name = delayedRetro    
    @title = Sepratron I-D
    @description = Same as the Sepratron I but with a delayed fuse.
    
	@MODULE[ModuleEngines*]
    {
		%useThrustCurve = true
		
        thrustCurve
        {
            key = 0.00 0.01
            key = 0.05 1.00 0 0
            key = 0.93 1.00 0 0
            key = 0.98 0.10 0 0
            key = 1.00 0.10
        }
    }
}
@PART[*]:HAS[@RESOURCE[SolidFuel]]
{
	@MODULE[ModuleEngine*]
	{
		%useThrustCurve = true
		
		%thrustCurve
		{
key = 0 0.01 8.032298 1.11047
key = 0.01342202 0.07843862 1.11047 0.2269303
key = 0.01526241 0.7107602 1.799464 1.591762
key = 0.2355173 0.8904908 0.1987092 0.1987092
key = 0.3413242 0.7365882 -2.900315 -2.900315
key = 0.4019614 0.7171836 0.4377778 0.5915467
key = 0.7633486 0.9773242 0.407829 0.407829
key = 1 1
		}
	}
}

 

Link to comment
Share on other sites

It's a feature I'd also enjoy seeing in stock, so would a lot of people as this has already been suggested many times.

In the meantime, you can use Variable Thrust Limiter which adds a slider for "end thrust" in the VAB, allowing for a linear (with propellant mass, not time) thrust decrease/increase. It's basic but it works great.

Not an excuse for it not being stock though...

Link to comment
Share on other sites

5 hours ago, Enceos said:

They're stock now. But no stock parts have them at the moment.

Here are the patches I use to enable them:


+PART[sepMotor1]:Final
{
    @name = delayedRetro    
    @title = Sepratron I-D
    @description = Same as the Sepratron I but with a delayed fuse.
    
	@MODULE[ModuleEngines*]
    {
		%useThrustCurve = true
		
        thrustCurve
        {
            key = 0.00 0.01
            key = 0.05 1.00 0 0
            key = 0.93 1.00 0 0
            key = 0.98 0.10 0 0
            key = 1.00 0.10
        }
    }
}

@PART[*]:HAS[@RESOURCE[SolidFuel]]
{
	@MODULE[ModuleEngine*]
	{
		%useThrustCurve = true
		
		%thrustCurve
		{
key = 0 0.01 8.032298 1.11047
key = 0.01342202 0.07843862 1.11047 0.2269303
key = 0.01526241 0.7107602 1.799464 1.591762
key = 0.2355173 0.8904908 0.1987092 0.1987092
key = 0.3413242 0.7365882 -2.900315 -2.900315
key = 0.4019614 0.7171836 0.4377778 0.5915467
key = 0.7633486 0.9773242 0.407829 0.407829
key = 1 1
		}
	}
}

 

What are the four numbers for? I assume the first is how much fuel has been used (0-1) and I suspect the second is thrust, what are the last two and why so many decimal places?

would love to see an editor for this in the VAB...

Link to comment
Share on other sites

1 hour ago, John FX said:

What are the four numbers for? I assume the first is how much fuel has been used (0-1) and I suspect the second is thrust, what are the last two and why so many decimal places?

would love to see an editor for this in the VAB...

There's one, but you can't change the stock thrust curve in the game, only via configs.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...