custom 'common' shader problem


(IndyJones) #1

i’m trying to make a shader similar to clipweap_metal, but instead of metal, i want it to have a gravel, for clipping sandbags.

// clips weapon with gravel
textures/path/clipweapgravel
{
  qer_editorimage textures/path/clipweapgravel.tga
  qer_trans 0.3
  surfaceparm gravelsteps
  surfaceparm nodraw
  surfaceparm nomarks
  surfaceparm trans
}

somehow it doesn’t work. it’s not even transparent in radiant… what i’m doing wrong?

FIXED! i think that ‘common’ word in .shader filename is banned.


(kamikazee) #2

So what was the original filename and what is the ‘correct’ filename?


(Pande) #3

also, your gonna want a q3map_material or its not gonna be very ‘sand’ bag-ish when shot at.


(IndyJones) #4

i wanted to split my shaders into 3 files:
mp_mymap.shader
mp_mymap_models.shader
mp_mymap_common.shader

no matter what i put in mp_mymap_common, nothing worked there. i moved content of it to mp_mymap at the bottom… works now.

pande - what it’s going to change? right now when i shoot at that invisible brush it gives me a exploding sand effect, the same as you shoot sand on oasis.