Author Topic: Scripts  (Read 1210 times)

Zorchenhimer

  • Autococker
  • Posts: 2614
Scripts
« on: May 25, 2007, 01:33:31 PM »
Does anyone know what the syntax of "scroll" and "scale" are for use in the picture/texture scripts (in "\paintball2\pball\scripts")? There is a section in one of the files that shows the basic syntax:

Quote from: hud.txt
/*
scriptname
{
   subdivide <size>
   vertexwarp <speed> <distance> <smoothness>
   width <pixels>
   height <pixels>
   safe
   {
      map <texturename>
      scroll <xtype> <xspeed> <ytype> <yspeed>
      scale <xtype> <xspeed> <ytype> <yspeed>

      blendfunc <source> <dest>
      alphashift <speed> <min> <max>
      anim <delay> <tex1> <tex2> <tex3> ... end
      envmap
      alphamask
   }
}
*/

But I don't know what "xtype" and "ytype" would be. Any help? Thanks.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Scripts
« Reply #1 on: May 25, 2007, 04:07:31 PM »
I believe the types are sin, cos, tan, and static.  If you use static with scale, it just scales a static amount, for example scale static .5 static .5 would scale the texture coordinates down half way (making the texture appear twice as large).

Scroll is more or less the same way.  If the type is static, it will just scroll in one direction at the specified speed.  If you use something like sin, it will move back and forth in a wave-type pattern.

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Scripts
« Reply #2 on: May 26, 2007, 09:51:33 AM »
Awesome. Thanks.