Hear a satisfying BONK! every time your shot rolls high damage.
The mod compares the damage of each of your hits with the base damage of the shell you fired. When the hit deals the base damage or more, it plays a short “bonk” sound. It can also play the sound when you destroy an enemy.
Features:
– Works with most vehicles and shell types automatically
– HE/HESH shells: plays the sound when the hit was most likely a penetration (estimate, see below)
– Autocannons and burst-fire guns supported
– Adjustable threshold: base damage or more (about half of your hits), or only the best rolls (+10 %, +15 %, +20 %)
– Optional sound when you destroy an enemy
– Lightweight: only reads your own damage events, the same data as the in-game damage log
How the sound is played (Windows):
The game client has no built-in way for mods to play a custom .wav file, so the mod uses Windows PowerShell (System.Media.SoundPlayer) as a small hidden helper. It starts only when the mod is enabled and a sound needs to be played, and it closes when the battle ends. Because of this, the first sound in a battle may be slightly delayed.
Limitations:
– Shells with variable base damage are skipped, because their base damage cannot be determined reliably.
– The HE/HESH cue is an estimate: the game does not report penetrations directly, so a hit dealing 75 % or more of the shell’s base damage is treated as a penetration. Splash hits and finishing shots on low-HP targets may be judged differently.
Settings (mods/configs/bonk/config.json):
– enabled: true / false
– thresholdPercent: 0 = base damage or more, 10 = top ~15-20 % of hits, 15 = top ~10 %, 20 = only the best rolls
– playOnKill: true / false
– hePenetration: true = HE/HESH uses the penetration estimate, false = HE uses thresholdPercent like other shells
– sound: name of the .wav file in the same folder
Example: a gun with 390 base damage plays the sound for hits of 390+ (threshold 0) or 429+ (threshold 10). A KV-2 with 910 HE damage plays it for hits of about 683+.