Jump to content

[C# Plugin] Increase engine thrust and decrease fuel flow


Recommended Posts

Hello there! I'm working at KSP mod that allows a player to upgrade parts. How to increase engine thrust by 15% or set a new value? Same with electricity generator. At the same time, also reduce fuel flow by 10% or set a new value.

Here's an example:

  Basic engine Improved engine
Thrust (kN) 200 230
Fuel flow (u/s) 16 14.4
EC generation (u/s) 10 12

Hope this information will be enough. Thanks in advance for your reply!

Link to comment
Share on other sites

  • 1 month later...

You can do this through a module manager cfg file since stock ksp already has an upgrades feature built into it and module manager can take advantage of that.  It's the simplest and easiest way without the need to do any c# hard coding.

There's two parts to it.  First you need to specify the tech node at which the upgrade unlocks at via PARTUPGRADE and secondly add the upgrade itself to the part config file via UPGRADES.

https://github.com/rspeed/Porkjet-Parts-Overhaul/releases

The above mod while old adds upgrades to existing parts so you should be able to follow those examples.  The link below also contrains lots of useful info and links to more mods containing part upgrades.

 

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...