This article's documentation is for anything that uses the Source engine. Click here for more information.

Func ladder: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Usage: definitely the case for tf2 and p2)
Line 17: Line 17:
* {{Left 4 Dead series|4}} - Use this. See [[L4D_Level_Design/Ladders]]. Can also use {{ent|func_brush}} if toggling it is neccessary but will be climbable from any side.  
* {{Left 4 Dead series|4}} - Use this. See [[L4D_Level_Design/Ladders]]. Can also use {{ent|func_brush}} if toggling it is neccessary but will be climbable from any side.  
* {{Half-Life 2 series|4}}, {{portal|4}} Players or NPCs are unable to use ladder contents for climbing. Use {{ent|func_useableladder}} instead.
* {{Half-Life 2 series|4}}, {{portal|4}} Players or NPCs are unable to use ladder contents for climbing. Use {{ent|func_useableladder}} instead.
* {{Team Fortress 2|4}}, {{Portal 2|4}}, {{Alien Swarm|4}} - climbing not possible {{confirm}}. Needs workarounds [[Working_ladders#Brush-based_ladder_workaround]]
* {{Team Fortress 2|4}}, {{Portal 2|4}}, {{Alien Swarm|4}}{{confirm}} - climbing not possible. Needs workarounds [[Working_ladders#Brush-based_ladder_workaround]]
* '''anything else''' - use {{ent|func_detail}} (or {{ent|func_brush}} if toggling is wanted) with a <code>tools/toolsinvisbleladder</code> texture (or other that has <kbd>%CompileLadder</kbd>).
* '''anything else''' - use {{ent|func_detail}} (or {{ent|func_brush}} if toggling is wanted) with a <code>tools/toolsinvisbleladder</code> texture (or other that has <kbd>%CompileLadder</kbd>).



Revision as of 07:59, 2 May 2025

English (en)中文 (zh)Translate (Translate)

edit
Icon-NotInFGD.png
This entity is not in the FGD by default, except in Counter-Strike: SourceDay of Defeat: SourceLeft 4 DeadLeft 4 Dead 2Counter-Strike: Global Offensive.
See below for instructions on making it available.

func_ladder is an internal brush entity available in all Source Source games.

Differences

Before Left 4 Dead Left 4 Dead

When VBSP compiles the map, it converts func_ladder brushes into regular world brushes with added ladder contents, and an info_ladder entity is created with KVs indicating the bounding box of the ladder.

Because this type of info_ladder exists only in Source 2006 Source 2006 and Source 2007 Source 2007 this entity is obsolete.

Since Left 4 Dead Left 4 Dead

VBSP converts this to func_simpleladder which has its keyvalues set based on %CompileTeam and which side of the brush has a ladder texture. The brush contents are NOT altered and depend on %CompileLadder flag. The func_simpleladder entity only exists in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series.

Usage

Note.pngNote:Non Half-Life 2 style climbing is prone to exploitation, as a player can travel up the ladder with two keys at once to travel faster up, and at the end of the ladder they will be flung.

See also