Sign in to follow this  
Link Hogthrob

[PLUGIN, PART] KSP 0.14 PiSA Countdown Decoupler

Recommended Posts

PiSA-D1 Countdown Decoupler (version 1.0)

Pigs in Space Auronautics Inc., Link Hogthrob CEO and Captain of the Swinetrek

License: Just take the code, it ain\'t that great. (PiS-PL?)

In the vast reaches of space no one can here you scream (except Piggy and Dr. Strangepork). Scream out of boredom, not that I frighten easily...

Between our stopover at the Vegan mud planet and Sally\'s Slop Shack on Delta Orionis, I threw together this complex contraption I call the Countdown Decoupler.

Space Center starts the timer and in 10 seconds your rocket engines fire no matter how much your crew cries and screams with anxiety.

Here are some screen shots for your enjoyment:

Countdown Decoupler in the VAB

PiSAD1inVAB.jpg

Start of your flight

PiSAD1_FlightStart.jpg

Abort button (Space Center control only)

PiSAD1_Abort.jpg

PiSAD1_PostLaunch.jpg

The timer continues until you close it or it will close automatically after 30 seconds of flight time.

Source code and downloads:

http://dl.dropbox.com/u/2922725/CountdownDecoupler.zip

Share this post


Link to post
Share on other sites

This is actually quite funny to have.

Thanks for making it!

It adds some nice eye-candy to the game, just what we needed. ;D

Share this post


Link to post
Share on other sites

T MINUS 10

9

8

IGNITION SEQUENCE START

5

4

3

2

1

IGNITION!

And liftoff!

Share this post


Link to post
Share on other sites

8)

I would love to put some old NASA Apollo audio to this. (Or a close facsimile) If anyone knows how to play an audio clip at run time in Unity please provide some sample code.

Share this post


Link to post
Share on other sites


//Variables and loading
AudioClip Sound = null;
public string Audio = 'sounds/sound_alarm_intermitent'; //Sound\'s location (Starting from KSP folder)

protected override void onPartStart() //Should also work if onFlightStart is inserted.
{
if(Sound=Resources.Load(Audio, typeof(AudioClip))as AudioClip) print('Sound Loaded'); else print('Sound Error');
}

//When you want to play it, insert: if(Sound!=null) audio.PlayOneShot(Sound);

That\'s what I am using to play sound in my plugin that I\'m making.

EDIT: it seems external files are not working when using this, strange.

Share this post


Link to post
Share on other sites

Awesome, thanks for the snippet and also the audio clips!

I will put these in after work tonight.

Now that we have sound, maybe I can figure out how to read 'Jeb\'s' emotions and add some more interesting stuff to a communication plug-in...

Share this post


Link to post
Share on other sites
Guest meteorite 101

AWESOME all we need now is auto sequence start

Share this post


Link to post
Share on other sites
Guest meteorite 101

i have a hard time trying to set the count down to T-00:0:30

but overall awesome

Share this post


Link to post
Share on other sites
Guest meteorite 101

i have a rocket sound here but i need some one to edit it and make it louder

can you incorporate the count down sound ( sound start) in you next release

Merged. Don\'t do it again.

Share this post


Link to post
Share on other sites

Any tips for applying this part?

Whether I put it as the first or last stage, I still cant get it to work properly.

Share this post


Link to post
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.

Sign in to follow this