I am trying to mod different zombie types to have different sounds, like in The Last of Us where there are runners, clickers and bloaters.
In the vanilla game there are 3 voice variants for each gender (vocal_A, vocal_B, and vocal_C), which gets assigned to each zombie. You can see the files for this if you go to
ProjectZomboid>media>sound>banks>Desktop>ZomboidSound.bank, and view these files with fmod bank tools.
I already have the code to set infected types finished. What I am looking for help with is how to assign each voice type to each infected, so that runners always use vocal_A, clickers use vocal_C, and bloaters use vocal_B).
This is where I plan to implement the code, using "zombie:setVocalType()" as an example to where the variable should be set :
Is this possible to implement? Any help would be appreciated, thank you!