You are viewing a potentially older version of this package. View all versions.
darkharasho-ClearBattlefield-0.1.0 icon

ClearBattlefield

Adds a Clear Battlefield button to the pause menu that removes only the weapons enemies dropped. Level loot, player drops and everything else stay. Host only.

Date uploaded a month ago
Version 0.1.0
Download link darkharasho-ClearBattlefield-0.1.0.zip
Downloads 69
Dependency string darkharasho-ClearBattlefield-0.1.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

ClearBattlefield

Long fights leave the ground covered in weapons that enemies dropped. Open the pause menu and press Clear Battlefield in the top-right corner to remove them all at once.

What gets removed

Only weapons that dropped from an enemy you killed. The mod marks each one as it drops, so it never guesses from position or item type afterwards.

Everything else stays:

  • weapons from the level: chests, rewards, missions, shops, barrels and props
  • weapons a player dropped or threw
  • resources, scrap, tomes and upgrades, and anything else that isn't a weapon
  • an enemy-dropped weapon that merged with a stack a player dropped. The merged stack is kept.

Weapons someone is picking up at that moment are skipped. Marks are forgotten when the run ends.

Using it

  • The button shows in the pause menu for the host, in levels only.
  • It asks for confirmation first and tells you how many weapons it will remove.
  • Afterwards a notification says how many were cleared. In single player the game is paused, so it appears once you close the menu.
  • You can also bind a key to it (none by default).

Multiplayer

Only the host needs the mod. Items are removed on the host through the game's networking, so they disappear for every player. Clients don't need it installed and don't see the button.

Configuration

Edit in r2modman under Config editor → com.darkharasho.stonewards.clearbattlefield.cfg, in BepInEx/config, or in game with ModSettings.

Setting Default Description
General → RequireConfirmation true Ask before removing. Applies to the button and the keybind.
General → MinDropAgeSeconds 0 Leave weapons that dropped less than this many seconds ago.
Controls → ClearKey none Clears the battlefield. With confirmation on, it opens the pause menu on the confirmation.

Issues

Report bugs at https://github.com/darkharasho/stonewards-clear-battlefield/issues. Please attach the host's BepInEx/LogOutput.log.

CHANGELOG

Changelog

0.3.0

  • Two new keybinds next to the existing one: Clear enemy drops removes enemy drops only, Clear scrap removes scrap only. The scrap keybind works whether or not Also clear scrap is on.
  • The original Clear battlefield keybind and the pause menu button are unchanged: enemy drops, plus scrap when Also clear scrap is on.

0.2.0

  • Clears everything enemies dropped, not only weapons.
  • New setting Also clear scrap (off by default) removes scrap, such as scrap wood from digging, left on the ground.
  • Fixed the pause menu button never appearing, which also stopped the keybind from working.

0.1.0

  • First release. A Clear Battlefield button in the top-right of the pause menu removes weapons dropped by enemies, for the host only.
  • Drops are marked as they spawn. Level loot, player drops, non-weapons and stacks merged with a player's drop are never removed.
  • Settings for confirmation (on), minimum drop age (0 seconds) and a keybind (none).