can't place landmines


(Wezelkrozum) #1

i have a grasstextures with a shaderfile:


textures/terrain/blend1
{
    q3map_nonplanar
    qer_editorimage textures/terrain/blend1.jpg
    surfaceparm landmine
    surfaceparm gravelsteps

	q3map_nonplanar
	q3map_shadeangle 160
	q3map_noTJunc
	q3map_noclip
	surfaceparm grasssteps
	surfaceparm landmine
    {
        map $lightmap
        rgbGen identity
    }
    {
		map textures/terrain/blend1.jpg
        blendFunc filter
    }

}

but i can’t place landmines :frowning:
what’s the problem :?


(masterkiller) #2

Hello,
Im not good whit the shader but what i will try…

this

textures/terrain/blend1
{
    qer_editorimage textures/terrain/blend1.jpg
    surfaceparm landmine
    surfaceparm gravelsteps

   q3map_nonplanar
   q3map_shadeangle 160
   q3map_noTJunc
   q3map_noclip
    {
        map $lightmap
        rgbGen identity
    }
    {
      map textures/terrain/blend1.jpg
        blendFunc filter
    }

}  

or this

textures/terrain/blend1
{
    qer_editorimage textures/terrain/blend1.jpg
    surfaceparm landmine
    surfaceparm gravelsteps

   q3map_nonplanar
   q3map_shadeangle 160
   q3map_noTJunc
 //  q3map_noclip
    {
        map $lightmap
        rgbGen identity
    }
    {
      map textures/terrain/blend1.jpg
        blendFunc filter
    }

}  

or this one loll

textures/terrain/blend1
{
    qer_editorimage textures/terrain/blend1.tga
    surfaceparm landmine
    surfaceparm gravelsteps

   q3map_nonplanar
   q3map_shadeangle 160
   q3map_noTJunc
   q3map_noclip
    {
        map $lightmap
        rgbGen identity
    }
    {
      map textures/terrain/blend1.tga
        blendFunc filter
    }

}  

Be sure you apply this in the shadder in folder “scripts” before compilation. (etmain/script/your_map.shader)

I repeat, i not good at it… This is what i will try.

Good luck :slight_smile:


(Wezelkrozum) #3

it don’t work :frowning:


(masterkiller) #4

try this

textures/terrain/blend1 
{
      surfaceparm nolightmap
      surfaceparm gravelsteps  
      surfaceparm landmine
	q3map_novertexshadows
	q3map_forcesunlight
	{
		map textures/terrain/blend1.jpg 
		rgbGen vertex
		tcmod scale 0.083333336 0.083333336
	}
}

I use this one for rizeur terrain map


(stephanbay) #5

landmines may not work if server is running unpure and map loaded with /devmap. try putting it in pk3 then test. it will work


(Loffy) #6

Did you recompile? Did the compiler read the new shader/use it?
For example, did you put the name of the shader in the shaderlist.txt?


(Wezelkrozum) #7

if it don’t work with devmap than is that the problem :stuck_out_tongue:
thanx i shall try it an other way