You are viewing a potentially older version of this package. View all versions.
DuPoTeam-BetterCrosshair-1.1.0 icon

BetterCrosshair

A crosshair with a dark outline that stays visible on snow and in magic combat. Turns red on enemies and yellow on interactables, shrinks as you draw a bow and turns green when the shot is ready. Configurable shape, size, colors.

Date uploaded 3 weeks ago
Version 1.1.0
Download link DuPoTeam-BetterCrosshair-1.1.0.zip
Downloads 225
Dependency string DuPoTeam-BetterCrosshair-1.1.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2333

README

BetterCrosshair

A crosshair you can actually see.

Valheim's crosshair is a small white "+". On snow in the Mountains and the Deep North, against a bright sky, or in the middle of a fight full of magic effects, it disappears. That makes aiming with bows, crossbows and staffs a guess.

BetterCrosshair replaces it with a crosshair drawn with a dark outline. It stays readable on any background: light, dark or full of particles. You choose the shape, the size and the colors.

The crosshair also tells you more:

  • Target colors: it turns red when you aim at a living enemy (up to 100 m away), and yellow when you aim at something you can interact with, such as a door, a chest or an item on the ground.
  • Charge feedback: while you draw a bow, the crosshair starts bigger and shrinks to its normal size. When the bow is fully drawn, the outline turns green: the shot is ready. With a crossbow, the outline is green while a bolt is loaded.

The vanilla bow draw indicator is not changed.

Configuration

The config file is BepInEx/config/dupo.BetterCrosshair.cfg. It is created the first time you start the game with the mod. Changes made while the game is running (for example with a configuration manager) apply right away.

1 - General

Setting Default Description
Enabled true Replace the vanilla crosshair.
Ranged Weapons Only false Show the new crosshair only while a bow, crossbow, staff or wand is equipped. With other weapons, the vanilla crosshair is shown.
Debug Log false Write extra lines to BepInEx/LogOutput.log.

2 - Shape

Setting Default Description
Shape CrossAndDot Cross, CrossAndDot, Dot, Circle or CircleAndDot.
Size 28 Total width/height, in UI pixels (4 to 128).
Thickness 3 Thickness of the cross arms and of the circle line (1 to 16).
Gap 5 Empty space between the center and each cross arm (0 to 64).
Dot Size 3 Diameter of the center dot (1 to 32).
Outline Thickness 2 Thickness of the dark outline (0 to 8). 0 means no outline.

3 - Colors

Setting Default Description
Color FF00FFFF (magenta) Crosshair color, as RRGGBBAA.
Outline Color 000000FF Outline color, as RRGGBBAA.

4 - Target

Setting Default Description
Target Colors true Change the crosshair color when aiming at an enemy or at something you can interact with.
Enemy Color FF2626FF (red) Color when aiming at a living enemy.
Interact Color FFD900FF (yellow) Color when aiming at something you can interact with. Uses the game's own interaction range.
Enemy Range 100 Maximum distance, in meters, at which an enemy is detected (5 to 300). Walls and terrain block the line of sight.

5 - Charge

Setting Default Description
Charge Feedback true Shrink the crosshair while drawing a bow, and turn the outline to Charged Color when the bow is fully drawn or a crossbow is loaded.
Charge Start Scale 1.75 Crosshair scale when you start drawing a bow (1 to 3). 1 = no shrinking.
Charged Color 00FF33FF (green) Outline color when the shot is ready.

Compatibility

  • Client-side only. Other players don't need the mod.
  • Other mods that also replace the crosshair may conflict with it.

Installation

Install with a mod manager (Thunderstore Mod Manager, r2modman), or copy Dupo_BetterCrosshair.dll into BepInEx/plugins/. Requires BepInExPack_Valheim.

CHANGELOG

Changelog

1.1.0

  • New Target Colors, on by default: the crosshair turns red when you aim at a living enemy (up to Enemy Range, 100 m) and yellow when you aim at something you can interact with. Walls and terrain block the enemy check.
  • New Charge Feedback, on by default: while drawing a bow the crosshair shrinks from Charge Start Scale (1.75×) to its normal size, and its outline turns green when the bow is fully drawn or a crossbow is loaded.
  • All the new colors and values are configurable, in the new 4 - Target and 5 - Charge config sections.
  • Debug Log now also reports target and charge changes ([HUD] lines).

1.0.0

  • First release: replaces the vanilla crosshair with a configurable one: magenta with a black outline by default.
  • Shapes: Cross, CrossAndDot, Dot, Circle, CircleAndDot. Size, thickness, gap, dot size and outline thickness are configurable.
  • Configurable crosshair and outline colors.
  • Ranged Weapons Only option: show the new crosshair only with bows, crossbows, staffs and wands.