Half-Life 2

Half-Life 2

108 ratings
Custom Voiceover Fix
   
Award
Favorite
Favorited
Unfavorite
type: assets
File Size
Posted
Updated
212.000 B
17 Nov, 2024 @ 12:41pm
17 Nov, 2024 @ 1:19pm
2 Change Notes ( view )

Subscribe to download
Custom Voiceover Fix

Description
THIS IS ONLY FOR NON-ENGLISH VERSION OF THE GAME!
Fix for custom voiceovers with non-default bit depth not working properly on non-english localisation.


There is a convar called 'english 0/1' which controls the priority of game's voice vpk's that are mounted.
When UI language is set to anything else than english, game sets it to zero on every level change. Because of this, custom voicelines that are replaced by mods are randomly being ignored, which results in mixed original and modded audio.
This mod runs the command 'english 1' on each map restart.

Similar effect could be achieved with -language english launch parameter, but script allows to do this while keeping player's preferred language.

If your mod has the same bit depth (usually non-compressed 16-bit wav) as original voice lines, you may not need this fix.

Example of a mod that uses this fix, because many voicelines have nonstandard bit depths:
https://steamproxy.com/sharedfiles/filedetails/?id=3366444236