Glowing Joints (sorta)
This script is merely for looks and that alone. It places a transparent orb around each joint, simulating somewhat of a glowing joint.
I'll also include some of my edited LightDagger scripts.
Here's a screenshot.
I am NOT TAKING REQUESTS to make each joint a different size/color. Learn the syntax below and do it yourself.
SYNTAX:
When You open the script you should see
local p3 = {['x'] = 0, ['y'] = 0, ['z'] = 0}
local draw = false
local function get_distance(x1,y1,z1,x2,y2,z2)
local dist = math.abs( math.sqrt( (x1 - x2)^2 + (y1 - y2)^2 + (z1 - z2)^2 ) )
return dist
end
local function show()
if (draw == true) then
-- set_color(0,0,0,0.5)
-- draw_sphere(px,py,pz,0.2)
set_color(1,1,0,0.5)
draw_sphere(px,py,pz,0.15)
etc.
Every joint is abbreviated by the first letters of draw_sphere.
DO NOT CHANGE. Ex. la= left ankle, n=neck.
The right wrist is p. This is the only exception.
Changing Color:
The color is in the
set_color line
ABOVE the wanted joint. The first 3 numbers are color, the last is visibility (1 = 100% visible, .5 = 50% visible, etc.). The colors are in red green blue format. They are determined by ratio (ex. 1,1,1 is the same as 50,50,50. 100, 50, 0 is the same as 2,1,0). To add white to colors, add 1 to every number. To get black, use a decimal.
Changing Size:
The size is in the last number in the draw_sphere line of your desired joint (indicated in syntax by the bold).
END SYNTAX
Go to Save As if you don't want to overwrite the original. If you do decide to do this THE NAME MUST HAVE NO SPACES IN IT! This will cause an error that took me 2 hours to find.
Credits: 50% to suo for the light dagger script; the script I learned lua from, and used as the base for this script.
NOTE: Removed neck glow. And wrist glow size decreased!
Last edited by Nuyashaki; Jan 11, 2008 at 12:42 AM.