Garry's Mod

Garry's Mod

NPC Daemon
 此主题已被置顶,因此可能具有重要性
sockpuppetclock  [开发者] 2021 年 8 月 21 日 上午 2:13
[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]
< >
正在显示第 1 - 10 条,共 10 条留言
MVRITR3VA 2021 年 8 月 21 日 上午 5:38 
This is a big help, thanks!
xd 2023 年 4 月 9 日 上午 9:50 
Hello,
Can i use this mod to spawn custom npcs and weapons?
Thanks!
sockpuppetclock  [开发者] 2023 年 4 月 9 日 下午 2:29 
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
xd 2023 年 4 月 9 日 下午 9:06 
Thank you so much for making this project
xd 2023 年 4 月 9 日 下午 9:27 
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  [开发者] 2023 年 4 月 9 日 下午 9:53 
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.
xd 2023 年 4 月 10 日 上午 7:56 
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
Max Malevich 2024 年 1 月 18 日 上午 8:21 
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  [开发者] 2024 年 1 月 20 日 下午 1:22 
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.
最后由 sockpuppetclock 编辑于; 2024 年 1 月 20 日 下午 1:30
Hosterle 2024 年 8 月 29 日 上午 2:08 
what exactly does quota do?
whenever I set minimal quota, spawn rates get reduced significantly
< >
正在显示第 1 - 10 条,共 10 条留言
每页显示数: 1530 50