You are viewing a potentially older version of this package. View all versions.
DigitalSoftware-Zarkow_Turret_Defense-0.30.930 icon

Zarkow Turret Defense

Adds ability to build defensive turrets in several versions to turn raid-events into fun Turret Defense moments

Date uploaded 5 months ago
Version 0.30.930
Download link DigitalSoftware-Zarkow_Turret_Defense-0.30.930.zip
Downloads 1308
Dependency string DigitalSoftware-Zarkow_Turret_Defense-0.30.930

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2202 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2202
ValheimModding-Jotunn-2.20.1 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.20.1

README

Zarkow Turret Defense

Description

Imagine building your house, some farming area, maybe a marina or a whole village - and you get a message saying that the 'The Forest Is Moving' or 'The Ground Is Shaking'. You now know what is next is a boring session of trying to out-run and not dying to the many monsters that keep spawning, as they try to disturb your building-adventure.

Let's turn the games most boring event into something fun!

The Turret Defense addition allows you to magically build effective sci-fi turrets that can deal with monsters attacking your settlements and dig-sites.

Mod tested primarily in singelplayer game and have been designed to work in multiplayer too. But it requires confirmation.

Version

0.30.930

Gather Drone now has a Container that can be used to define what to NOT gather.

Content

The mod features the ability to build a number of different turrets and other defense items.

Below turrets require a Workbench nearby:

  • Turret Mk. I -- 2x Tin, 4x Wood

  • Turret Mk. II -- 2x Copper, 4x RoundLog

  • Turret Mk. III -- 2x Bronze, 4x RoundLog

  • Turret Mk. IV -- 2x Iron, 4x FineWood

  • Turret Mk. V -- 2x Silver, 4x FineWood

  • Heavy Turret Mk. I -- 2x BlackMetal, 4x Iron, 10x FineWood

  • Missile Turret -- 1x SurtlingCore, 2x Bronze, 4x FineWood

  • Quad Missile Turret -- 3x SurtlingCore, 3x Bronze, 4x FineWood

  • Multi Missile Turret -- 4x SurtlingCore, 4x Silver, 4x FineWood

  • Drone Turret -- 2x SurtlingCore, 2x Bronze, 4x FineWood

  • Healing Drone Turret -- 2x AncientSeed, 2x SurtlingCore, 2x Bronze, 4x FineWood

  • Repair Drone Turret -- 2x AncientSeed, 2x SurtlingCore, 2x Bronze, 4x FineWood

  • Gather Drone Turret -- 2x AncientSeed, 2x SurtlingCore, 2x Bronze, 4x FineWood

  • Fishing Drone Turret -- 2x AncientSeed, 2x SurtlingCore, 2x Bronze, 4x FineWood

  • Logger Drone Turret -- 2x AncientSeed, 2x SurtlingCore, 2x Bronze, 4x FineWood

Below turrets does NOT require a Workbench nearby:

  • Signal Turret -- 10x Resin, 4x Wood
  • Spotlight Turret -- 10x Resin, 4x Wood
  • Mine Turret -- 2x Pukeberries, 4x Wood
  • Electricity Mine Turret -- 2x TrophyHatchling, 4x Wood
  • Light Turret Mk. I -- 2x Flint, 4x Wood
  • Light Turret Mk. II -- 2x Bronze, 4x RoundLog

Building parts that can be built without Workbench nearby:

  • Light Stick (Any color) -- 2x Wood, 4x GreydwarfEye

Building parts requiring Workbench nearby:

  • Small Spotlight -- 1x Iron, 10 GreydwarfEye
  • Spotlight Tower -- 3x Iron, 10 GreydwarfEye
  • Tall Spotlight Tower -- 5x Iron, 10 GreydwarfEye
  • Laying Iron Structure -- 5x Iron
  • Standing Iron Structure -- 5x Iron

Additional turrets and helper-gear to be added in future versions.

Functionality

  • A turret that is in SCAN mode, tracking a target, will show a YELLOW searchlight.
  • A turret that is in ATTACK mode, attempting to destroy a target, will show a RED searchlight and TURN ON the laser-sights.

The mode of a turret can easily been seen from a distance based on the Searchlight being activated and if so what color it has. A turret that has no target to SCAN or ATTACK will idle and wait for targets to wander into their scanning-range.

  • All turrets will attack any monster they deem to be a threat. The base-range is 25 with an increase in range for each higher Mk version used.

The group called ForestMonsters will be considered less of a threat and can be as close as half the attack-range before being automatically attacked, if the monster is not Alerted and for instance attacking the base or the player. For any ForestMonster that is attacking the player the full range is used. This also means a deer or boar will not be automatically attacked when it is far away and minding its own business.

  • Turrets will track monsters that is up to 50% outside of their effective attack-range.
  • Turrets will track Players at half their attack-effective range, but never attack them.
  • Turrets will track monsters it deems to be a threat even when they are behind a wall or object, but will show a YELLOW searchlight to indicate it is scanning for them and cannot attack.
  • Turrets will not attack tamed animals or animals that have a tame-rate of more than 10 out of 100.
  • Turrets try to re-aquire a target every 0.40 seconds.
  • Turrets use range-based prioritization to grab the target that is the closest to it and can be attack ahead of others, with several levels of de-prioritization.

Additional notes for turrets that use missiles:

  • Will only track Targets that it can see, has no target-scanner.
  • Missiles are guided and will track towards a Target as long as it is alive.
  • If a Target is killed while the missile is in flight, it will ask the turret for a new Target and start tracking towards it.
  • Some turrets may track multiple Targets and can divide its payloads towards them evenly.
  • Missiles detonate upon impact and will explode in sphere towards multiple targets within range.
  • An exploding missile may hit the same target multiple times if it is a Large target, such as Trolls, as they have multiple collisionmeshes (body parts).
  • When the Target is more than 20 meters away the missile will take a fly-above pattern at 12 meters above for a top-down attack.
  • If the Target is 'flying' the missile will not initiate a top-down attack.

Technical details

Name: Signal Turret Range: 20 Fire interval: 18.0

Name: Mine Turret Range: 8 Damage, ranged: 20 Poison Fire interval: 3.0 (DPS: 6.67)

Name: Electricity Mine Turret Range: 6 Damage, ranged: 10 Lightning Fire interval: 1.0 (DPS: 10.0)

Name: Light Turret Mk. I Rotation: -120/+120 Tilt: -25/+45 Rotation/Tilt speed: 50 Range: 20 Damage, impact: 0.5 Blunt, 1.0 Pierce, 1.0 Fire Fire interval: 0.40 (DPS: 6.25)

Name: Light Turret Mk. II Rotation: -120/+120 Tilt: -25/+45 Rotation/Tilt speed: 50 Range: 25 Damage, impact: 1.5 Blunt, 3.0 Pierce, 3.0 Fire Fire interval: 0.35 (DPS: 21.4)

Name: Turret Mk. I Rotation: -120/+120 Tilt: -50/+65 Rotation/Tilt speed: 130 Range: 25 Damage, impact: 1.0 Blunt, 2.0 Pierce, 2.0 Fire Fire interval: 0.30 (DPS: 16.67 per barrel)

Name: Turret Mk. II Rotation: -120/+120 Tilt: -50/+65 Rotation/Tilt speed: 130 Range: 28 Damage, impact: 1.5 Blunt, 3.0 Pierce, 3.0 Fire Fire interval: 0.27 (DPS: 27.78 per barrel)

Name: Turret Mk. III Rotation: -120/+120 Tilt: -50/+65 Rotation/Tilt speed: 130 Range: 30 Damage, impact: 2.0 Blunt, 4.0 Pierce, 4.0 Fire Fire interval: 0.25 (DPS: 40 per barrel)

Name: Turret Mk. IV Rotation: -120/+120 Tilt: -50/+65 Rotation/Tilt speed: 130 Range: 31 Damage, impact: 2.5 Blunt, 5.0 Pierce, 5.0 Fire Fire interval: 0.24 (DPS: 52.08 per barrel)

Name: Turret Mk. V Rotation: -120/+120 Tilt: -50/+65 Rotation/Tilt speed: 130 Range: 31.5 Damage, impact: 3.0 Blunt, 6.0 Pierce, 6.0 Fire Fire interval: 0.235 (DPS: 63.83 per barrel)

Name: Heavy Turret Mk. I Rotation: -90/+90 Tilt: -20/+35 Rotation/Tilt speed: 35 Range: 50 Minimum range: 5 Damage, impact: 12.5 Blunt, 20.0 Pierce, 20.0 Fire Damage, ranged: 5.0 Pierce, 5.0 Fire Explosion range: 1.5 Fire interval: 0.80 (DPS: 65.625 + 12.5 per barrel)

Name: Missile Turret Rotation: -120/+120 Tilt: -30/+60 Rotation/Tilt speed: 100 Range: 60 Minimum range: 8 Damage, impact: 2.0 Blunt Fire interval: 1.0 (Wire-guidance limited, time counted at destruction of missile) Ammo count: 1 Reload time: 2.0 Maximum tracked Targets: 2 Explosion range: 6.5 Damage, ranged: 25.0 Pierce, 25.0 Fire Missile Turn Rate: 1.5 Missile velocity: 20

Name: Quad Missile Turret Rotation: -120/+120 Tilt: -30/+60 Rotation/Tilt speed: 100 Range: 50 Minimum range: 10 Damage, impact: 2.0 Blunt Fire interval: 0.30 Ammo count: 4 Reload time: 6.0 Maximum tracked Targets: 6 Explosion range: 6.5 Damage, ranged: 25.0 Pierce, 25.0 Fire Missile Turn Rate: 1.0 Missile velocity: 20

Name: Multi Missile Turret Rotation: -120/+120 Tilt: -30/+60 Rotation/Tilt speed: 100 Range: 40 Minimum range: 10 Damage, impact: 2.0 Blunt, 15.0 Pierce, 15.0 Fire Fire interval: 0.25 Ammo count: 10 Reload time: 8.0 Maximum tracked Targets: 12 Explosion range: 1.5 Damage, ranged: 5.0 Pierce, 5.0 Fire Missile Turn Rate: 2.0 Missile Velocity: 24

Name: Drone Turret Patrol Range: 30 Drone Weapon Range: 15 Damage, impact: 1.5 Blunt, 3.0 Pierce, 3.0 Fire Fire interval: 0.35 (DPS: 21.4)

Name: Healing Drone Turret Patrol Range: 30 Drone Healing Range: 4 Healing: 1.0 Fire interval: 0.20 (HPS: 5.0)

Name: Repair Drone Turret Patrol Range: 40 Drone Repair Range: 4 Fire interval: 4.0

Name: Gather Drone Turret Patrol Range: 60

Name: Fishing Drone Turret Patrol Range: 100

Name: Logger Drone Turret Patrol Range: 75

Localization Credits

German -- BLUBBSON

Legal notice

All the mod-specific code is (C)opyright Johan 'Zarkow' Munkestam/Digital Software. The turret models are commercially licensed from CGPitbull.

No parts of this mod may be disassembled, re-used or distributed without the express written permission from the mod author and all the licenseholders of any assets. It is however of course fine to make derivative mods, or include it in a modpack, as a dependency.

If making your own mod: To acquire your own seat-license for the turret models, visit https://assetstore.unity.com/packages/3d/vehicles/space/weapons-spaceships-pack-150720 and for the launch and impact effects, visit: https://assetstore.unity.com/packages/vfx/particles/impacts-and-muzzle-flashes-57010

If the mod is missing from your favorite mod-site, contact the author and it will most likely be added.

Contact

For any help, support, feedback or to give words of encuragement, please join the Discord: https://discord.gg/fyqtxZt

CHANGELOG

  • Version 0.31.950 Reduced material cost of Lighting Mine from 2 to 1 of TrophyHatchling. All turrets and pieces adjusted to Hard Wood or higher as material-type declaration due to new Ashland fire mechanics. Added Heavy Turret Mk. II. Added Heavy Turret Mk. III. Added Turret Mk. VI. Added Turret Mk. VII. Adjusted texture for Heavy Turret Mk. I.

  • Version 0.30.930 Gather Drone now has a Container that can be used to define what to NOT gather.

  • Version 0.29.920 LoggerDrone no longer cuts down saplings, it will let them grow up first. All turrets and pieces now marked as immune to fire. Bumped Jotun version to match needs for Ashland release.

  • Version 0.28.910 Added Logger Drone Turret. Increased range of Gather Drone from 50 to 60. Deer is no longer targeted by turrets. Missile turrets and Heavy Turret will now damage tree, treelog, stump and stones. All drone turrets beyond the normal guard drone now does the standby patrol very close to the turret. Added two new Debug Settings that by default will hide despawn and heightmap missing reporting log lines.

  • Version 0.27.760 Fixed Place and Destruction effects as well as Resistances that fell away in the Valheim version-push adjustment. Increased Fishing Drone range from 60 to 100. Added Warning-msg to be able to trace the Turrets that should be rebuilt in your world, when spotted.

  • Version 0.26.720 Updated dependencies for new Valheim patch 0.217.28 Added Cost Modifier setting, to adjust the material cost per turret and building part. Updated German Localization. Turrets that does not require workbench can now be built in dungeons again.

  • Version 0.25.710 Added Fishing Drone Turret Added global config 'Turrets Should Fully Ignore Players' to optionally turn off non-Healing turrets from noticing players. Fixed so drones in patrol-move no longer go under water-surface if over a deep ocean. Buildingparts, such as Light sticks, can now be built in dungeons.

  • Version 0.24.680 Gather Drone no longer grab fishes from the sea. Reworked all sound-handling, will overall increase sound-levels over distance but also reduce maximum range the game has to evaluate if to play it or not. Lightsticks are no longer active targets for monsters, will hopefully be ignored now to allow marking paths through forrests.

  • Version 0.23.660 Added Gather Drone Turret Repair Drone will now patrol in a range increased from 30 to 40.

  • Version 0.22.640 Added LOD-handling for all Pieces, with partial reduction in complexity for some over distance and complete removal at long distance for all. Fix possible situations where a drastic frame-drop could cause Heavy Turrets to run out of projectiles by forcing minimum separation of half a ROF-slice. Rewrote the projectile-penetration to remove issues with repeat hits on same location when target was not moving enough. Optimized the colMesh filter for damage over distance checks to reduce the load on the function. Added setting 'Damage Modifier' to optionally adjust the damage Turrets does, either up or down. Slightly increased the Heavy Turret targeting rangre from 50 to 55. Decreased the ROF of Heavy Turret from 0.4 to 0.8. Slightly increased damage of Heavy Turret per shot.

  • Version 0.21.600 Added alternative colored Light Sticks. Drones no longer has a col-mesh, will stop them interacting with Ships or Players when traveling. Repair Drone can now repair the Cart. Turret max-tilt down is increased from 40 to 50 degrees. Heavy Turret max-tilt down is increased from 15 to 20 degrees. Poison and Electricity mine texture reworked to be more detectable at distance for reference to Vikings. Shader correction for all Pieces, allowing for shadows, snow and rain effects, normal mapping and shiny metallic surface. Adjustment to handling of Heavy Turret projectiles to avoid situations where there is none available to launch. Decreased Heavy Turret rotation speed from 45 to 35. Heavy Turret projectile speed decreased from 500 to 100.

  • Version 0.20.550 Added Repair Drone Turret. Improved Target handling for Drones. Adjusted Texture and Icons for Drones. Healing Drone will now heal Tamed animals too.

  • Version 0.19.515 Added Spotlight Turret. Added Light Stick buildingpart. Adjusted some material cost and type on some pieces. Reload-times for all Missile Turrets have been increased. Fixed MineTriggerEffect for (Poison) Mine Turret. Adjusted Red Light for turrets to be slightly brighter and slightly more red color.

  • Version 0.18.505 Added German localization. Added three configurable options of performance tweaks - DisableTurretLight, DisableDroneLight and DisableBuildingpartsLight. Implemented usage of setting TurretVolume. Added usage of Audioman audio mixer group by Audio Sources.

  • Version 0.17.500 Added support for adding non-turrent building parts. Added building part Small Spotlight. Added building part Spotlight Tower. Added building part Tall Spotlight Tower. All turret icons updated. Added support for localization - English.json also published on Discord.

  • Version 0.16.490 Drone Turrets now ignore LOS-issues between turret and target, as it is handled by Drone. Healing Drone Turret now looks for Players in the full patrol range. Updated texture for Healing Drone. Increased the health of all turrets. Set placement and destruction effect for all turrets. Adjust resistance for all turrets.

  • Version 0.15.480 Added Electricity Mine Turret. Added Healing Drone Turret. All damages towards Players are now set at 25%, with Stun-multiplier as if damage was at 100%.

  • Version 0.14.465 Added Light Turret Mk. II. Improve target-status validation for Drone Turret. Missile Turrets now have a 0.25-0.75s re-targeting delay after monster-death to allow for more organic animation of missiles. Improved handling for MoveAndAttackTarget() for Drone.

  • Version 0.13.450 Added Drone Turret. Added remote-data synchronisation for all turrets. Signal Turrets are no longer priority targets for monsters. Additional turret-shared code improved to be more reusable.

  • Version 0.12.400 Textures are now of pixelated style to fit the Valheim theme. All turrets are now organized on a new build-page called 'Turrets'. Code prepared for next type of turret to be added.

  • Version 0.11.380 Added Heavy Turret Mk. I. Slightly reduced the damage for Multi Missiles. Bumped up dependency version to ValheimModding-Jotunn-2.12.4. Confirmed compatibility with "Hildir's Request Update".

  • Version 0.10.365 Added Multi Missile Turret. Added Mine Turret. Implemented usage of Valheim Piece Shaders on all built turrets. Added support for hold-pattern for missiles that lose their tracked target. Added trail-effect to all missiles. Some adjustements to Missile and Quad Missile turret stats.

  • Version 0.9.270 Added Quad Missile Turret. Added Turret Mk. V. Huge refactoring to allow for multi-targeting turrets. Turret Mk. III material requirement changed from 'FineWood' to 'RoundLog'. Increased Missile Turret range from 60 to 80. Increased Missile Turret Missile turn-rate from 1.10 to 1.50. Maximum distance for a missile to travel is now 1.5 times max targeting range from turret base. Added detailed info section in readme file.

  • Version 0.8.215 Added Turret Mk. IV. Missile Turret now has a Bronze color-shade on main body. Code refactoring started to enable more diverse turrets in the future.

  • Version 0.7.200 All gun turrets got some Fire damage added and their Blunt damage reduced by 50%. Missile explosion had Fire damage added and pierce damage increased. Range increased but damage falloff increased. Missile Explosion does -90% in damage against players for now, up from -100%.

  • Version 0.6.193 Added Missile Turret - cable-controlled missile, long range and high chance to stagger the monsters caught in the blast. Increased impact damage for Turrets Mk.I-Mk.III. Increased range for Signal Turret from 15 to 20 meters.

  • Version 0.5.145 Added Light Turret. Fixed negative scaling of some turret parts that lead to negative size-warning on creation of destroyed piece fragments.

  • Version 0.4.140 Turrets now to 50% blunt damage and 50% piece damage. Turrets bullet-impacts has increased stagger-ratio. Turrets now have number of antennas based on Mk. type. Adjusted tint of Turret body based on metallic material used.

  • Version 0.3.130 Added handling of health and destruction of Signal Turret.

  • Version 0.2.126 Added Signal Turret.

  • Version 0.1.105 Initial Release. Turret Mk.I, Turret Mk.II and Turret Mk.III added.