Linkmaterial

From BZFlagWiki
Revision as of 16:03, 21 December 2007 by Optic Delusion (Talk | contribs) (First Addition of LinkMaterial page. Includes generic teleporter dyncol and texmat. Probably my best wiki edit ever. Can't get the page title to use a capital M in LinkMaterial, like it should be.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

LinkMaterial allows you to set the texture of the teleporter window to anything you would like it to be.

Code

To utilize LinkMaterial in your map, first it must be defined:

material
 name LinkMaterial
 texture <file name>
end

valid parameters for a Material are:

name name used to define that its a GroundMaterial
texture set the texture (must be .png but don't include the extension)


Code

#The Generic Teleporter Material
dynamicColor
  name LinkMaterial
  red limits 0 0.25
  red sinusoid 2 0 1
  green limits 0 0.25
  green sinusoid 2 0.666667 1
  blue limits 0 0.25
  blue sinusoid 2 1.33333 1
  alpha limits 0.75 0.75
end
textureMatrix
  name LinkMaterial
  shift 0 -0.05 
end
material
  name LinkMaterial
  dyncol LinkMaterial
  diffuse 0 0 0 0.5
  nolighting
  addtexture telelink
  texmat LinkMaterial
end