Garry's Mod

Garry's Mod

409 ratings
Custom NPC Auto-Tweaker
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Build, Roleplay, Scenic
File Size
Posted
Updated
9.607 KB
10 Mar, 2024 @ 7:25am
13 Apr @ 8:33am
3 Change Notes ( view )

Subscribe to download
Custom NPC Auto-Tweaker

Description
Custom NPC Auto-Tweaker
This addon attempts to tweak and fix some errors the custom NPCs that are HL2-based have. This includes them not using any voicelines, not spawning with any default weapons, and etc.

Feature List:
  • Have you ever noticed that the Citizen-based NPCs are only able to play their death sound? Yeah, this one is fixed.
  • Alongside the above, it also tries to make them use the corresponding voicetypes by determining their animation set. For example, male custom NPC using male voicelines and vice versa. This might get weird if the NPC uses incorrect animations sets!
  • Apparently other than these two above, they also have a specific facial expressions sets that are only present in base ones: Normal, Scared, and Angry. This addon restores this to custom ones.
  • Automatically assigns NPCs with no squadnames to a default fallback ones. You might wanna turn this off if you have an already similar functioning addon!
  • Gives NPCs that don't have any weapons assigned to them/have misspelled ones(see thumbnail) the default HL2 ones.
73 Comments
Glass of Lime Soda 16 Jul @ 9:53pm 
[Custom NPC Auto-Tweaker] lua/autorun/server/sv_npc_autotweaker.lua:44: Tried to use a NULL entity!
1. GetNW2String - [C]:-1
2. GetModel - lua/autorun/server/sv_npc_autotweaker.lua:44
3. unknown - lua/autorun/sdd_main_script.lua:33

Timer Failed! [Simple][@lua/autorun/sdd_main_script.lua (line 33)]
Second Chance Junkyard 5 May @ 12:38pm 
Just out of curiosity, what causes the male custom npcs to have female voices even thought they use male structures? I suspect there is a mod conflict somewhere, but I'm not sure. The npcs by Sligwolf for instance use male structures, and I can confirm they used male voices when the mod was working right.
Ramin Inuras 19 Apr @ 10:29am 
Ngl I liked sound.SetActorGender update. Detour method makes reagdoll blacklisting dysfunctional. Can you perhaps upload a seperate version that isn't Detour?
leunreadable 12 Apr @ 3:59pm 
i'll wait
leunreadable 11 Apr @ 1:21pm 
it's definitely a hidden error, because neither this addon or REASFX notify any script errors in the console

ok so the exact issue in detail is:
since REASFX adds death sounds to NPCs according to model gender, and this addon lets the NPCs actually USE all of REASFX's sounds that MATCH the model's gender, both work in harmony. this was effective before the update you just launched

now because of the addon's update, every single NPC i kill, no matter if they're supposedly female or male, will always play the male sounds no matter what, so i think that change you did today really seemed to break the addon combination

ill be absolutely glad if that could be looked on, thank you
BrayMurph  [author] 11 Apr @ 12:21pm 
what's the exact problem? is it a script error or something else?
leunreadable 11 Apr @ 12:05pm 
the april 11 update just completely screwed over the flawless combination with the REASFX addon for death sounds, so uh.. i really think you should revert this addon to its previous version - honestly, it was just perfect how it was, too :steamthumbsup:
Fiend 24 Sep, 2024 @ 2:05pm 
Is there a way to 100% shut custom npcs up?
gposs 16 Jun, 2024 @ 10:57am 
npc still don't talk at all even tough i have them enabled,help please
Senior Losbner 13 Jun, 2024 @ 7:10am 
Автор красава, исправил давнюю проблему