go-trough brush


(TheDragon) #1

ok, how to make a brush that lets you go through on 1 side but is solid on the other?

(I saw it in a TJ map so it is possible)

PS: I think it was ‘wa cow mud jumps’ but I’m not sure


(Pande) #2

well, firstly you must use a shader. I presume here you mean that there is a texture on both sides ?

here is how:

if your want space between the walls, use this:

textures/mapname/secretwall_gothru
{
qer_Editorimage textures/mapname/secretwall_tex
q3map_nonsolid
surfaceparm nonopaque
surfaceparm trans
surfaceparm detail
{
map $lightmap
rgbGen identityLighting
}
{
map textures/mapname/secretwall_tex
blendFunc GL_SRC_ALPHA GL_ONE
}
}

textures/mapname/secretwall_solid
{
qer_Editorimage textures/mapname/secretwall_tex
{
map $lightmap
rgbGen identityLighting
}
{
map textures/mapname/secretwall_tex
blendFunc GL_SRC_ALPHA GL_ONE
}
}

use gothru on one side, and solid on the other.

if not, use this:

textures/mapname/secretwall_solid
{
qer_Editorimage textures/mapname/secretwall_tex
q3map_backshader secretwall_gothru
{
map $lightmap
rgbGen identityLighting
}
{
map textures/mapname/secretwall_tex
blendFunc GL_SRC_ALPHA GL_ONE
}
}

textures/mapname/secretwall_gothru
{
qer_Editorimage textures/mapname/secretwall_tex
q3map_nonsolid
surfaceparm nonopaque
surfaceparm trans
surfaceparm detail
{
map $lightmap
rgbGen identityLighting
}
{
map textures/mapname/secretwall_tex
blendFunc GL_SRC_ALPHA GL_ONE
}
}

apply the solid shader, and the gothru shader will be applied to the other side automatically due to q3map_backshader.


(Wezelkrozum) #3

you could also use a patch. Give it a caulk texture. The side where the caulk is visible in gtkradiant will be solid, the other side non-solid.


(stealth6) #4

yes this if probably the easiest way


(C) #5

You cannot mix non-solid and solid in 1 brush…

i used a method found on this forum (very old post, search and find, everything has already been asked before i guess)…
i used it in one of my maps, see the paradrop at the beach:
http://www.et-only.com/downloads/mappingstuff/UJE_01_VIP_SOURCE.zip


(Pande) #6

:o I thought he wanted a fake wall. My bad… Yes use a patch. But don’t use caulk, use clip. Caulk will block light.