func_useableladder
Jump to navigation
Jump to search
Code classes:
CFuncLadder
CBaseEntity
(all ents)
func_useableladder
is a point entity present in all Source games. It creates a climbable ladder between two points in space.
Note: This entity is only usable in and . See here for alternatives.
Tip: The boxes in Hammer represent where the player hull will be located at the very top and bottom of the ladder. Said boxes can be moved independently by dragging the circles inside them in a 2D view.
Bug: In the ladder will constantly play sounds as if the player is climbing it even while stationary.
Bug: There seems to be a bug where mounting or dismounting a ladder within a trigger volume will cause the trigger to fire outputs as if the player left and re-entered the volume. Requires further investigation.
ConVars/Commands[edit | edit source]
ConVar/Command | Parameters or default value | Parameter Type | Effect |
---|---|---|---|
sv_showladders | 0 | 0 disables, 1 enables | Shows info about ladders. Requires developer 1 and a new level load before taking effect. |
Flags[edit | edit source]
- 1: Fake Ladder - Cancels all ladder-related movement, but still makes a climbing sound when the player would normally mount the ladder. To do: Purpose...?
Keyvalues[edit | edit source]
- Start
(point0)
<vector>
- One end of ladder.
- End
(point1)
<vector>
- Other end of ladder.
- Surface properties (optional)
(ladderSurfaceProperties)
<string>
- Gives the ladder a custom
$surfaceprop
. When the player travels on the ladder, they will hear sounds that would normally play when walking on a surface of this type. Bug: The ladder will still play the default mounting sound, though. - Confirm: This keyvalue does work on an online server in Half-Life 2: Deathmatch.
- Start Disabled
(StartDisabled)
<boolean>
- Stay inactive until Enabled.
Inputs[edit | edit source]
- Enable
- Makes the entity active.
- Disable
- Makes the entity inactive.
- Confirm: These inputs do work on an online server in Half-Life 2: Deathmatch.
Outputs[edit | edit source]
- OnPlayerGotOnLadder
- Fires when a player gets on the ladder.
- OnPlayerGotOffLadder
- Fires when a player gets on the ladder.
- Confirm: These outputs do work on an online server in Half-Life 2: Deathmatch.