where can I find it?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

where can I find it?

Post 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?
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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.
Admin .MAP Forums
Image
Head above heels.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

terrain

Post 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!
Tom Trude,

Image
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post 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?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Impossible.

You basically just said shaders are client-side :wink:
Image
Post Reply