How do you make ladders?

Discussion in 'Mapping' started by Kamikazi Ice, Feb 3, 2008.

  1. Kamikazi Ice

    Kamikazi Ice Member

    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    0
    I'm not too familiar with how Empires works in Hammer and the only ladders i've made were for CS:Source. And the wiki doesn't have anything to say about them. Do they work like Half Life 2 ladders?
     
  2. Niarbeht

    Niarbeht Member

    Messages:
    2,010
    Likes Received:
    0
    Trophy Points:
    0
    From what I understand, the answer is....

    Yes.
     
  3. Kamikazi Ice

    Kamikazi Ice Member

    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    0
    Ok, I read some tutorial on the Valve Dev Community site thing but theres a problem. There are no func_useableladder or func_ladderendpoint. What the heck does Empires use?

    EDIT: Nevermind, I found them. I thought they were brush settings, not actual entities themselves.
     
    Last edited: Feb 3, 2008
  4. SgtCiof

    SgtCiof Member

    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    0
    Ah yes ladders. Took me a while to figure them out in Empire as well. Make sure you get the newer .fgd posted somewhere in the forums. It adds a couple new entities including the one you want : func_ladder!

    With it simply use a prop_static for the ladder model, then create a new brush with ladder text, tie it to func_ladder and its done!
     
  5. Solokiller

    Solokiller Member

    Messages:
    4,861
    Likes Received:
    7
    Trophy Points:
    0
    The best way to make ladder is to place ladders props, or a brush textured with a ladder texture.
    For the props, disable collision and add clip brushes to guide players along the ladders and to prevent them from getting in on the wrong side.
    Then, place a brush that covers the ladder, and texture it with tools/toolsinvisibleladder.
    Tie that brush to func_detail to avoid it from blocking vis.
     
  6. Kamikazi Ice

    Kamikazi Ice Member

    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    0
    That would be excellent! I'm gonna look for that now! Even with the entities I found I still can't get them to work so this would be perfect.

    EDIT: I didn't find the FGD but I found on the wiki a way to add it to the current one. So I did. Going to test now.

    UPDATE: Yup, it worked! Thanks guys.
     
    Last edited: Feb 3, 2008
  7. Solokiller

    Solokiller Member

    Messages:
    4,861
    Likes Received:
    7
    Trophy Points:
    0
    Func_ladder blocks vis, good luck with that method.
     
  8. SgtCiof

    SgtCiof Member

    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    0
    You mean func_ladder causes vvis to freeze?
     
  9. Solokiller

    Solokiller Member

    Messages:
    4,861
    Likes Received:
    7
    Trophy Points:
    0
    No, func_ladder blocks vis, in other words, if you made a wall out of func_ladder, it would block vis, so if it's a nodrawed brush, you wouldn't see what's behind it.
     
  10. Kamikazi Ice

    Kamikazi Ice Member

    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    0
    That's why you use invisibleladder texture...
     
  11. Solokiller

    Solokiller Member

    Messages:
    4,861
    Likes Received:
    7
    Trophy Points:
    0
    Not exactly, using that texture on a func_ladder will change nothing, it will still block vis. The only way is to make a brush textured with tools/toolsinvisibleladder and tied to func_detail, which causes vis to ignore it.
     
  12. Chris0132'

    Chris0132' Developer

    Messages:
    9,482
    Likes Received:
    0
    Trophy Points:
    0
    Are you sure? I don't know of any other entity which blocks visibility.
     
  13. Solokiller

    Solokiller Member

    Messages:
    4,861
    Likes Received:
    7
    Trophy Points:
    0
    Well this is one that does block visiblity, i had the problem in district, it split up faces and leafs like it was a world brush.
     
  14. Chris0132'

    Chris0132' Developer

    Messages:
    9,482
    Likes Received:
    0
    Trophy Points:
    0
    Well I imagine that visblocking would be changeable in the fgd, in which case modifying it should remove the visleaf chopping, and not cause problems in the game.

    Unless the game crashes when it has a visblocking entity in the middle of a leaf?
     
  15. Solokiller

    Solokiller Member

    Messages:
    4,861
    Likes Received:
    7
    Trophy Points:
    0
    Vis is calculated during compile time, it can't crash because of that ingame. You can't alter the entity either, func_ladder is handled during bsp only, which strips the entity after processing it for the portal file. (which vis uses for visibility checking) For some reason, func_ladder still blocks vis, so i'm thinking it's stripped before the portal file is generated.
     
    Last edited: Feb 4, 2008
  16. Chris0132'

    Chris0132' Developer

    Messages:
    9,482
    Likes Received:
    0
    Trophy Points:
    0
    It doesn't make sense that any entity can block visbility, because I know they're all pulled out before compiling, except for areaportals, which I think has something to do with the texture, not the entity, because I know the compiler does listen to textures, whereas unless it reads entities from the fgd (which it probably doesn't, because otherwise how would it be able to handle undefined entities?) it wouldn't be able to differentiate between one entity and the next.

    Perhaps it has something to do with the ladder texture?
     
  17. Solokiller

    Solokiller Member

    Messages:
    4,861
    Likes Received:
    7
    Trophy Points:
    0
    What i'm saying is that the entity is stripped from the brush after (or in this case, before) the portal file is generated, and the brush then acts like a normal world brush. This is why func_detail allows shadows to be generated from brushes tied to it.
     
  18. Chris0132'

    Chris0132' Developer

    Messages:
    9,482
    Likes Received:
    0
    Trophy Points:
    0
    Yeah, but func_detail doesn't block visibility, nor do any of the other entities.

    What I'm wondering is where the way the compiler handles entities is defined.
     
  19. Broccoli

    Broccoli Member

    Messages:
    1,635
    Likes Received:
    0
    Trophy Points:
    0
    Does anybody really care? Solo is right, and I can verify that his solution is correct.
     
  20. Chris0132'

    Chris0132' Developer

    Messages:
    9,482
    Likes Received:
    0
    Trophy Points:
    0
    I'm curious.
     

Share This Page