You are viewing a potentially older version of this package. View all versions.
MrGay-Turrets_Redo-0.0.1 icon

Turrets Redo

Modular ballista turret improvements with lead shots, spread control, configurable speed, range, cooldown, targeting, and ammo behavior.

Date uploaded 2 weeks ago
Version 0.0.1
Download link MrGay-Turrets_Redo-0.0.1.zip
Downloads 19
Dependency string MrGay-Turrets_Redo-0.0.1

This mod requires the following mods to function

shudnal-ConditionalConfigSync-1.0.8 icon
shudnal-ConditionalConfigSync

Shared config synchronization and server policy library for Valheim mods. Installed as a dependency and compatible with Jotunn and ServerSync.

Preferred version: 1.0.8

README

Turrets Redo

Adds modular ballista turret improvements inspired by Valheim Plus. Each module can be enabled independently:

  • Turn speed
  • Projectile speed
  • Lead shots using target direction, speed, and collider size
  • Optional removal of vanilla projectile spread
  • View distance
  • Attack cooldown
  • Infinite ammo
  • Ignore players
  • Ignore tames

The mod also prevents a turret's missiles from colliding with the turret that fired them.

All gameplay settings are server-authoritative by default through ConditionalConfigSync. Disable Server authority to use local settings instead; changing that option requires a restart.

When vanilla spread is enabled, its angle is compensated for the configured view distance so the lateral spread at maximum range matches vanilla behavior at vanilla maximum range.

Requirements

  • BepInExPack Valheim, any compatible version

Install the packaged ZIP through a Thunderstore-compatible mod manager. The plugin is placed at BepInEx/plugins/TurretsRedo/TurretsRedo.dll.

An example configuration is available in TurretsRedo.cfg.example. Copy its contents into BepInEx/config/MrGay.TurretsRedo.cfg after installing the mod.

CHANGELOG

Changelog

0.0.4

  • Fixed infinite ammo so the inserted ammo count remains unchanged after each shot.
  • Hardened destruction refunds so only the network owner can return ammo and each turret returns ammo once.
  • Updated attack cooldown scaling: 0 is vanilla, 100 fires twice as fast, and higher values continue scaling the firing rate.
  • Fixed ignored-target scanning so turrets continue searching for valid hostile targets.

0.0.3

  • Added configurable horizontal and vertical turret aim angles with vanilla defaults of 25 and 20 degrees.
  • Added projectile immunity for identities ignored by targeting settings.
  • Added ignore-friendly-Dvergr targeting behavior while preserving hostile Dvergr targets.
  • Fixed friendly Dvergr filtering so turrets continue scanning for other valid hostile targets.
  • Fixed infinite ammo so turrets continue firing after the first shot.
  • Renamed multi-word configuration keys with underscores and made module enable keys unique.
  • Updated documentation and the example configuration.

0.0.2

  • Added friendly Dvergr targeting control.
  • Added lead-shot targeting based on target position, movement, collider center, and projectile speed.
  • Added vanilla spread removal and view-distance spread compensation.
  • Added configurable horizontal and vertical aim range settings.
  • Added modular turret speed, projectile speed, view distance, cooldown, targeting, and ammo settings.
  • Added ConditionalConfigSync server-authority support.
  • Preserved the turret self-hit projectile collision fix.