Page 1 of 1

where can I find it?

Posted: Sat Sep 18, 2004 3:24 pm
by At0miC
Hey, maybe I got a weird question, but in what file is written that there is a "surfaceparm" or that there is a "depthWrite" or "tcMod scroll". Where is it written that it exists? so you can put those value's in a shader:

Code: Select all

textures/moving_train/m_bocagegrass_1 
{ 
   qer_keyword signs 
   surfaceparm no marks 
   { 
      map textures/moving_train/m_bocagegrass_1.jpg 
      depthWrite 
      tcMod scroll 3 0 //adjust this line for direction and speed 
      tcMod scale 1 1 
   } 
   { 
      map $lightmap 
      rgbGen identity 
      blendFunc GL_DST_COLOR GL_ZERO 
      depthFunc equal 
   } 
} 
For example, I want to disable the tcMod scale value, like removing it, so you can't use this value anymore. ( I mean not removing it in the shader, but remove it from the game, so this value doesn't work anymore in all the shaders that has this value) if not, can I disable the tcMod scale value by using the scr file?


any suggestions?

Posted: Sat Sep 18, 2004 10:45 pm
by Bjarne BZR
I'll just avoid asking why in h**ls name you would want to.

I dont think so, but check the Q3A Shader Manual for some shader info and perhaps the Q3A Shader Editor.

terrain

Posted: Sun Sep 19, 2004 7:40 am
by tltrude
You can't really add scripting to shaders, although there are animated shaders, like for explosions.

The best way would be to have two sets of brushes that are script_objects. The non-scrolling ones could be hidden (hide command) untill you need them (show command)--the scorlling ones could just be removed.

I think I see a train wreck ahead!

Posted: Sun Sep 19, 2004 8:37 am
by At0miC
Well, I wanted to create an anti wallhack mod, somehow.
I found out that the most wallhacks that is used for mohaa, are using the noDepthTest value in the player (skins) textures shaders, this value will let the textures see through other textures, so cheaters can see move players through walls.

I want to make a mod so the noDepthTest value would be disabled (serverside), I don't know how to do that, because I think if it is possible to disable it, it won't be possible to do it serverside? Or there must be a large round away todo this?

Any suggestions?

Posted: Sun Sep 19, 2004 9:08 am
by jv_map
Impossible.

You basically just said shaders are client-side :wink: