TargetLockOn

版本 v0.9.0·更新於 2026-10-11

Lock-on reticle for controller gameplay, with camera adjustment based on your equipped weapon and a trajectory preview for ranged aiming.

模組介紹 作者原文

TargetLockOn

ARPG lock-on system for Valheim, built for controller. The camera adapts to the weapon you're holding, and ranged shots get ballistic aim and a trajectory preview.

What it does

R3 to lock, flick the right stick to switch target. On keyboard: 0 to lock, and a quick mouse swipe to switch.

With melee weapons you keep vertical aim. With bows, crossbows, staffs, bombs and spears the camera locks vertically too, and your shots are aimed to land on the target, drop included.

Features

  • Ballistic aim: locked shots go where the camera points and account for projectile speed, gravity, air drag and how far you've drawn the bow. No homing: a target that dodges can still be missed. Locked bombs land 30 m out at most. Weapon spread still applies.
  • Trajectory preview always with bombs, and in free aim while drawing a bow or holding a loaded crossbow.
  • Lock points on big creatures: trolls, the Gammeltroll, the Elder, Moder, Fader and their Aspects, the Abomination, the Gjall and Seekers. Weak spots are the game's own (troll head, Gjall belly, Seeker Soldier tail) and take weak spot damage.
  • Light and weather: darkness and fog shorten how far you can lock, and a torch or campfire lights a target back up. A target hidden for 3 seconds (behind cover, in fog, or in Mistlands mist past 30 m) drops the lock. Bosses and big creatures are half as affected.
  • Contextual HUD: creature health bars hide behind cover and in fog, fade right after your crosshair leaves, and stay on your target.
  • The game's own crosshair jumps onto your target while locked, bow draw circle and stealth indicators included.
  • R3 with nothing to lock turns your character toward the camera.
  • Client side. Works on vanilla servers and with friends who don't have it.

Configuration

The config file is created after the first launch: BepInEx/config/vktr.targetlockon.cfg

| Section | Setting | Default | What it does |

|---|---|---|---|

| Input | GamepadLockButton | JoyRStick | Gamepad button that locks and releases (game button name). Ignored while L3 is also held |

| Input | LockKey | 0 (Alpha0) | Keyboard or mouse key that locks and releases |

| Input | PrevTargetKey / NextTargetKey | none | Keys that switch to the next target on the left / right |

| Input | MouseFlickPixels | 60 | Mouse move (pixels) that switches target while locked. 0 turns it off |

| Input | FaceCameraWithoutTarget | true | With nothing to lock, the lock button turns your character toward the camera |

| Lock | LockRange | 50 | Max lock distance (m) in full light and clear weather |

| Lock | DarkRangeFactor | 0.4 | Share of LockRange for a creature in full darkness. 1 turns it off |

| Lock | WeatherHidesTargets | true | Fog and Mistlands mist hide creatures, both for locking and for keeping the lock |

| Lock | MistRange | 30 | In Mistlands mist, creatures farther than this (m) count as hidden |

| Lock | LargeCreatures | trolls, Gjall, Valkyrie, Abomination, Aspects | Creatures that light and weather affect less. Bosses count without being listed |

| Lock | LargeEnvironmentWeight | 0.5 | How much light and weather count for those creatures. 0.5 = half |

| Lock | LockAngle | 37 | How far from the screen center (degrees) a target can be when you lock |

| Lock | SwitchAngle | 53 | How far from the screen center (degrees) the next target can be when you switch |

| Lock | LostSightSeconds | 3 | Seconds a target can stay hidden before the lock is lost |

| Lock | RelockOnKill | true | When your target dies, lock onto the next one in view |

| Lock | IgnoreTargets | empty | Prefab names that can never be locked, comma separated |

| Lock | MultiNodeTargets | true | Lock points on the creatures listed in TargetNodes |

| Lock | TargetNodes | see below | Lock points per creature |

| Camera | PitchLock | RangedAndSpears | Which weapons lock the vertical camera too: Off, RangedAndSpears, AllWeapons |

| Camera | CameraSpeed | 12 | How fast the camera turns to the target |

| Camera | StrafeWhileLocked | true

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
TargetLockOn-0.9.0.zip
檔案大小
167.3 KiB