Risk of Rain 2
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
last week
Downloads
358
Size
10KB

EngineerUnlimitedTurrets

Engineer turret limit scales as max(3, charges) for Risk of Rain 2 — e.g., 9 charges = 9 turrets.

Simple BepInEx 5 Mono mod using On.RoR2.CharacterMaster.GetDeployableSameSlotLimit. No config — limit reads GenericSkill.maxStock for Special (includes Lysate Cell EquipmentMagazineVoid and other bonusStockFromBody). Floor 3 so you never get fewer than vanilla+1. Covers both TR12 Gauss (stationary) and TR58 Carbonizer (mobile) — they share DeployableSlot.EngiTurret.

Install

r2modman / Thunderstore

  1. Install dependencies: BepInExPack and HookGenPatcher (auto-installed via Thunderstore)
  2. Drop EngineerUnlimitedTurrets.dll into BepInEx/plugins/EngineerUnlimitedTurrets/ or import the .zip via Import local mod

Manual

Copy plugins/EngineerUnlimitedTurrets/EngineerUnlimitedTurrets.dll to Risk of Rain 2/BepInEx/plugins/EngineerUnlimitedTurrets/.

How It Works

Hooks RoR2.CharacterMaster.GetDeployableSameSlotLimit(DeployableSlot):

slot == DeployableSlot.EngiTurret ? Mathf.Max(3, body.skillLocator.special.maxStock) : orig(self, slot)

Falls back to 1 + EquipmentMagazineVoid when body unavailable. No prefab edits, no save impact. Multiplayer: host and clients need the mod (networkMode: both).

Verification

  • Launch via r2modman Start modded
  • Engineer with 1 charge: place 4th turret — oldest should not die (floor 3)
  • Engineer with 9 charges (e.g., 8 Lysate Cells): place 9, 10th should kill oldest; 9 should coexist
  • Check BepInEx/LogOutput.log for EngineerUnlimitedTurrets 1.1.0 loaded — EngiTurret limit scales as max(3, charges)

Performance

99 turrets is already heavy (AI tick). If you stress-test 100+, expect FPS drop — that's vanilla AI cost, not this mod.

Development

  • Target: netstandard2.1 (RoR2.dll uses 2.1, 2.0 fails CS1705), BepInEx 5.4.2122, HookGenPatcher 1.2.9, Mono (not IL2CPP)
  • Build: dotnet build -c Releasebin/Release/netstandard2.1/EngineerUnlimitedTurrets.dll
  • Author: tinymario (com.tinymario.EngineerUnlimitedTurrets)

Changelog

See CHANGELOG.md.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.