Different voice pitches for hgrunt death and pain sounds Created 5 years ago2018-09-09 11:37:53 UTC by Cabo Fiambre Cabo Fiambre

Created 5 years ago2018-09-09 11:37:53 UTC by Cabo Fiambre Cabo Fiambre

Posted 5 years ago2018-09-09 11:37:53 UTC Post #340824
I've noticed that hgrunts have different voice pitches for most sentences but not for the pain and death sounds. So i want to add this just to give consistency. I know that it's possible when transforming this sounds into sentences but i'm stuck at this point.
Posted 5 years ago2018-09-10 12:12:10 UTC Post #340840
These kind of sounds can't get adjusted in their pitch as far as I know.. Pain and death sounds are handled differently. Only solution coming to mind would be a manual pitch adjustments and making duplicate sounds. I might be wrong ofc. but I just checked through my valve sentences.txt and there are no Hgrunt death sounds listed. If memory serves these are listed with the models itself in their animation config files.

That or in the core game.dll's
Posted 5 years ago2018-09-10 12:22:54 UTC Post #340841
If you can modify the code you can change it here: https://github.com/ValveSoftware/halflife/blob/5d761709a31ce1e71488f2668321de05f791b405/dlls/hgrunt.cpp#L1204

Change the EMIT_SOUND to EMIT_SOUND_DYN and pass in a different pitch to it. You can see how to use EMIT_SOUND_DYN in EMIT_SOUND.
Posted 5 years ago2018-09-10 23:02:36 UTC Post #340843
Got it! Many thanks!
You must be logged in to post a response.