everytime i make terrain, i can’t place landmines on it… Can somebody explain in n00b language. :chef: :bash:
Landmines & Terrain
Seg,
A little more info might help others to help you out.
How did you create the terrain (easygen/gensurf)?
How did you ‘texture’ your terrain, you should be using a terrain shader, and the shader allows adjustments for mines.
Make sure the texture you are using is would allow mines to be planted. Sand = YES, stone path = NO.
Oki. So if I get this right, some terrain textures allow mines to be placed and some don’t? That’s up to the information contained withing each texture?
Ciao!
Oki. So if I get this right, some terrain textures allow mines to be placed and some don’t? That’s up to the information contained withing each texture?
That is correct sir…I don’t know which texture he’s been trying to plant mines on…but if hes been using stone, then it’s just not going to happen.
All dirt, sand, and grass textures will allow mines.
Your shaders should be in your etmain\scripts diretory. the shader should look something like this:
textures/sector47/lmterrain_base
{
q3map_normalimage textures/sd_bumpmaps/normalmap_terrain.tga
q3map_lightmapsize 512 512
q3map_lightmapMergable
q3map_lightmapaxis z
q3map_tcGen ivector ( 512 0 0 ) ( 0 512 0 )
q3map_tcMod scale 2 2
q3map_tcMod rotate 37
surfaceparm grasssteps
surfaceparm landmine
}
textures/sector47/lmterrain_0
{
q3map_baseshader textures/sector47/lmterrain_base
{
map textures/temperate_sd/master_grass_dirt3.tga
rgbgen identity
}
{
lightmap $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
}
This was taken from the terrain shader I am using for my upcoming map. It’s obviously not the full shader but it explains the important parts. Now I don’t use easygen so I won’t be of much help on that aspect. But take note of the surfaceparm landmine. Now if I’m correct, and I like to think I am, having this set in the shader is what allows players to set landmines. So if you cannot set mines, then this surfaceparm is probably missing. Hope this helps…