[TIP]Prop-Collisions, Playerclip and Non-Solid Parameters

Discussion in 'Tutorials & Resources' started by grazr, Jul 13, 2011.

  1. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,564
    The Problem.

    Whether it be reducing console error spam or preventing players from perching inappropriately on tall props, as a map author you will need to control vertical player mobility utilising clever applications of prop vphysics settings and playerclip brushes.

    Sometimes it is difficult to tell which props will require non-solid parameters and/or playercliping in order to keep players within appropriate map bounds vurses keeping realistic collisions. Whether it's because of balance issues (tall/high props are often exploited for ambush positions) or aesthetical reasons (props that can be perched on allow players further and greater visibility, often into areas you might not desire players to see; such as where holes in displacements and/or non-rendered faces are exposed behind other geometry). So, with it not always immediately visually apparent whether collisions will benefit gameplay or aesthetics or whether they will be detrimental, with a visual representation we can better simulate such gameplay in our mind and make appropriate modifications to your environment more immediately.

    Usefulness.

    As some of the more experienced users might be aware, :cm: can be used to view prop collision meshes, but what it also allows you to see is whether a prop even has a collision mesh and whether it is turned on or off. Yellow means a collision mesh is on, purple means it is off, and an absent mesh means the prop has no valid collision mesh.

    How can we use this feature to improve our maps/mapping efficiency?

    Well, for starters, turning all props with absent meshes to non-solid clears our console of collision error spam. Some people might not be concerned with this as it has no real impact on gameplay besides perhaps increasing the map's initial load time; but more professional, methodical or OCD prone level designers will prefer to keep things as clean as possible. Including the rarely viewed console.

    Secondly it allows us to spot potential exploitable positions and pre-emptively remove them before the chance arises for players to exploit and throw off map balance or immersion, potentially reducing the amount of alpha/beta releases you are required to publish.

    Feature in action:

    Here i have discovered a place that soldiers and/or demomen may exploit: I can choose to turn off the collision as the prop is so small, clipping will not be an issue. If the prop was wider and i didn't desire players to clip through it, i might be better off adding a player clip above/around it.

    [​IMG]
     
    • Thanks Thanks x 17
    Last edited: Jul 14, 2011
  2. Bloodhound

    Bloodhound L6: Sharp Member

    Messages:
    316
    Positive Ratings:
    239
    Bump, because i see this very often...
    uncliped/solid lamps and other small props high on wall, perfect for soldiers to stand on.
    Or a spammed console, because of the vphysic settings.

    We need more mappers read this.
     
  3. SuperNerd

    SuperNerd L2: Junior Member

    Messages:
    60
    Positive Ratings:
    6
    A Valve map example:
    Gravpit - Capture Point A.

    There is a small light you can balance on as scout (with FaN), demo or soldier.

    One light = Massive lols.
    No-one expects you there.
     
  4. Crash

    aa Crash func_nerd

    Messages:
    3,160
    Positive Ratings:
    4,790
    I've been tweaking all the clipping in our map, trying to get it to a final, and this is awesome. I never knew of that button before, thanks.
     
  5. VelvetFistIronGlove

    aa VelvetFistIronGlove

    Messages:
    567
    Positive Ratings:
    437
    There another important reason you'll want to turn collisions off on many small props.

    They can hamper easy movement around the level. There's nothing more annoying than backpedalling and getting stuck on a tiny jutting-out prop! This is especially true for small props that sit on walls.
     
  6. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,466
    Positive Ratings:
    237
    Valve designed it that way for HL so when you have 5 of those fast screaming zombies coming at you - they want you to die! :wow:

    But thanks very much for this post - it will help me keep the console clear - I'm using a truss with no collision and getting a lot of those error messages and this solves it :)
     
  7. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,219
    Pity there's not an option to make a prop only nonsolid to the player's own hitbox, so you could still hit it and have it dent, and other things that solid objects are supposed to do. Most of time, props that are made nonsolid are small enough that the player model doesn't clip through them anyway.