Working ladders (GoldSrc)

From Valve Developer Community
Jump to navigation Jump to search

Stub

This article or section is a stub. You can help by expanding it.

Ladders in GoldSrc GoldSrc are traditionally made using two entities:

  • a func_illusionary with rendermode 4 and renderamt 255, for the visual representation of the ladder (usually with a clip brush around it if it isn't up next to a wall), and
  • a func_ladder, for the climbable surface itself.

Ladders do not need to use func_ladder, however. Any SOLID_NOT entity with clipnodes can be made climbable. By setting the skin KV to -16, the func_illusionary itself can be climbed, saving an edict! Do note, however, that ladders shouldn't have more than one brush per entity, as multiple brushes will cause unpredictable results.

In Spirit of Half-Life Spirit of Half-Life, spawnflag 1 can be used on func_ladder to have it be rendered. This is the same as a func_illusionary with its skin KV set to -16.