Garry's Mod

Garry's Mod

2,619 ratings
Global NPC Group Spawner (Mapwide Auto Spawner)
8
4
2
12
3
3
9
4
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
103.254 KB
4 Jun, 2022 @ 7:36am
14 Dec, 2023 @ 2:00pm
46 Change Notes ( view )

Subscribe to download
Global NPC Group Spawner (Mapwide Auto Spawner)

In 1 collection by Zippy
Zippy's Stuff
43 items
Description
What this is:
This is an addon that allows you to easily make groups of NPCs that can later be spawned automatically all over the map. It can be used to simulate a battlefield, or to add ambient NPCs to your map, or anything of that nature. It uses AI nodes to find spawn positions, so the map you are playing on must have a nodegraph.


Current features:
- Supports most NPCs, including VJ Base SNPCs and nextbots.
- The groups you create and their contents are saved automatically whenever you make any changes!
- You can put groups in different categories (sets) by renaming your group like this: CategoryName: GroupName (The set will be created automatically!)
- You can change what spawn chance a group should have, and you can change how many instances of that group can exist on the map at once.
- You can activate or deactivate groups whenever you want! You can also do it to all groups at once, or to all groups in a certain category.
- You can set what spawn chance a certain NPC should have.
- An NPC will normally spawn with their default weapons, but you can change what weapons a particular NPC can spawn with.
- Lots of options to determine where NPCs can spawn, including a system that allows you to create areas that restrict or force spawning for all/certain NPC groups.
- Other miscellaneous options.


How to use it:
In order for anything to spawn you will need to:
- Make sure the current map has a nodegraph.
- Add at least one group.
- Activate the group (by checking the checkbox to the left).
- Add at least one NPC in that group.
- Check the "Enable Spawning Module" checkbox.


The map needs a nodegraph in order for it to work! If it still doesn't work even though you know there is a nodegraph, try setting "ai_norebuildgraph" to "1".


Similiar addons that I got the idea from:
NPC Daemon: https://steamproxy.net/sharedfiles/filedetails/?id=2574407396
Zombie/NPC Invasion+: https://steamproxy.net/sharedfiles/filedetails/?id=597017711
ZINV - Zombie/NPC Invasion: https://steamproxy.net/sharedfiles/filedetails/?id=179517028


Join the discord server (by clicking the image below) if you want to discuss my addons!
[discord.gg]
Popular Discussions View All (3)
153
3 Mar @ 12:36pm
PINNED: Bugs
Zippy
11
19 Feb @ 3:19am
PINNED: Complain/Hate
Zippy
2
3 Feb, 2024 @ 5:56am
bugs
Ichikawa
795 Comments
Zephos 11 hours ago 
As I write that, an idea springs to mind to take it one step further. Whitelists assigned to one group that an opposing group can "capture" from standing in long enough. Basically command posts from Star Wars Battlefront. Could make a whole gamemode out of that!

I know this mod's not getting updated anymore, but it definitely sparks a lot of great ideas. Hope to see it taken further someday
Zephos 11 hours ago 
Very fun mod for NPC spawning and general chaos. Is there a way to assign certain groups to say, certain whitelist zones? Then just need a respawn limit and you got a perfect NPC war addon
HaCkErMaN 28 Feb @ 6:38pm 
Is there a way to wipe all groups? I have 100s from previous sessions and I want to remove them all at once.
♠ ACE ♠ 26 Feb @ 11:45am 
[Global NPC Group Spawner (Mapwide Auto Spawner)] lua/weapons/gmod_tool/stools/zippymapspawner_areacreator.lua:156: bad argument #1 to 'ipairs' (table expected, got nil)
1. ipairs - [C]:-1
2. update_groups - lua/weapons/gmod_tool/stools/zippymapspawner_areacreator.lua:156
3. func - lua/weapons/gmod_tool/stools/zippymapspawner_areacreator.lua:173
4. unknown - lua/includes/extensions/net.lua:38
any ideas? cuz when i open my npc group it has an error poping out in the corner and the groups don't show up
-.. -.-- .--. .- 22 Feb @ 11:45am 
I set max npc spawn and my gmod can't start. How to reset addon settings?
EthanvsZombies 16 Feb @ 5:28pm 
Just a idea I had.
EthanvsZombies 16 Feb @ 5:24pm 
It be cool if there was a way to spawn NPCs under water for NPCs that need to be under water, and NPCs to be spawn on a ceiling for the NPCs that need to be spawn on a ceiling.
Sixteen60 12 Feb @ 7:00pm 
How do you have 2 NPC types spawn in different areas from eachother?
chrislloydbreak 6 Feb @ 12:29pm 
[Global NPC Group Spawner (Mapwide Auto Spawner)] lua/autorun/server/zippymapspawner.lua:371: bad argument #1 to 'ipairs' (table expected, got nil)
1. ipairs - [C]:-1
2. GetAvailableGroups - lua/autorun/server/zippymapspawner.lua:371
3. v - lua/autorun/server/zippymapspawner.lua:424
4. unknown - lua/includes/modules/hook.lua:102
chrislloydbreak 6 Feb @ 12:28pm 
[Global NPC Group Spawner (Mapwide Auto Spawner)] lua/sv_zippymapspawner/groups.lua:51: bad argument #1 to 'TableToJSON' (table expected, got nil)
1. TableToJSON - [C]:-1
2. func - lua/sv_zippymapspawner/groups.lua:51
3. unknown - lua/includes/extensions/net.lua:37 ohno a error