Garry's Mod

Garry's Mod

NPC Daemon
 This topic has been pinned, so it's probably important
sockpuppetclock  [developer] Aug 21, 2021 @ 9:13am
[Tutorial] Basic Profile & Preset Creation
This tutorial introduces the editor, creating profiles & presets and allowing them to spawn automatically.
Basic Profile & Preset Creation[imgur.com]
Showing 1-10 of 10 comments
MVRITR3VA Aug 21, 2021 @ 12:38pm 
This is a big help, thanks!
jxlly Apr 9, 2023 @ 4:50pm 
Hello,
Can i use this mod to spawn custom npcs and weapons?
Thanks!
sockpuppetclock  [developer] Apr 9, 2023 @ 9:29pm 
yeah this mod can (try to) spawn any entity if you tell it to. they will use the same spawn points that NPCs would normally spawn at.
for weapons, one personal setup i have is to make entity presets of weapons, and then put those presets into a separate squadpool, so that they use a separate spawnlimit from NPCS, etc
jxlly Apr 10, 2023 @ 4:06am 
Thank you so much for making this project
jxlly Apr 10, 2023 @ 4:27am 
Sorry, i'm kinda having trouble
The custom npc addon i installed doesn't show up on the list, what do i do?
Thanks!
sockpuppetclock  [developer] Apr 10, 2023 @ 4:53am 
what's the addon? depending on the custom npc addon, they either make new npc entity ("npc_whatever") or they change existing npcs (npc_combine_s but with different keyvalues/model etc).

If it's a custom entity and you know the internal "entity_whatever" name then you can type the classname in as a string.
But my guess would be that it is a variant of an existing NPC type, then here's one way to add that variant:
NPCD can generate a new profile that tries to make presets out of what you have installed,
In the toolmenu settings, Profiles > "Generate Profile From Current Install To Pending"

This will create a new profile with a bunch of new presets. The NPC presets should be there too, and will likely have the keyvalues included to make it look right.
You can copy presets across profiles from that generated profile to your own.
jxlly Apr 10, 2023 @ 2:56pm 
Thank you so much
Little award for your commitment
It's hard to find people like you on the workshop as other creators just tell their subscriber to look for information themselves instead of answering :3
Agent Mendoza Jan 18, 2024 @ 3:21pm 
Is it at all possible to have an NPC chase another friendly NPC without designating it as an enemy target?
When I enable "Chasing" on one NPC for another, it usually ends up in the target getting killed. What I want is a potential target-defence kind of scenario, like the "VIP Defense" preset but for NPCs.
sockpuppetclock  [developer] Jan 20, 2024 @ 8:22pm 
Usually, seemingly friendly NPCs only attack each other because they're actually "neutral" to each other. You can edit NPC relationships in the Relations & Behavior section to be explicitly friendly towards each other even when they target/enemy the other.

Otherwise, in the Chasing section you can edit "Set NPC Enemy on Chase" and "Set NPC Target on Chase". Also, since the "Preferred NPC Chase Schedule" has SCHED_TARGET_CHASE/SCHED_CHASE_ENEMY which require a target/enemy to work, remove those from the list, just in case.
Last edited by sockpuppetclock; Jan 20, 2024 @ 8:30pm
Hosterle Aug 29, 2024 @ 9:08am 
what exactly does quota do?
whenever I set minimal quota, spawn rates get reduced significantly
Showing 1-10 of 10 comments
Per page: 1530 50