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

EnhancedCoilhead

[v81] Smarter, scarier Coil-Head: systematic patrol, hears noises and voices, picks its victim, and a host-synced config.

Date uploaded 4 days ago
Version 0.1.0
Download link DewareMod-EnhancedCoilhead-0.1.0.zip
Downloads 55
Dependency string DewareMod-EnhancedCoilhead-0.1.0

This mod requires the following mods to function

AinaVT-LethalConfig-1.4.6 icon
AinaVT-LethalConfig

Provides an in-game config menu for players to edit their configs, and an API for other mods to use and customize their entries.

Preferred version: 1.4.6
BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2305
xilophor-LethalNetworkAPI-3.4.2 icon
xilophor-LethalNetworkAPI

A library/API to allow developers to easily add networking to their mods.

Preferred version: 3.4.2

README

EnhancedCoilhead

Makes the Coil-Head smarter and scarier, with every behaviour adjustable in-game through LethalConfig.

All players should install this mod. The host's settings are sent to everyone when they join (and whenever the host changes a value).

What it changes

  • Systematic patrol. Instead of wandering at random, it sweeps the map's AI nodes, remembers what it has already checked, and starts a new round once the map is covered. After losing a chase it first checks where it last saw you.
  • Hears noises. Dropped items, noisemakers, tools and, above all, voice chat draw it toward the sound. Louder noises win over quieter ones. Voice only counts when it is loud (MinVoiceLoudness, default 0.75), so shouting works but normal talking does not.
  • Chooses its victim. Instead of always taking the closest player it favours players who are not looking at it and players far from their teammates, and it sticks with a target for a few seconds so it doesn't flip-flop.
  • Tunable stats. Chase speed, wander speed, notice range, how long it chases, how long it rests, and damage.
  • Audio. Local volume and audible-distance controls (per player, not synced).

Settings

Everything is in the in-game LethalConfig menu and can be changed live. The host's values apply to all players while in a lobby. LogNoises prints each noise it hears to the BepInEx log, which helps with tuning MinNoiseLoudness.

Known limits

  • Multiplayer is lightly tested. Everything was tested solo as host. Config sync to clients and relaying clients' voice to the host are new; please report problems with your LogOutput.log from both host and client.
  • Only voice chat is relayed from clients to the host. Other noises are produced on every machine and already reach the host.
  • This is an early release; behaviour is balanced for a harder game, so expect it to be scary. Lower ChaseSpeedMultiplier and raise CooldownDuration if it is too much.

Credits

Built on BepInEx, HarmonyX, LethalConfig by AinaVT and LethalNetworkAPI by Xilophor. Lethal Company is by Zeekerss; this mod is unofficial.

License

MIT. See the LICENSE file in this package.

CHANGELOG

Changelog

0.2.0

Multiplayer fixes, tested with a host and a client (2 players over LAN).

  • Fixed: host settings never reached clients. Sync relied on a per-frame update that does not run in Lethal Company, so clients silently used their own values. Sync is now event-driven: clients request the host's settings when they join, the host pushes changes as soon as a synced value is edited, and clients drop the host's values when they leave the lobby.
  • Fixed: items dropped by clients were never heard. The game only raises that noise on the client who dropped the item; clients now forward it to the host, like voice chat.
  • Fixed: targeting could bounce between players during a chase. The game hands the Coil-Head to the chased player's machine, and each machine forgot the target lock. A new owner now holds the current victim for TargetHoldTime before reconsidering.
  • Fixed: after a chase it went to where the player was, not where it last saw them. It now remembers the victim's position only while it can actually see them.
  • Fixed: a place to investigate could expire while it was resting (for example when CooldownDuration is longer than InvestigateTimeout).
  • With LogNoises on, noise lines show via=client or via=local, and target and patrol decisions are logged too.
  • The host log warns when a client runs a different version of the mod.

0.1.0 (first release)

  • Initial release: systematic patrol, noise and voice hearing, smarter victim selection, tunable stats, audio controls, host-synced config.