Landmine - ive tried everything, just wont work.


(DeAtHmAsTeR) #1

Hey im posting my .shader file for my landmine thing - i don’t know why it isnt working.

all i have done is add this code to my .shader file the .shader file already has easy gen stuff init - do i need to do anything else with the script or in radiant? i have compiled it after i added it or is there a special compile for .shaders???

textures/snow_sd/s_dirt_m03i_2_big.tga 
{ 
   q3map_nonplanar 
   q3map_shadeangle 120 
   qer_editorimage textures/snow_sd/s_dirt_m03i_2_big.tga
   surfaceparm landmine 
   surfaceparm gravelsteps 
    
   { 
      map $lightmap 
      rgbGen identity 
   } 
   { 
      map textures/snow_sd/s_dirt_m03i_2_big.tga
      rgbgen identity 
      blendFunc filter 
   } 
   { 
      map textures/snow_sd/s_dirt_m03i_2_big.tga
      blendFunc GL_DST_COLOR GL_SRC_COLOR 
      detail 
      tcMod scale 6 6 
   } 
}

please help.


(chavo_one) #2

Couple of things…First, don’t EVER put your custom shaders and textures in an official directory path!!! It’s bad mapping, and can cause possible conflicts with the official shaders. Use the name of your map or something original.

Secondly, get rid of the trailing .tga in the shader name (1st line). Shaders aren’t image files.

So the first line should read something like this:


textures/my_1337_map/my_big_dirt
{
   q3map_nonplanar 
   q3map_shadeangle 120 
   qer_editorimage textures/snow_sd/s_dirt_m03i_2_big.tga 
   surfaceparm landmine 
   surfaceparm gravelsteps 
...
}

(DeAtHmAsTeR) #3

can i use snowsteps instead of gravel steps? what does that do?


(lennyballa) #4

you here diffrent sound when you walk over it, and when you shoot it


(K³t!xxXnOsSXxx) #5

well ive used a texture included whit et, the only thing i did was:
ive add a shader for that texture in mymap.shader
and here is the code

textures/snow_sd/snow_var01_big
{
	surfaceparm snow
	surfaceparm snowsteps
	surfaceparm landmine
	implicitMap textures/snow_sd/snow_var01_big.tga
}

it sounds like snow, when u shoot u can see the snow effect and u can place landmines :slight_smile: i hope it helps


(DeAtHmAsTeR) #6

K3t - blah whatever your name is - i’l try what you say in a second,

but im about to try this - will it work?

textures/snowtrench/terrain_0
{
	surfaceparm nolightmap
        surfaceparm landmine 
	q3map_novertexshadows
	q3map_forcesunlight
	{
		map textures/snow/s_dirt_m03i_2.jpg
		rgbGen vertex
		tcmod scale 0.250 0.250
	}
}

textures/snowtrench/terrain_1
{
	surfaceparm nolightmap
        surfaceparm landmine 
	q3map_novertexshadows
	q3map_forcesunlight
	{
		map textures/snow/s_cathedrale_c24b.jpg
		rgbGen vertex
		tcmod scale 0.250 0.250
	}
}

textures/snowtrench/terrain_2
{
	surfaceparm nolightmap
        surfaceparm landmine 
	q3map_novertexshadows
	q3map_forcesunlight
	{
		map textures/desert_sd/sand_patchy.tga
		rgbGen vertex
		tcmod scale 0.250 0.250
	}
}

textures/snowtrench/terrain_0to1
{
	surfaceparm nolightmap
        surfaceparm landmine 
	q3map_novertexshadows
	q3map_forcesunlight
	{
		map textures/snow/s_dirt_m03i_2.jpg
		rgbGen vertex
		alphaGen vertex
		tcmod scale 0.250 0.250
	}
	{
		map textures/snow/s_cathedrale_c24b.jpg
		rgbGen vertex
		alphaGen vertex
		tcmod scale 0.250 0.250
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	}
}

textures/snowtrench/terrain_0to2
{
	surfaceparm nolightmap
        surfaceparm landmine 
	q3map_novertexshadows
	q3map_forcesunlight
	{
		map textures/snow/s_dirt_m03i_2.jpg
		rgbGen vertex
		alphaGen vertex
		tcmod scale 0.250 0.250
	}
	{
		map textures/desert_sd/sand_patchy.tga
		rgbGen vertex
		alphaGen vertex
		tcmod scale 0.250 0.250
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	}
}

textures/snowtrench/terrain_1to2
{
	surfaceparm nolightmap
        surfaceparm landmine 
	q3map_novertexshadows
	q3map_forcesunlight
	{
		map textures/snow/s_cathedrale_c24b.jpg
		rgbGen vertex
		alphaGen vertex
		tcmod scale 0.250 0.250
	}
	{
		map textures/desert_sd/sand_patchy.tga
		rgbGen vertex
		alphaGen vertex
		tcmod scale 0.250 0.250
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	}
}

textures/snowtrench/terrain.vertex
{
	surfaceparm nolightmap
        surfaceparm landmine 
	q3map_novertexshadows
	q3map_forcesunlight
	{
		map textures/snow/s_dirt_m03i_2.jpg
		rgbGen vertex
		tcmod scale 0.250 0.250
	}
}
textures/snowtrench/s_dirt_m03i_2_big
{ 
   q3map_nonplanar 
   q3map_shadeangle 120 
   qer_editorimage textures/snow_sd/s_dirt_m03i_2_big.tga
   surfaceparm landmine 
   surfaceparm snow steps 
    
   { 
      map $lightmap 
      rgbGen identity 
   } 
   { 
      map textures/snow_sd/s_dirt_m03i_2_big.tga
      rgbgen identity 
      blendFunc filter 
   } 
   { 
      map textures/snow_sd/s_dirt_m03i_2_big.tga
      blendFunc GL_DST_COLOR GL_SRC_COLOR 
      detail 
      tcMod scale 6 6 
   } 


(DeAtHmAsTeR) #7

yes it is working now - ahem - forgot to add shader to shaderlist.txt :banghead: :bash: