Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
HalfLifeLadders
Climb ladders while holding two-handed scrap, auto-climb by walking forward (Half-Life style), and jump off mid-climb with Space.
By Zaliteam
| Last updated | a day ago |
| Total downloads | 33 |
| Total rating | 0 |
| Categories | Mods Client-side Tweaks & Quality Of Life AI Generated |
| Dependency string | Zaliteam-HalfLifeLadders-1.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
Half-Life Ladders (Two-Handed Climbing & Auto-Climb)
Climb any ladder while carrying two-handed scrap (engines, axles, bodies, etc.), auto-latch onto ladders by simply walking forward into them (Half-Life 1 style), and leap off ladders mid-climb with Space.
Player Guide (Simple Overview)
How It Works
- Climb With Two-Handed Items: You no longer have to drop heavy two-handed scrap at the bottom of extension ladders, fire escapes, or facility shafts.
- Walk-Up Auto-Climb: Walking (
W/ forward movement) toward a ladder automatically grabs and starts climbing it—no need to hunt for the[E]prompt (manual[E]interaction still works too). - Updated Prompt: Looking at any ladder shows
Climb : [Walk / W] or [E]. - Spacebar Jump-Off: Press
Spacewhile on a ladder to detach and push off backward/upward so you can hop onto ledges or bail quickly. - Client-Side: Only you need this mod installed to use it; climbing syncs through vanilla ladder triggers.
Configuration (BepInEx/config/com.khameli0n.halflifeladders.cfg)
| Section | Key | Default | Description |
|---|---|---|---|
Ladders |
EnableTwoHandedLadders |
true |
Allows climbing all ladders while holding two-handed items. |
Ladders |
EnableAutoLadderClimb |
true |
Automatically mounts ladders when walking forward into them. |
Ladders |
LadderBoostForce |
4.5 |
Horizontal push force applied when jumping off a ladder with Space. |
Technical Details (For Developers)
- Plugin GUID:
com.khameli0n.halflifeladders - Target Framework:
netstandard2.1(BepInEx 5 / HarmonyX) - Side: Client-side (
PlayerControllerB.IsOwnergated).
Harmony Patches (HalfLifeLadders.Patches.LadderPatches)
| Target Method | Type | Behavior |
|---|---|---|
PlayerControllerB.Update |
Prefix |
Reconfigures the currently hovered ladder trigger and periodically (1.5s interval) scans Object.FindObjectsOfType<InteractTrigger>() to enable two-handed climbing across all ladders (including spawned/extension ladders). |
PlayerControllerB.Update |
Postfix |
Updates hover prompt text, intercepts Space/jump input during isClimbingLadder, and runs walk-up proximity detection to auto-mount ladders. |
PlayerControllerB.SetHoverTipAndCurrentInteractTrigger |
Prefix & Postfix |
Applies ladder trigger flags before vanilla checks and updates cursorTip.text afterward. |
Detection & Climbing Implementation
- Ladder Identification (
IsLadderTrigger): Matches anyInteractTriggerwheretrig.isLadder == true,trig.namecontains"ladder"(case-insensitive), ortrig.hoverTipcontains"Climb"(case-insensitive). - Trigger Patching (
ConfigureLadderTrigger): SetsisLadder = true,twoHandedItemAllowed = true,oneHandedItemAllowed = true,specialCharacterAnimation = false,holdInteraction = false, andinteractable = true. - Jump-Off (
HandleLadderJumpOff): ChecksKeyboard.current.spaceKey.wasPressedThisFrame,UnityInput.Current.GetKeyDown(KeyCode.Space), andplayerActions.Movement.Jump.triggered. CallsCancelSpecialTriggerAnimations(), re-enablesthisController, moves by(-transform.forward * LadderBoostForce + Vector3.up * 3.5f) * Time.deltaTime, and enforces a0.55fs re-mount cooldown (jumpCooldownTime). - Walk-Up Auto-Mount (
FindWalkUpLadderTrigger&MountLadder):- Active when not climbing, not in special animation/terminal/chat, forward input (
moveInputVector.y > 0.1forW) is held, andjumpCooldownTime/0.4fslastMountTimecooldowns have elapsed. - Checks
hoveringOverTriggerwithin2.2fm first, thenPhysics.OverlapSphere(origin, 1.35f, -1, QueryTriggerInteraction.Collide), requiringsqrMagnitude < 0.05for horizontalVector3.Dot(forwardDir, toTrigger.normalized) > 0.15f. - Temporarily caches and clears
player.twoHandedandplayer.isInHangarShipRoominside atry/finallyblock aroundladderTrigger.Interact(player.thisPlayerBody)so vanilla'sInteractTriggervalidation accepts the mount.
- Active when not climbing, not in special animation/terminal/chat, forward input (