medsouz

[0.25] Rebar - Modify building destruction settings!

Recommended Posts

This is a quick plugin that I wrote to help me figure out how KSP handles building destruction internally so that I could add destruction support to Kerbal Konstructs.

The plugin allows you to globally modify the follow settings:

  • Damage decay rate - How fast the building recovers from a non-fatal collision.
  • Impact momentum - How much momentum (velocity * mass) is required for a collision (or group of collisions) to take down the building
  • Repair cost - How much it costs to repair :P
  • Collapse duration - How many seconds it takes for the building to collapse
  • Collapse offset - How much the building can slide to the side while falling
  • Collapse tilt - How much the building can rotate while falling

To change the settings edit this file:

GameData/Rebar/PluginData/KerbalRebar/KerbalRebar.cfg

Right now the config is relatively simple and the settings effect every destructible building in the game (if people are interested I could probably change this to let you modify individual buildings.) and only lets you set a multiplier (or addend for tilt and offset).

359Gp94.jpg

Increased collapse tilt and duration

You can download the plugin from Kerbal Stuff

Source is available on GitHub

Share this post


Link to post
Share on other sites

Nice! Really good idea for a mod, and it looks really cool as well.

Share this post


Link to post
Share on other sites

Looks awesome!

One little request: can you save the settings inside a root node, and in a cfg that's not in PluginData--and thus *is* accessible to Module Manager patches?

Share this post


Link to post
Share on other sites
...Right now the config is relatively simple and the settings effect every destructible building in the game (if people are interested I could probably change this to let you modify individual buildings.)...

Selectively strengthen, or make indestructible, the launchpad and runway so they don't explode as soon as you launch/land heavy craft on them?

Share this post


Link to post
Share on other sites

Very sweet mod. I too would like the destructibility of the launchpad and runway to be set higher (lower? Whatever, you know what I mean), or even turned off entirely while keeping the rest of the buildings intact.

Share this post


Link to post
Share on other sites

so this still going? did you manage to get destruction to KK?

Share this post


Link to post
Share on other sites

This is an old, old thread and the author has been inactive for a while. Closing this one, will reopen if the author returns.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.