You are viewing a potentially older version of this package. View all versions.
VVLEE-Corvette-0.2.0 icon

Corvette

Buildable age-of-sail Corvette with its own three-masted hull and 20 auto-firing cannons, plus a placeable defense cannon and a towable cannon cart. Shells use the Staff of Fracturing blast.

By VVLEE
Date uploaded 2 days ago
Version 0.2.0
Download link VVLEE-Corvette-0.2.0.zip
Downloads 10
Dependency string VVLEE-Corvette-0.2.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
ValheimModding-Jotunn-2.30.2 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.30.2

README

Corvette

Adds an age-of-sail Corvette and its cannons to Valheim.

What you get

Piece What it is
Corvette Three-masted warship with its own hull model: 8 guns per broadside, 2 bow chasers, 2 stern chasers. Sails and handles like the Drakkar, with the Drakkar's storage and a built-in Shield Generator (vanilla behaviour, fuel it to raise the dome).
Cannon Placeable defense cannon, built and removed at a workbench. Wears out after 10000 shots and must then be repaired with the hammer.
Cannon cart A cannon on a cart. Pull it like a normal cart; the gun points to the rear. It only fires while parked (not being pulled, not moving) with a player within 5 m.

All cannons aim and fire automatically at hostile creatures inside their arc, with target lead and ballistic drop compensation. Shells explode like the Staff of Fracturing (cluster blast + splinters). Cannons need no ammunition.

Building (Hammer, at a workbench)

Everything unlocks in the black-metal age (Plains): no Mistlands or Ashlands materials are needed.

Piece Materials
Corvette Fine wood 80, Iron nails 200, Black metal 40, Linen thread 40, Tar 20
Cannon Iron 15, Black metal 10, Fine wood 10
Cannon cart Iron 15, Black metal 10, Fine wood 10, Wood 30, Bronze nails 10

Admins can also spawn them: spawn VVLEE_Corvette, spawn VVLEE_Cannon, spawn VVLEE_CannonCart.

Configuration

BepInEx/config/com.vvlee.corvette.cfg (server-synced, admin only):

Setting Default Description
Cooldown 3 Seconds between shots per gun
MaxRange 200 Maximum targeting range (m). Creatures outside the loaded area cannot be targeted
MinRange 6 Guns hold fire on targets closer than this
DamageMultiplier 1 Multiplier on Staff of Fracturing damage
ShellSpeed 70 Muzzle velocity (m/s)
BroadsideArc 35 Traverse of the Corvette's broadside guns (degrees each side)
ChaserArc 35 Traverse of the Corvette's bow/stern chasers
CannonMaxShots 10000 Shots a placed Cannon fires before it needs a hammer repair (0 = unlimited)
ShipFreeShots 10000 Shots a Corvette fires before further shots wear the hull (0 = never)
ShipWearPerShot 0.1 Hull health lost per shot after that, in % of max hull health
ShipCeaseFireHealth 30 Ship guns stop firing below this hull health %
FieldArc 60 Traverse of the placed cannon and the cannon cart
CartCrewRange 5 The cannon cart only fires while parked with a player within this distance (m)
RequireCrew true Ship guns only work while a player is aboard
TargetPassiveAnimals false Also fire at deer, hares, etc.
WaterlineOffset 0 Raise or lower how high the Corvette floats
FriendlyFireProtection true Ballista, catapult, cannon and player projectiles and their blasts do not hurt players, tamed creatures, ships, carts or player-built pieces

Notes

  • Friendly-fire protection covers every friendly projectile in the game, including vanilla ballistas and catapults: they no longer hurt players, tamed creatures, ships, carts or your buildings. Monster attacks are unaffected.
  • Everyone on a server (and the server itself) must have the mod installed.
  • Models are generated procedurally by the mod; no asset bundles.
  • Requires Jotunn.

中文說明

新增風帆時代 克爾維特艦(Corvette) 與 火炮:

  • 克爾維特艦:專屬三桅船殼,兩舷各 8 門炮、艦首與艦尾各 2 門追擊炮;航行性能與貨艙沿用 Drakkar,主甲板內建護盾產生器(性能同原版,需投入燃料)。
  • 火炮:可建造的防禦物件;開火 10000 次後需用錘子修理,可在工作台範圍內拆除。
  • 艦炮耐久:艦炮本身沒有耐久;全艦累計開火 10000 次後,每開一炮扣 0.1% 船體血量,船體低於 30% 時停火;修船後重新計算 10000 次。
  • 拖曳火炮:架在板車上的火炮,像板車一樣拖著走,炮口朝後;放定且周圍 5 公尺內有人才會開火。

火炮會自動索敵開火(含提前量與彈道下墜),炮彈為 碎裂法杖 的爆炸效果,最遠射程 200 m,不需彈藥。 設定檔為 com.vvlee.corvette.cfg。

CHANGELOG

Changelog

0.4.2

  • Cannons can now fell trees: shells, canister bolts and their blasts also deal chop damage to trees, logs, stumps and bushes, equal to the damage of the hit (TreeDamage, percent). Creatures and buildings take the same damage as before.
  • Tracking range and firing range are now separate. Placed Cannon and Cannon cart: track out to 150 m (MaxRange), open fire within 140 m (FireRange). Corvette and airship guns: track and fire within 100 m (ShipMaxRange, ShipFireRange).
  • Fixed canister shot never being used (cannons kept firing shells at close targets), it now starts at 30 m instead of 15 m (CanisterRange), and a volley is 60 bolts instead of 48 (CanisterPellets). Existing config files keep their values.
  • Earth Staff: the orbs no longer look or act like fireballs - no fire explosion on impact, and damage, knockback and status effects are forced to zero. They now pass straight through rocks, ore, trees, buildings and creatures without touching them (they used to break rocks) and only act on the ground. Right mouse button now fires the red (raise) orb while the staff is held; before, the secondary attack was only on the game's secondary-attack key (middle mouse) and right click just blocked.

0.4.1

  • Fixed reverse dredging: backing a grounded Corvette (or airship) now actually digs it free. It used to shave only a few centimetres per pass; it now cuts the ground to 1 m below the hull, across the full beam and past the bow and stern.

0.4.0

  • Two new buildable airships, both on the Corvette hull with the same 20 guns: Airship (Zeppelin) - canvas envelope slung on shrouds - and Airship (Rotor) - four rotors on the yards. Ashlands technology (Ashwood, Flametal, Ceramic plates). Build them on water. At the helm hold Jump to climb and Crouch to descend (leave the helm with the Use key); everything else handles like the ship. Downwind top speed 150%.
  • Airships run on steam: add coal to the boiler amidships (same prompt as a smelter) to light it. The boiler holds 50 coal and burns one per minute while the airship is off the water. With a cold boiler an airship cannot climb and sinks slowly (RequireFuel, FuelCapacity, SecondsPerCoal).
  • Airship altitude rules (all in the new Airship config section): ceiling 800 m; warning above 500 m; slow durability loss above 600 m; below 50% durability it cannot climb; below 30% it sinks slowly to 100 m and moves at half speed.
  • New ammunition for every cannon (Corvette guns, placed Cannon, Cannon cart): canister shot. When the target is within 15 m the gun automatically fires a volley of 48 Dundr bolts instead of a shell. Each bolt deals the damage of a fully upgraded Dundr plus 200% of that as pierce damage, knocks back and staggers. Friendly-fire protection applies as usual. 5 s between volleys, plus 5 s more after three volleys in a row. Canister shot ignores MinRange. New Canister config section.
  • Corvette top speed running downwind lowered from 300% to 200% (DownwindSpeed default 2; existing config files keep their value).

0.3.0

  • Backing the Corvette (reverse) now digs away any terrain touching the keel, so the ship can free itself when aground (ReverseDredge).
  • New item: Earth Staff. It deals no damage and only shapes terrain: primary fire shoots a yellow orb that digs where it lands, secondary fire shoots a red orb that raises the ground. Crafted at a workbench (Fine wood 10, Stone 30, Surtling core 1).

0.2.9

  • Direct hits now hurt more: a creature struck by the shell itself takes extra blunt (50% of the shell's total damage) and pierce (30%) damage, and is knocked back and staggered. Blast-only hits are unchanged.

0.2.8

  • The Corvette can now be dismantled with the hammer (near a workbench) and returns its materials.

0.2.7

  • Vanilla ballistas now refill themselves from the nearest chest within 10 m (BallistaAutoReload, BallistaReloadRange).
  • Cannons no longer waste shots on tiny flying creatures such as Deathsquitos and bats (IgnoreFlyersSmallerThan).
  • Mast lanterns now hang on the forward side of each mast.
  • Fixed the captain's seat not being usable: you can now sit on the throne.
  • Placed Cannon and Cannon cart range reduced from 200 m to 150 m (MaxRange; existing installs keep their saved value). Corvette guns stay at 100 m.

0.2.6

  • Captain's seat moved down to the main deck, against the quarterdeck bulkhead between the two stairs.
  • Fixed ship guns firing with nobody at the helm or in the captain's seat: both seats are now checked by whether a player is actually sitting there.
  • The bow no longer digs in at speed: sail thrust now acts at the centre of mass instead of high up the mast.

0.2.5

  • Every cannon now takes an extra 5-second pause after each 10 shots (BurstSize, BurstCooldown).

0.2.4

  • The Corvette now sails three times as fast with the wind astern (DownwindSpeed). Upwind speed is unchanged.

0.2.3

  • New captain's seat: a Moose Throne at the front of the quarterdeck, facing the bow.
  • Ship guns now fire only while someone is at the helm or in the captain's seat (previously any player aboard was enough).
  • All cannons now hit as hard as a fully upgraded Staff of Fracturing at maximum Elemental Magic skill (previously the base, un-upgraded staff).
  • Corvette guns now reach 100 m (ShipMaxRange); the placed Cannon and Cannon cart keep 200 m (MaxRange).
  • Cannons hold fire when a friendly building, ship or cart is in the line of fire.
  • Bow lantern moved: it now hangs under the bowsprit ahead of the stem instead of sitting on the foredeck.

0.2.2

  • Vanilla ballistas no longer target players or tamed creatures (part of FriendlyFireProtection).
  • Each mast now carries a Dvergr wall lantern; a hooded lantern on the bow shines ahead and two on the taffrail shine astern.
  • Boarding ladders rebuilt as straight ladders flush against the hull (the borrowed rope ladder stuck out backwards); climbing puts you on the deck inside the bulwark.
  • Gun-port band recoloured to a proper ochre (it rendered olive green).
  • Fixed the placed Cannon staying behind as a dead object when removed; it now disappears and returns its materials like any other piece.

0.2.1

  • Bowsprit now grows out of the stem instead of ending in a cut-off stub above the foredeck.
  • Stern chasers moved aft so their muzzles clear the taffrail.
  • Removed the built-in Shield Generator from the Corvette.
  • Default gun cooldown raised from 3 to 5 seconds (existing installs keep their saved Cooldown value).
  • Fixed the Corvette shimmering with flickering highlights: wood no longer has specular reflections and over-bright paint tints were toned down.
  • Sails now belly downwind (they were filling the wrong way).
  • The Corvette no longer sits bow-down; new BowTrim setting to fine-tune fore-and-aft trim.

0.2.0

  • New Corvette hull: a purpose-built three-masted ship model replaces the Drakkar look (sailing performance is still the Drakkar's). Yards swing with the wind and sails furl with the speed setting.
  • Ship guns are now proper cannons on naval carriages firing through gun ports.
  • The Corvette carries a built-in Shield Generator on the main deck (vanilla behaviour: fuel it to raise the dome).
  • Durability: a placed Cannon stops firing after 10000 shots until repaired with the hammer. Corvette guns have no durability of their own, but after 10000 shots every further shot wears the hull, and ship guns cease fire while the hull is below 30% health. Repairing the ship resets the count.
  • The Cannon cart only fires while parked with a player within 5 m (CartCrewRange).
  • Recipes moved to the black-metal age: Corvette, Cannon and Cannon cart now need only Plains-tier materials and a workbench.
  • Hull, masts and cannons now use the game's own plank and metal materials (tinted), so they match vanilla buildings; the hull body uses form-fitting collision.
  • New buildable Cannon (defense piece) and Cannon cart (towable cannon).
  • Maximum range raised to 200 m (MaxRange), new ShellSpeed, FieldArc and WaterlineOffset settings.
  • Friendly-fire protection for every friendly projectile in the game - ballistas, catapults, cannons and player projectiles, plus the blasts they spawn: they no longer hurt players, tamed creatures, ships, carts or player-built pieces (FriendlyFireProtection).
  • Fixed guns damaging their own ship: shells pass through the ship or gun that fired them.

0.1.1

  • Default gun cooldown reduced from 6 to 3 seconds. Existing installs keep their saved value: edit Cooldown in com.vvlee.corvette.cfg (or delete the file) to pick up the new default.

0.1.0

  • Initial release: buildable Corvette with 16 broadside guns, 2 bow chasers and 2 stern chasers firing Staff of Fracturing shells.