Skip to content

Commit

Permalink
add anim dec
Browse files Browse the repository at this point in the history
  • Loading branch information
raidernick committed Aug 8, 2016
1 parent cec440c commit 282164d
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
24 changes: 24 additions & 0 deletions GameData/AnimatedDecouplers/AnimatedDecouplers.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"NAME":"Animated Decouplers",
"URL":"http://raw.githubusercontent.com/Starwaster/AnimatedDecouplers/master/GameData/AnimatedDecouplers/AnimatedDecouplers.version",
"DOWNLOAD":"http://github.com/Starwaster/AnimatedDecouplers/releases",
"GITHUB":
{
"USERNAME":"Starwaster",
"REPOSITORY":"AnimatedDecouplers",
"ALLOW_PRE_RELEASE":false,
},
"VERSION":
{
"MAJOR":1,
"MINOR":3,
"PATCH":2,
"BUILD":0
},
"KSP_VERSION":
{
"MAJOR":1,
"MINOR":1,
"PATCH":3
},
}
6 changes: 6 additions & 0 deletions GameData/AnimatedDecouplers/License.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Released under Creative Commons Share-alike attribution license:

http://creativecommons.org/licenses/by-sa/4.0/

Full convoluted text here:
http://creativecommons.org/licenses/by-sa/4.0/legalcode
Binary file not shown.
41 changes: 41 additions & 0 deletions GameData/AnimatedDecouplers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
AnimatedDecouplers
==================

Extensions of KSP's decouplers that play animations


Configure the same way as you would standard decoupler modules but it now accepts animationName, which is the name of an animation on the model.

If the model has no animation or no animation name is configured then these function exactly as stock decouplers.

For example:

MODULE
{
name = ModuleAnimatedDecoupler
ejectionForce = 200
explosiveNodeID = top
staged = false
animationName = SDHI_Umbilical
waitForAnimation = false // (If true, then delay decoupling until animation has finished playing)
layer = 1 // Animation's layer will be set to this. Helps prevent multiple animations on one part interfering with each other
}

Additionally, if ModuleCargoBay is configured on the part and DeployModuleIndex has the module index for the decoupler provided (0 = first) then the part will shield enclosed parts in KSP 1.0 and beyond. (against aerothermodynamic forces)


Changelog
Version 1.3.0
* Additional checks for null references
* Reworking of code; extraneous code removed. (deploy checks for occlusion purposes that were later determined to be unnecessary)

Version 1.2.0

* Added waitForAnimation. (if true, decoupling will be delayed until animation has completed)
* Added layer field, requiring an integer. If set, part's animation layer will be set to this. (unique layers per animation help prevent animations from canceling one another)
* Added check for null animator. (if no animation was set and found then don't delay decoupling)
* General reworking of code.

Version 1.2.1

* Added extra checks for null references. (fixes certain issues in staging. i.e. only one of multiple symmetrical decouplers firing or one part of any staging group firing)

0 comments on commit 282164d

Please sign in to comment.