VOGONS


First post, by lagonauta

User metadata
Rank Newbie
Rank
Newbie

DO NOT USE THIS ON VAC SECURED SERVERS, YOU MAY GET BANNED. TO BE SURE USE IT WITH STEAM IN OFFLINE MODE.

I was sick of the low audio quality and lack of surround/HRTF from HL1 and started looking to add OpenAL support to HL.
I even started writing my own mod, but I forgot HL is C not C++ so I had to re-think the design I had... However while searching the internet I found a mod called CKF3 whose developers managed to add OpenAL to the game, and it was through a plugin-hook-type-thingy so it should work in any HL1 mod! Even better than what I was going to do!

But it is a little bit buggy, especially when dealing with voices. When I started messing with it the game randomly crashed for no reason after something was played... My hope was lost...
Until I finally found its source code! Everything should be working now after changing the sound backend to use Alure 😁

It is good to have HRTF back into HL1 😁
And with room EFX! Nice 😀

Never played the game with that much audio sources available, "crossfire" with 31 bots is crazy.

Sadly the EAX 1.0 effects from HL1 are very different from the native software based reverb, but it is good enough...

Source code:
https://github.com/LAGonauta/metahook/

Release:
https://github.com/LAGonauta/metahook/releases/

Video:
https://www.youtube.com/watch?v=FW-6H4M7rwI

Just extract it to your Half-Life folder, create a shortcut just like my sample shortcut (or edit my sample directly, your call), and load it. Happy Half-Life'ing 😁

Any help is appreciated, so PRs are welcome. Or fork away, its free 😉

DO NOT USE THIS ON VAC SECURED SERVERS, YOU MAY GET BANNED. TO BE SURE USE IT WITH STEAM IN OFFLINE MODE.

Last edited by lagonauta on 2018-06-25, 14:15. Edited 6 times in total.

Reply 1 of 5, by lagonauta

User metadata
Rank Newbie
Rank
Newbie

Just updated the plugin, now everything should be quite similar to HL1 sound output (but I really dislike linear sound attenuation, ugh. I should make a runtime option...).

Now it uses Alure to help managing all OpenAL sound sources, and libsndfile to decode the audio files.
Tested with OpenAL Soft and A X-Fi Titanium HD 😀

Reply 2 of 5, by lagonauta

User metadata
Rank Newbie
Rank
Newbie

Another version released!
Version from commit number 5d46bab04d521987435be078967fc8d516762efb.

Now there is occlusion support, device selection support, lots of fixes, the distributed Alure does not depend on libsndfile anymore (decode bug fixed!) and now I feel the reverb is EXACTLY the same as HL1 EAX.
I even fixed this old bug here: https://github.com/ValveSoftware/halflife/issues/1661

I hope you like it, just download from the first post or compile your own library and executable 😀

Reply 4 of 5, by Srandista

User metadata
Rank Oldbie
Rank
Oldbie

Why all releases disappeared?

Socket 775 - ASRock 4CoreDual-VSTA, Pentium E6500K, 4GB RAM, Radeon 9800XT, ESS Solo-1, Win 98/XP
Socket A - Chaintech CT-7AIA, AMD Athlon XP 2400+, 1GB RAM, Radeon 9600XT, ESS ES1869F, Win 98