Jump to content

[PLUGIN, PART] KSP 0.14 PiSA Countdown Decoupler


Link Hogthrob

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

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

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

Link to comment
Share on other sites

  • 2 months later...
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...