OpeningDoorHearing
Host only mod. Enemies behind a door hear gunshots from the moment the door starts opening, so sleepers can no longer be picked off through the door gap.
By kanghadam
| Last updated | an hour ago |
| Total downloads | 3 |
| Total rating | 0 |
| Categories | AI Generated Bug Fixes |
| Dependency string | kanghadam-OpeningDoorHearing-1.1.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack_GTFO
BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.
Preferred version: 3.2.4README
Opening Door Hearing
Host only mod. Enemies behind a door hear gunshots from the moment the door starts opening.
What it fixes
In vanilla, while a door plays its opening animation you can shoot through the gap, but the sleepers behind it cannot detect players until the door is fully open. They do not wake even if you fire right in front of them, so they can be picked off one by one for free.
With this mod, a gunshot fired while a door is opening wakes the sleepers behind that door, within the vanilla weapon detection distance. They wake and aggro, but they stay behind the door until it is really open, the same way awake enemies behave behind a closed door in vanilla.
Covered doors: security doors, apex doors, bulkhead doors and weak doors. A weak door also leaves a gap while it closes, so shots fired while it closes are heard too.
What it does not change:
- Bullets still pass through the gap. Shooting enemies that are already awake through an opening door works as before.
- The first shot can still kill one sleeper. The others hear it and wake, so there is nothing to gain.
- Door pathing is untouched. Enemies and blood door waves come out when the door has finished opening, as in vanilla.
How it works
The game treats everything behind a door as blocked until the door is fully open, and sleeper detection only looks along unblocked paths.
While a door is opening, the host checks whether any player is firing. If so, sleepers in the areas next to that door are woken when the shooter is within hearing range, and the shooter becomes their detected target. The range follows the vanilla rule from each enemy's detection data. With default data that is 30 m when the shooter stands in the area right across the door and 10 m when further away.
- Main mechanism: the host reads each player's shooting noise while the door opens.
- Safety net: if an enemy next to an opening door is damaged by a player on the other side, nearby sleepers are woken the same way. This covers shots the host did not register as noise.
Everything is decided on the host. Enemy AI runs on the host, so clients do not need the mod and cannot bypass it.
Installation
- Host: required.
- Clients: not required. On a client the mod does nothing.
Install with a mod manager, or copy OpeningDoorHearing.dll into BepInEx/plugins/. No datablock or Custom/ changes are needed. It applies to every door.
Rundown authors can add this package as a dependency, or ship the DLL inside their own package.
Pairs well with GTFOSilentShotFix: that mod makes the host register client gunshots, this one stops an opening door from blocking them.
Configuration
BepInEx/config/OpeningDoorHearing.cfg. The host's settings apply.
| Key | Default | Meaning |
|---|---|---|
Enabled |
true |
Turns the whole mod on or off |
HearShots |
true |
Main mechanism |
WakeOnHit |
true |
Safety net |
HitDelay |
0.25 |
Seconds between a hit and the safety net waking sleepers |
Range |
0 |
Hearing range in meters from the shooter. 0 uses the vanilla rule from each enemy's detection data |
WeakDoors |
true |
Also handle weak doors |
Settings from 1.0.0 (EarlyTraversable, WakeFallback, FallbackDelay, FallbackRange) are no longer used.
Checking that it works
Open a door with sleepers right behind it and shoot one through the gap while the door is still opening. The others should wake, and they should not come out until the door is open.
BepInEx/LogOutput.log shows lines such as:
[Opening Door Hearing] security door to ZONE 123: opening, listening for gunshots (via OnDoorOpenStarted; gate traversable=False, in animation=True)
[Opening Door Hearing] security door to ZONE 123: stopped listening after 3.2s (fully open); woke 4 sleeper(s)
Changelog
1.1.0
- Enemies no longer walk through a door that is still opening. 1.0.0 marked the door as traversable early, which also opened it for pathing: woken enemies and blood door waves came straight through the closed door. The mod now leaves the door alone and wakes sleepers directly when a gunshot is heard.
- Weak doors are handled, both while they open and while they close.
- New settings:
HearShots,WakeOnHit,HitDelay,Range,WeakDoors.
1.0.0
- First release.
Known limits
- Built against the final game revision (34873) with BepInExPack_GTFO 3.2.4 and GTFO-API 0.6.1.
- Tested as a solo host. Sessions with clients have not been confirmed yet.
- The fix only applies when the host has the mod installed.
한국어 요약
호스트 전용 모드입니다. 문이 열리는 동안 문틈으로 수면 적을 쏴도 깨지 않던 문제를 고칩니다. 문이 열리는 동안 누가 총을 쏘면, 문 너머의 수면 적이 바닐라의 총소리 감지 거리 안에서 깹니다.
- 보안문, 에이펙스 문, 벌크헤드 문, 일반문에 적용됩니다.
- 깬 적은 어그로는 받지만 문이 다 열릴 때까지 문 뒤에 있습니다. 1.0.0 에서 깬 적과 블러드 도어 웨이브가 닫힌 문을 통과하던 문제를 고쳤습니다.
- 호스트만 설치하면 됩니다. 클라이언트는 없어도 됩니다.
- DLL 만 넣으면 됩니다. 데이터블록 수정은 필요 없습니다.