Jump to content

Question on Node Attachments & Sounds


Meatsauce

Recommended Posts

Just starting playing around with making my own modules, and got as far as a single attachment point in the center of my part;

// --- general parameters ---
name = testPart001
module = Strut
author = Evis

// --- asset parameters ---
mesh = test-model-001.DAE
scale = 0.1
texture = test-model-001-1.png
specPower = 0.1
rimFalloff = 3
alphaCutoff = 0.0

// --- editor parameters ---
cost = 1
category = 3
subcategory = 0
title = Station-Module-A1
manufacturer = Meatsauce Industries
description = For use in testing payload capabilities

// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
node_stack_top = 0,1,0,0,1,0
node_stack_bottom = 0,-1.5,0,0,1,0
node_attach =1,0,0,1,0,0

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,1,1,1,1

// --- standard part parameters ---
mass = 0.01
dragModelType = default
maximum_drag = 0.1
minimum_drag = 0.1
angularDrag = 0.1
crashTolerance = 5
maxTemp = 3600

I believe I have my attach config all sorts of fubar.

Also, is there a function to allow a custom sound to be played when a particular node is severed? If so, would someone be willing to share a snippet?

Should be noted that I found the wiki article, but the code still escapes me.

Cheers,

-Meat

Link to comment
Share on other sites

I think you shall find this page illuminating: http://kerbalspaceprogram.com/~kerbalsp/wiki/index.php?title=CFG_File_Documentation

Especially this part:

There are 3 ways to add a sound to a part. KSP has an internal sound library, which contains a few sound effects. By defining a sound as in the example above, KSP will search for that sound in it\'s internal library. KSP also has a Sounds folder on it\'s main directory. This folder contains sounds that are available to every part in the Parts folder. To use a sound from the Sounds folder, you must include the file extension in the sound name (e.g., sound_vent_medium.wav = activate) The 3rd way is to include your own sound effects to your Part folder (e.g., KSPDirectory/Parts/MyPartFolder/Sounds), and define your sound effect in the same manner as above. REMEMBER: If you add a custom sound, the file name must start with sound_ (e.g., sound_myNewSoundEffect.wav).

Sounds added to a Sounds folder inside the Part folder may not be accessed by other parts. Think of those as \'private\' sounds.

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