You are viewing a potentially older version of this package. View all versions.
ButteryStancakes-MeleeFixes-1.0.0 icon

MeleeFixes

Fixes buggy collision with shovels and knives, causing invisible walls to make hit sounds and/or block damage.

Date uploaded a month ago
Version 1.0.0
Download link ButteryStancakes-MeleeFixes-1.0.0.zip
Downloads 10589
Dependency string ButteryStancakes-MeleeFixes-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2100

README

Melee Fixes

Fixes buggy collision with the shovel and kitchen knife:

  • The player being monitored by the ship's radar cameras would have an invisible collider placed on top of them, causing the shovel to always make the wall hit sound even when it's swung in open air or at an enemy.
  • Damaging hits could be blocked by non-solid triggers, causing enemies to not register the damage.
    • I'm not currently aware of a way to replicate this issue in vanilla but it has been fixed just in case to prevent possible issues.
  • Whenever a weapon plays a hit sound, it calls an expensive search function that can cause lag or frame drops on less powerful computers. It now references a cached instance of the required object, which should help combat remain more smooth and fluid.

CHANGELOG

v1.2.0

  • Fixed knife damage not registering for thumpers or spiders
  • Fixed knife damage being blocked by dead bodies
  • Optimized shovel hit fix for better performance

v1.1.1

  • Fixed shovels becoming unusable if the player holding it died in the middle of swinging
  • Fixed shovels and knives still dealing double damage to players, due to another bug unrelated to the previous

v1.1.0

  • Fixed duplicate damage bug (shovels can now only damage individual targets once per swing)

v1.0.0

  • Initial release