31
Modification Help / [RELEASE] Wire Effect - Now with download link!
« on: December 04, 2011, 03:34:09 PM »
Wire effected created using a bunch of 2D shapes. It's fully working, but it's user not friendly yet, so I'm releasing it here so someone can figure out how to handle creation, saving, etc. Right now wires can be created between two bricks using the wire wand tool.
Download:
Beta 4: http://www.mediafire.com/?5t573qm58giin6h (Most Recent)
Beta 3: http://www.mediafire.com/?mrpdjn36ni2hw11 (Unstable)
Beta 2: http://www.mediafire.com/?944c7q7zv1jhdff
Beta 1: Lost link lol
Changelog:
Beta 4:
Beta 3:
Functions:
Global Variables:
Download:
Beta 4: http://www.mediafire.com/?5t573qm58giin6h (Most Recent)
Beta 3: http://www.mediafire.com/?mrpdjn36ni2hw11 (Unstable)
Beta 2: http://www.mediafire.com/?944c7q7zv1jhdff
Beta 1: Lost link lol
Changelog:
Beta 4:
- fxWireFunctions.cs: Fixed broken wireSetHidden, wireSetEmitter and wireSetColor functions
- item_wireWand.cs: Wire slack is now automatically calculated to make wires of all lengths look more natural. Hopefully in the future wire slack will be easily adjustable for manual tweaking.
Beta 3:
- fxWireFunctions.cs: Rewrote everything to use emitters to render wires
- fxWireFunctions.cs: $fxWires::shapeDataBlock changed to $fxWires::defaultEmitter
- fxWireFunctions.cs: Added function wireSetEmitter(%wire, %emitter)
- Known Bug: wireSetHidden(%wire, %hidden) is messed up. It needs to be changed to it sets the emitter's color to "0 0 0 0" to hide and brick to the default color to unhide.
- item_wireWand.cs: Added global variable $fxWires::maxDist
- item_wireWand.cs: Full trust is now required to use
- item_wireWand.cs: Wires now change color and disappear when one of the bricks does
- item_wireWand.cs: Wires will be deleted if one of their bricks is destoryed
- item_wireWand.cs: Wire Wand will delete the wire if a wire already exist
- fxWireFunctions.cs: Added function wireSetHidden(%wire, %hidden)
- fxWireFunctions.cs: Added global variable $fxWires::wireQuota
Functions:
Code: [Select]
wireCreate(%pointA, %pointB, %color, %slack [, %emitter])
Makes a wire between pointA and pointB. color is the color of the wire, slack is how much the wire hangs down. emitter is the emitter datablock to use, if it is not specified the default is used. Returns the object ID of the wire.Code: [Select]
wireDelete(%wire)
Deletes the wire.Code: [Select]
wireSetColor(%wire, %color)
Changes the wire's color without deleting it and re-making it.Code: [Select]
wireSetSlack(%wire, %slack)
Changes the wire's slack without deleting it and re-making it.Code: [Select]
wireSetHidden(%wire, %hidden)
Hide or unhide the wire.Code: [Select]
wireSetSlack(%wire, %emitter)
Changes the wire's emitter without deleting it and re-making it.Global Variables:
Code: [Select]
$fxWires::resolution
How many wire shapes per unit. Only effects wires created after the var is changed. Default is 10.Code: [Select]
$fxWires::defaultEmitter
Datablock to use for the wire shapes. Default is wireEmitter (declared in server.cs).Code: [Select]
$fxWires::maxDist
Max length of a wire in torque units. Default is 64.Code: [Select]
$fxWires::wireQuota
Max total wires. Default is 30.