How to clip fences - properly - and WHY not to disable the collisions!

Sep 12, 2008
1,272
1,141
How to clip fences?!

I can already see the reactions coming: 'What the hell? Why this kind of stupid tutorial on my tf2maps.net?'

Yes, it might sound weird or stupid, but it's a common mistake in mapping! First of all, many people think: 'let's just disable colisions on that fence and place the playerclip nicely whereever we want!' No problem with people getting on top of it! Wrong. Disabling colisions might seem a good solution - for a darn easy "problem" to solve -, but it's not and has a lot of stupid back-sides. I've seen a few maps now that don't have solid fences, and it's starting to annoy me, so here we go!

Why not to disable collisions on a fence?

Here is an example of what happens when you want to try to shoot as a soldier/demoman at an enemy (currently not here in the picture) that's standing right next to a NON-SOLID fence.

fenceclippingtutorial010005.jpg


How annoying! And come on, such big rockets flying through a fence with such tiny holes?
But! If we imagine a red soldier shooting at a heavy in front of a SOLID fence....

fenceclippingtutorial010016.jpg


What an improvement! And it's easier to get kills without getting annoyed by the mapper's choices!
Conclusion? Always make your fences SOLID, unless you really want to be special.
So, now that this is cleared out, i'd like to show you why clipping fences isn't hard at all.

Clipping fences properly.

Good, I have put a set of security fences around my cow to keep it inside! I want to clip those fences, and it isn't a hard job!

cow01.jpg


First of all, I press the 'CM' button :)cm: - Shows Collision Model Wireframe). I can see that the fences have yellow wires around them. The cow and the barbed fence set don't have collision models so there are no yellow wires.

cow02.jpg


Now, I select the tools/toolsplayerclip texture to clip the fences so that players can't jump over them. And then i use the BLOCK TOOL ( :brushtool: ) to create a brush, leading from ceiling to sky, in a basic shape around one part of the fence.

cow03.jpg


Now I select the VERTEX TOOL ( :vertextool: ) and shape the brush along the fence, while making sure that the brush is around the whole collision model of the fence, so that players can't stand on it.

cow04.jpg


And I do this for all the fence models.

cow05.jpg


And Huppah! It's already over! I have succesfully clipped my fences! And by the way, that cow is made of wood.

So next time you have fences in your map, please, please please PLEASE do NOT disable collisions on them but DO clip them properly!
I hope this short tutorial hasn't helped you at all, because this is basic mapper knowledge! And for those who really didn't know it, well, you should know better!!
 
Last edited:

Nutomic

L11: Posh Member
Feb 7, 2009
888
177
I made it so that i disabled collisions on my fences (yes i did :p), but i also placed a brush with tools/toolsinvisible where the fence is, so you cant shoot through it.

Nice Tutorial :thumbup1:
 

littleedge

L1111: Clipping Guru
aa
Mar 2, 2009
986
605
I was about to call you insane.
I was about to call you a less lazy job stealer.
But as the Heavy said: YOU DID WELL!

You could always just put another brush where the fence is to get the 'hitting the fence' thing down, but it's useless work. Now, because Edge was silly when he made his Common Clipping Problems TIP, it's incorrect...ignore it. He's too lazy to go fix everything right now (nor has time).

Also. Resize your images pl0x. I'd rather my page didn't spaz out as I load. Keep them as images, but make them smaller so they aren't resized. Microscreenshots.
 

Mr.Blob

L8: Fancy Shmancy Member
Jun 12, 2009
573
249
I made it so that i disabled collisions on my fences (yes i did :p), but i also placed a brush with tools/toolsinvisible where the fence is, so you cant shoot through it.

Nice Tutorial :thumbup1:

Why didn't you just use the "block bullets" tool texture? xD
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
Why not just use blockbullets?

Just like the other numpty up there. Why rebuild the collision mesh out of brushes when it already exits. Just use the collision mesh and stop messing with the natural order of things.

If you use a brush that is solid to mimic the collision meshes of the fence, you're doubling the number of brushes you need, since the brush blocks collisions you need clip or player clip above the fence as well.

One model+one brush >> one model+two brushes