Class: body


API

Source Code

class body : avatarParts ( bodyx,bodyy,bodyz,bodyh,bodyt,bodyb, chestx,chesty,chestz,chestr ) method render(scolor, name, sex) if (scolor[*scolor-3:*scolor+1] == ".gif")|(scolor[*scolor-3:*scolor+1] == ".GIF") then WAttrib("texmode=on","texture="||scolor) else { WAttrib("texmode=off") Fg("ambient "||scolor)} DrawCylinder(0, -bodyh, 0, bodyh, bodyt, bodyb) WAttrib("texmode=off") PushMatrix() Rotate(90,1,0,0) DrawDisk(0,0,0,0,bodyt) PopMatrix() if sex == "w" then { PushMatrix() Translate(0,chesty,chestz) if (scolor[*scolor-3:*scolor+1] == ".gif")|(scolor[*scolor-3:*scolor+1] == ".GIF") then WAttrib("texmode=on","texture="||scolor) else { WAttrib("texmode=off") Fg("ambient "||scolor)} DrawSphere(chestx,0,0, chestr) DrawSphere(-chestx,0,0, chestr) PopMatrix() createNameTag(name,0.8,0,-bodyh+0.25,0.51) } else createNameTag(name,0.8,0,-bodyh+0.7,0.51) end initially() bodyx := 0 bodyy := 0 bodyz := 0 bodyh := 1.0 bodyt := 0.5 bodyb := 0.5 chestx := 0.175 chesty := -0.3 chestz := 0.3 chestr := 0.3 end