Dive In

版本 v1.2.4·更新於 2026-10-06

Diving underwater with configurable controls, Fast Swim, surface/midwater stamina regen, and depth drain. Configured creatures can chase and navigate underwater. Includes water combat/equipment, local

截圖 共 2 張

模組介紹 作者原文

DiveIn

DiveIn adds configurable diving and swimming for players and configured creatures in Valheim.

Normally, creatures cannot follow a diving player far below the surface. DiveIn lets configured creatures chase, patrol, and attack underwater while adding player depth controls, resource tuning, water combat, key hints, and underwater visuals.

Player diving

  • Ascend and descend with configurable keyboard shortcuts or the corresponding gamepad controls.
  • Surface and midwater stamina regeneration are configured separately.
  • Idle underwater stamina drain and moving swim drain can scale with liquid depth.
  • Fast Swim supports press or toggle input, with separate speed and stamina multipliers.
  • A client-side swimming HUD below the stamina bar uses the stamina number's font and size. Swim HUD Mode selects Full (ascent/descent bindings, then Fast Swim On/Off below), FastSwimOnly (status only), or Off (regular key hints, when enabled in the game). On describes the selected mode, not movement at that instant; empty stamina changes the status color without adding text. The HUD stays visible when the full stamina bar fades and works independently of vanilla Key Hints. Only the key-hint rows currently covered by the HUD are suppressed. Full keeps ascent/descent controls even when Fast Swim is unavailable.
  • Swim skill and encumbrance have independent speed multipliers.
  • Surface swimming retains the vanilla swim depth; DiveIn changes depth only while diving.
  • Attacking, secondary attacking, and guarding temporarily take priority over swim movement.
  • Player-owned underwater projectiles can use synchronized lifetime, speed, and damage multipliers on the initial launch. Child projectiles spawned by Projectile.SpawnOnHit keep the parent spawn logic's values without another DiveIn multiplier, so inherited damage and speed are not repeatedly reduced down the chain.
  • Equipment is usable in water by default; a synchronized prefab blacklist keeps restrictions on listed items without propagating armor or accessory entries to hand equipment. Listed hand items retain vanilla hand-item hiding.
  • Swimming key hints use the active keyboard or gamepad bindings and supported Valheim languages.
  • Vanilla water color interpolation is initialized correctly across zone borders, above and below the surface. This client-side fix targets the vanilla water shader only; it does not retint the coast or change water depth, waves, buoyancy or swimming physics.

Creature diving

  • Configured creature prefabs stop avoiding water and can navigate underwater.
  • Passive creatures patrol within per-group minimum, center, and maximum depths.
  • Alerted creatures follow targets within their active depth limits.
  • Optional spawn-depth preservation prevents underwater spawns from first floating to the surface.
  • Optional shallow-water flee behavior makes a creature retreat until it clears the configured depth buffer.
  • Per-group avoidance steering can be disabled for prefabs that jitter with angled obstacle sampling.
  • Serpent movement retains the vanilla stopping distance and swoop movement while using DiveIn depth navigation.

DiveIn.yaml

The server/source-of-truth instance creates BepInEx/config/DiveIn.yaml when it is missing. Clients use the synchronized server value while connected.

Unknown or duplicate keys are errors and keep the previous applied settings.

surface_patrol:

passive_min_depth: 0

passive_center_depth: 10

passive_max_depth: 20

active_min_depth: 0.25

active_depth_adjust_speed: 2

shallow_water_flee_depth: 0

preserve_spawn_depth: false

avoidance_steering: true

prefabs:

  • Leech
  • Abomination
  • Serpent
  • BonemawSerpent

Disable angled avoidance only for prefabs that need it.

mods_surface_nosteering:

passive_min_depth: 0

passive_center_depth: 10

passive_max_depth: 20

active_min_depth: 0.25

active_depth_adjust_speed: 2

shallow_water_flee_depth: 0

preserve_spawn_depth: false

avoidance_steering: false

prefabs:

  • SA_WhiteShark

Rules:

-

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
Dive_In-1.2.4.zip
檔案大小
302.5 KiB