Garry's Mod

Garry's Mod

[CVC] Base
 This topic has been pinned, so it's probably important
Chtidino  [developer] 18 Sep, 2023 @ 4:12am
How adding Custom Voice
Template link in description of this video:
https://www.youtube.com/watch?v=NZMMdED8kJA

There are two templates, one for the base male voice, and one for the base female voice.
Rename the "uniquename" part of the file you are using.
Inside the file, rename the part after "CVC_CustomVoice_" (so the "UniqueNameM" part for the male file, or "UniqueNameF" for the female file).

Let me explain to you, the addon detects the sounds emitted by the citizens, and the fact that the npc has a custom voice, ensures that the sounds concerned are in some way "replaced".

This is how it looks (this is one of the first lines of the code):
["npc_citizen.abouttime01"] = { <-- *1* "vo/npc/female01/abouttime01.wav" <-- *2* },

*1* here it is the name or path of the sound which will be replaced
*2* here it is the name or path of the sounds which will be played instead (only one will play, not all at the same time)

You do not need to replace all the sounds, parameter 4 is used to not play the non-replaced sounds, for it to work delete the lines of the non-replaced sounds.
Last edited by Chtidino; 18 Sep, 2023 @ 4:13am