Garry's Mod

Garry's Mod

2,567 ratings
Global NPC Group Spawner (Mapwide Auto Spawner)
7
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 @ 3:36pm
14 Dec, 2023 @ 10: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)
148
20 Jan @ 6:59pm
PINNED: Bugs
Zippy
10
7 Jan @ 8:05pm
PINNED: Complain/Hate
Zippy
2
3 Feb, 2024 @ 1:56pm
bugs
Olympi
783 Comments
Arlo Ecloc 24 Jan @ 11:33pm 
:gmod: /!\ POOR PERFORMANCE! /!\

This addon uses GM:Think for each action it does under player.GetAll. GM:Think is a function that is called every single frame. This is obviously very poor for computer performance. This makes this mod extremely CPU intensive and will likely lag your game to a crawl. In a roughly ~30s battle simulation, it called 41,785 times and using my middle-high tier rig (listed on my profile) FPS dropped dramatically due to the way this mod spawns NPCs.

I would recommend using another mod other than this, especially since it seems abandoned by its author.

[Tested using BadCoderz]
Kerk 24 Jan @ 7:23am 
Otherwise i've used this addon for over a year 103 out of 10!!!
Kerk 24 Jan @ 7:22am 
Compatibility for spawning entities would be cool, that way you could have groups of loot that spawn in certain areas with npcs and what not.
Mr_Leviathan4545 23 Jan @ 1:28am 
I poopoofarded and now addon dont work pls fix..........
diarreafella24 15 Jan @ 12:39am 
help my zombies dont move and when i spawn them in they dont move
LeboyEB 3 Jan @ 10:53pm 
I've tried the "Spawn area creator", where the "Force" action work fine but they still spawn at ground level and the zone need to touch some kind of ground otherwise nothing will spawn
LeboyEB 3 Jan @ 10:48pm 
Hey, just wanted to know if you could do a "Spawn in air" function or smth like this, because everything work fine except gunship and chopper spawning at ground level, which is kinda mid... thx
molinatomas211 1 Jan @ 5:15am 
hey its causing problems with lua. please fix
British Headcrab 31 Dec, 2024 @ 7:51pm 
Are you guys genuinely this dumb?
stew.sucher 31 Dec, 2024 @ 12:40am 
I UNSUBCRIBED ND ITS STILL IN ACTION. HELP!:sotsad: