anti-wall grab shader


(ACROBAT) #1

Ok so I found out that the systems clip shader can’t be wall grabbed. Anyways that works great unless I put it like 1-2 units in front of a real wall, in which case players can wall grab the real wall THROUGH the clip just sas if the clip wasn’t there. If I put it maybe 10 grids away then they hit the clip before the wall and can’t wall grab but that’s a problem because u can tell your hitting a clip brush…

Anyways I want to make a shader using whichever properties that the clip brush uses for a texture so i don’t have to use that i can just make a real wall.

Here’s clip’s shader

textures/system/clip
{
qer_trans 0.5
surfaceparm noimpact
surfaceparm nomarks
surfaceparm nodraw
surfaceparm nonsolid
surfaceparm nonopaque
surfaceparm playerclip
surfaceparm monsterclip
surfaceparm trans
q3map_nolightmap
}

Basically how would i make clip dislplay a regular texture…God i suck at shaders.


(Pande) #2

add a texture stage. Simple, it is missing it. Why? Because it doesn’t normally need it. :slight_smile:

textures/acrobatsmap/wall
{
qer_trans 0.5
surfaceparm noimpact
surfaceparm nomarks
surfaceparm nodraw
surfaceparm nonsolid
surfaceparm nonopaque
surfaceparm playerclip
surfaceparm monsterclip
surfaceparm trans
q3map_nolightmap
{
map $lightmap
rgbGen identity
}
{
map textures/acrobatsmap/wall
}
}

I also added the lightmap stage, because I assume you want a wall with this modified shader? You can also delete Surfaceparm trans since your wall won’t need it any longer. I am not sure about noimpact though… its gonna make it look wierd when you shoot at it, but it will also probably be a normal wall if you take it out. Experiment, no recompile needed so its just a change of a shader.


(kamikazee) #3

May I ask what you mean by a “wall grab”?


(Pande) #4

He made a mistake by posting a JKA related question in Wolf forum. xD But I knew him from map-craft so I answered him.

FYI, wall grab is when (in jka) you press space against a wall and ‘grab it’ for a second and then jump off. Useful for delaying your attacks to trick opponents. In this case, he doesn’t want it possible.


(shagileo) #5

That would be awesome in ET :smiley:


(Pande) #6

actually, it would suck. Imagine it, you grav the wall and then some noob (or pro) with a tommy or mp40 snags a few HS while your in a still position and your dead… :slight_smile: sorry to sink your boat there, shaggy!


(-SSF-Sage) #7

Well if you’d care enough to code it, wouldn’t you care to code (and propably animate) that too? But I don’t think the engine supports this or does it?


(Pande) #8

?

Should support it.


(shagileo) #9

… I still think it would be awesome in ET takes jar of magic paralyzing smell and sniffs

I have no recollection of what I just said