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

Discussion in 'Mapping Questions & Discussion' started by DaBeatzProject, Feb 2, 2010.

  1. DaBeatzProject

    aa DaBeatzProject

    Messages:
    1,276
    Positive Ratings:
    1,091
    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.

    [​IMG]

    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....

    [​IMG]

    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!

    [​IMG]

    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.

    [​IMG]

    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.

    [​IMG]

    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.

    [​IMG]

    And I do this for all the fence models.

    [​IMG]

    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!!
     
    • Thanks Thanks x 9
    Last edited: Feb 2, 2010
  2. StickZer0

    aa StickZer0 💙💙💃💙💙

    Messages:
    664
    Positive Ratings:
    667
    Didn't think of it like that, was gonna disable collisions on my fences to save on CPU as well!

    :3
     
  3. Nutomic

    Nutomic L11: Posh Member

    Messages:
    888
    Positive Ratings:
    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:
     
  4. The Political Gamer

    aa The Political Gamer

    Messages:
    4,468
    Positive Ratings:
    1,682
    A clip a day keeps the littleedge away...
     
    • Thanks Thanks x 5
  5. Fraz

    aa Fraz Blu Hatte, Greyscale Backdrop.

    Messages:
    944
    Positive Ratings:
    564
    Nice, simple tutorial. Nice :D
     
  6. ANova

    ANova L7: Fancy Member

    Messages:
    415
    Positive Ratings:
    124
    Or just Banning him would work lol :p
     
  7. littleedge

    aa littleedge L1111: Clipping Guru

    Messages:
    983
    Positive Ratings:
    573
    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.
     
  8. Mr.Blob

    Mr.Blob L8: Fancy Shmancy Member

    Messages:
    573
    Positive Ratings:
    204
    Why didn't you just use the "block bullets" tool texture? xD
     
  9. Trotim

    aa Trotim

    Messages:
    1,179
    Positive Ratings:
    992
    The cow... is made of wood? Thanks for the spoilers, jerk
     
    • Thanks Thanks x 3
  10. Lancey

    aa Lancey Currently On: ?????

    Messages:
    3,076
    Positive Ratings:
    1,314
    Why not just use blockbullets?
     
  11. Micnax

    aa Micnax I maek map

    Messages:
    2,018
    Positive Ratings:
    1,338
    Because you have to go and ruin it, don't you
     
  12. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,739
    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
     
    • Thanks Thanks x 2