Digital Paint Discussion Board
Paintball 2: The Game => Help and Support => Resolved Help & Support => Topic started by: Zorchenhimer on May 25, 2007, 03: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:
/*
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.
-
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.
-
Awesome. Thanks.