Landmines


(BlitzZ) #1

Hi i cant arm landmines whats wrong?

i used easygen, did i miss anything or what?
i want landmins armed on terrain_1 and terrain_2!

textures/mp_silo/terrain_0
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/temperate_sd/rock_ugly_brown.tga
rgbGen vertex
tcmod scale 0.100 0.100
}
}

textures/mp_silo/terrain_1
{
q3map_novertexshadows
q3map_forcesunlight
surfaceparm grasssteps
surfaceparm landmine
{
map textures/temperate_sd/master_grass_dirt3.tga
rgbGen vertex
tcmod scale 0.100 0.100
}
}

textures/mp_silo/terrain_2
{
q3map_novertexshadows
q3map_forcesunlight
surfaceparm gravelsteps
surfaceparm landmine
{
map textures/temperate_sd/dirt_m03icmp_brown.jpg
rgbGen vertex
tcmod scale 0.100 0.100
}
}

textures/mp_silo/terrain_0to1
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/temperate_sd/rock_ugly_brown.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.100 0.100
}
{
map textures/temperate_sd/master_grass_dirt3.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.100 0.100
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/mp_silo/terrain_0to2
{
q3map_novertexshadows
q3map_forcesunlight
surfaceparm nolightmap
{
map textures/temperate_sd/rock_ugly_brown.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.100 0.100
}
{
map textures/temperate_sd/dirt_m03icmp_brown.jpg
rgbGen vertex
alphaGen vertex
tcmod scale 0.100 0.100
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/mp_silo/terrain_1to2
{
q3map_novertexshadows
q3map_forcesunlight
surfaceparm grasssteps
surfaceparm landmine
{
map textures/temperate_sd/master_grass_dirt3.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.100 0.100
}
{
map textures/temperate_sd/dirt_m03icmp_brown.jpg
rgbGen vertex
alphaGen vertex
tcmod scale 0.100 0.100
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/mp_silo/terrain.vertex
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/temperate_sd/rock_ugly_brown.tga
rgbGen vertex
tcmod scale 0.100 0.100
}
}


(carnage) #2

surfaceparm landmine should go somewhat towards doing this


(Ifurita) #3

did you add mp_silo to shaderlist.txt?


(BlitzZ) #4

Yes its in shaderlist.txt in the scripts folder, i have done a .pk3 of it, everything works fine exept i cant arm landmines, do i have to put the .txt file in my .pk3???


(Shaderman) #5

No.


(BlitzZ) #6

Landmines are placed on surfaces based on the “surfaceparm” value in a shader. For example:

textures/egypt_floor_sd/siwa_sandygrass
{
q3map_nonplanar
q3map_shadeangle 100
surfaceparm landmine
surfaceparm gravelsteps
implicitMap -
}

This texture will allow landmines. Please note that the “surfaceparm” values are compiled into the map and cannot be changed afterwards unless you re-compile the map again.

Sock
z0r

sock u owns big time thx :>