clip missile but dont clip player?


(IndyJones) #1

how can i do it? i have a tent wich i want players to be able shoot thru, but dont throw grenades, mortar, panzer etc thru it, and players shouldnt be able to walk on it (like its nonsolid)


(eiM) #2

how can something be nonsolid to a player but solid to a missile? Take a look at the common shaderfiles and see if there are flags you can make use of. Else I do not think there is a preset available.


(Paul) #3

I thought clip_missile only holds grenades/missiles and clip_weapon works against bullets. So maybe if you only do clip_weapon this will work?


(FireFly) #4

If you made your tent out of brushes than this should work:

Use the shader below on one side of the brush only and use textures/common/clipmissile on the other 5 sides of the brush. This should clip players, grenades and panzers, but players will still be able to shoot through the tent.

textures/yourtenttexture
{
	
	qer_editorimage textures/yourtenttexture.tga
	cull disable
	implicitMask textures/yourtenttexture.tga
}

(IndyJones) #5

yes, it’s out of brushes, but i do not want to clip players. players should be able to walk thru.

and maybe with more simple english…

players going thru = yes
missile going thru = negative
bullets from mp40, thompson etc = yes


(Paul) #6

If you only use a clip_missile doesn’t that work then?

so, using the shader of clip_missile but with a normal texture


(-SSF-Sage) #7

Yes but clipmissile blocks player too. According to what I remember, you can’t do that in ET. But you can always try. This might be your only possibility in ET. See what happens if you remove the playerclip from:

textures/common/clipmissile
{
qer_trans 0.3
surfaceparm clipmissile
surfaceparm nodraw
surfaceparm nomarks
surfaceparm playerclip
surfaceparm trans
}


(IndyJones) #8

suprisingly, it works!
i will make custom ‘common’ texture then. thanks.


(-SSF-Sage) #9

Oh. I remembered wrong then. Good job.


(eiM) #10

just what i proposed in the first place :smiley: