You are viewing a potentially older version of this package. View all versions.
MrGay-Turrets_Redo-0.0.4 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.4
Download link MrGay-Turrets_Redo-0.0.4.zip
Downloads 199
Dependency string MrGay-Turrets_Redo-0.0.4

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. Features are organized into independently configurable modules:

General

  • Overall mod enable/disable toggle.
  • Optional server authority through ConditionalConfigSync. When enabled, the server configuration controls gameplay settings for connected clients.

Turret behavior

  • Turn speed adjustment as a percentage of the vanilla value.
  • Projectile speed adjustment as a percentage of the vanilla value.
  • View distance adjustment as a percentage of the vanilla value.
  • Attack rate adjustment. 0 is vanilla, 100 fires twice as fast, and higher values continue increasing the firing rate.
  • Configurable horizontal aim angle. Vanilla is 25 degrees on each side.
  • Configurable vertical aim angle. Vanilla is 20 degrees above and below.

Accuracy and targeting

  • Lead shots against moving targets using target position, collider center, movement velocity, and projectile speed.
  • Option to remove vanilla projectile spread completely.
  • When vanilla spread is enabled, spread is compensated for the configured view distance.
  • Ignore players when selecting targets.
  • Ignore tamed creatures when selecting targets.
  • Ignore friendly Dvergr when selecting targets. Dvergr hostile to at least one player remain targetable.
  • Optional projectile immunity for identities ignored by the targeting settings. This protects ignored players, tames, and friendly Dvergr from accidental turret hits.

Ammo and collision

  • Infinite ammo mode. Turrets continue firing with one loaded missile and drop one missile when destroyed.
  • Turret missiles do not collide with the turret that fired them.

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.