Garry's Mod

Garry's Mod

Not enough ratings
[CVC] Base
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Realism
File Size
Posted
Updated
100.758 KB
Sep 12, 2023 @ 5:36am
Sep 18, 2023 @ 2:53am
4 Change Notes ( view )

Subscribe to download
[CVC] Base

Description
Hello, the first thing to kown is, this addon not work alone. Content creators must modify the relevant addons to make them compatible.

/!\ Warning /!\
This addon modify the function "entity:GetModel()", if you have an addon who modify this function too, they two addons will be incompatible !
/!\ Warning /!\

With this addon you can customize certain sounds that npc_citizen can emit, here are the options:
1 - Choose a base voice (male or female or none)
2 - Choose a additional footstep sound (like metropolice, combine...)
3 - Choose a Custom Voice (it is limited by the sounds that the npc_citizen can say)(multi-language support)
4 - Ensure that the sounds not parameterized are not played (for Custom Voice)
5 - Choose the squad name (you will be why, this option is there, in the section that explains how the addon works)


How does this addon work ?
When a npc_citizen is "created", addon check a keyvalue called "squadname".
That with "squadname" this addon modify and add certain value, so that the other hooks can return the correct sounds to the npc. (the fifth option is there to fix the fact that we use this value to configure the npc_citizen)

How do I make it work for my npc_citizen ?
When you are in your lua file for add your new npc_citizen in the NPC list, add this in KeyValues:
SquadName = "option1 option2 option3 option4 option5"
(only one space between each option, it's important)

Replace option1 by one of this:
CVC_BaseVoice_None
CVC_BaseVoice_Male
CVC_BaseVoice_Female

Replace option2 by one of this:
CVC_AdditionalFootStepSound_None
CVC_AdditionalFootStepSound_Antlion
CVC_AdditionalFootStepSound_HeadCrab
CVC_AdditionalFootStepSound_Dog
CVC_AdditionalFootStepSound_FastZombie
CVC_AdditionalFootStepSound_MetroPolice
CVC_AdditionalFootStepSound_CombineSoldier
CVC_AdditionalFootStepSound_Stalker
CVC_AdditionalFootStepSound_Vortigaunt
CVC_AdditionalFootStepSound_Zombie
(new footstep sounds can be added, whether by me or by you)

Replace option3 by one of this:
CVC_CustomVoice_None
CVC_CustomVoice_Male01
CVC_CustomVoice_Female01
(new voices can be added, whether by me or by you)

Replace option4 by one of this:
CVC_MuteOnMissingSound_On
CVC_MuteOnMissingSound_Off

For option5 it's up to you to see what you want, just start with "CVC_RealSquadName_", no space with the name you are going to give. (exemples: CVC_RealSquadName_Squad_1 , CVC_RealSquadName_exemple_squad)
Popular Discussions View All (3)
0
Sep 18, 2023 @ 4:54am
PINNED: How adding other sound language for Custom Voice
Chtidino
0
Sep 18, 2023 @ 4:12am
PINNED: How adding Custom Voice
Chtidino
0
Sep 18, 2023 @ 2:43am
PINNED: How Adding Custom footstep
Chtidino
4 Comments
Chtidino  [author] Sep 22, 2023 @ 1:25am 
@Foof It's going to be complicated, but if I can I'll try to make one.
Foof! Sep 21, 2023 @ 4:17pm 
could you make a video tutorial if it's not too troubling? it would be cool to add for npc models.
Chtidino  [author] Sep 18, 2023 @ 5:04am 
@Foof I added discussions to explain, if it's still not clear ask questions
Foof! Sep 17, 2023 @ 5:05pm 
How would adding a custom voice work? Instructions are quite unclear.