Garry's Mod

Garry's Mod

779 ratings
Extended Spawner
4
3
5
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Realism
File Size
Posted
Updated
552.787 KB
2 Jan, 2022 @ 8:33am
3 Jan, 2022 @ 1:03am
4 Change Notes ( view )

Subscribe to download
Extended Spawner

Description
About
Looking for a simple NPC spawner? Or maybe for one-in-all package for making NPC battles, spawning supplies, medkits etc? Either way - you couldn't pick a better addon!
Features
  • Can spawn one or multiple NPCs / Entities,
  • Can spawn entities in specified areas or in radius around Spawner and/or players.
  • Can customize NPCs (change skin, type, bodygroups)

How to
Go to Spawn Menu, Entities, spawn the Extended Spawner from "Jakub Baku" category.
Press "C", right click the entity and "Edit Properties..".


General
  • Entity classes - Here you can specify entity class for spawn or multiple classes (more about that below)
  • Spawner Active - Toggle spawning
  • SpawnMinRadius - If not using Area spawn this is the minimal distance from spawner or player in which an entity can spawn
  • SpawnMaxRadius - Maximal distance from player or spawner in which an entity can spawn
  • SpawnDelay - Delay between spawning
  • MaxSpawnedEntities - How many entities spawned by this spawner can exist at one time
  • Despawn - If enabled the entities outside the despawn radius are going to be removed
  • DespawnRadius - Despawn radius
Extended
  • Spawn Algorithm - Changes the way entities spawn. Only applicable if the Area spawn is disabled
  • Give Weapon(s) - Similar as Entity classes, can be one weapon (as a class) or multiple (more about that below)
  • Spawn Effect - Entity spawn effect
Spawn areas
  • Use spawn areas - If enabled the spawner will spawn entities only in spawn areas (more about that below)
  • Spawn Areas - String representing the spawn areas and their groups (more about that below)
Misc
  • Fade corpses - Good for optimization during big battles
  • Drop weapons - Disable it for NPCs to not drop the weapons, good for optimization



Entity classes and weapons
Those two fields accept one or multiple entities (don't need to be NPCs, can be for example - a health kit).
The syntax is as follows: entity/weapon class chance, optional additional parameters in {};
REMEMBER TO SEPARATE MULTIPLE CLASSES WITH SEMI-COLON (;).

Entities


You can change many aspects of the entity using parameters. The syntax is: {parameter='value', ... , ...}

Remember to separate parameters with colon (,) and to encase the value in quotes (" or ', not `).
A parameter can be any entity-specific key value or special parameter (prefixed with _).

Special parameters:
  • _spg - Defines a spawn group for entity. By default it's -1 meaning it can spawn in any area.
  • _wep - Forces NPC to be equiped with this weapon.
  • _mdl - Changes the entity model.
  • _bg - Changes the body groups, see the Article on Garry's Mod Wiki[wiki.facepunch.com]. Example (headcrabless zombie):
    npc_zombie {_bg='00'}
  • _hlt - Changes the health of an entity.
  • _speff - Changes the spawn effect. Example:
    npc_zombie {_speff='propspawn_hellspawn'}

Example useful parameters
  • squadname - NPCs in the same. Example:
    npc_combine_s {squadname='combees'}
  • spawnflags - Changes entity's spawnflags. Very useful. Example (spawns a medic):
    npc_citizen {spawnflags='131072', citizentype='3'}
  • citizentype - Changes the type of citizen. Example (spawns a rebel):
    npc_citizen {citizentype='3'}

Example syntax:
A simple citizen
npc_citizen
Citizen with 60% chance of spawn and Combine Soldier 40%
npc_citizen 60; npc_combine_s 40
A rebel with 1 HP
npc_citizen {citizentype='3', _hlt='1'}
Works with different areas. A battle between citizens and Combines
npc_citizen 17{citizentype='3', _spg='1'};npc_citizen 7{_weapon='weapon_rpg', _spg='1', citizentype='3', spawnflags='131072'}; npc_combine_s 17 {_spg='2', numgrenades='10'};npc_metropolice {_spg='2', _weapon='weapon_smg1'}

Weapons


Weapons can be simply defined by writing class or multiple classes separated by colon.
weapon_ar2; weapon_smg1
It's possible to use chance factors:
weapon_ar2 35; weapon_smg1 64; weapon_rpg 1

Spawn areas
You can use spawn areas to spawn different entities in different places on the map. Each area has it's group: by default areas and entities are assigned to group -1. Only entities with specified spawn group can spawn inside an area with this group set.
The easiest and recommended way of setting up the area is using the Extended Spawner Spawn Area editor tool from the tool menu. Left click to start making areas, you can remove them using a tool menu, change their group, height. Once the setup is finished press "Generate string" and copy the string (by Ctrl+A) to the spawner entity (Spawn Areas).
Popular Discussions View All (5)
4
29 Jul, 2022 @ 4:01pm
How do I make it spawn a medic
Crustys41
2
30 Apr, 2024 @ 2:00pm
how to make them stop coming?
main
1
3 May, 2022 @ 3:20pm
Why do duplicated spawners do not work?
Spongy Sponge
97 Comments
Broig_Master 25 May @ 5:51pm 
what do spawn groups do?
_ 25 Mar @ 6:13am 
HOLY SHIT THAT WORKED
_ 25 Mar @ 6:00am 
does work with drgbase????
Mr Beany 10 Feb @ 7:52pm 
Does this cap at 14 defined spawn zones? I put down 160 zones but it seems like only the first 14 are ever saved after i do that when I generate the string.
McFeddle 1 Feb @ 11:40am 
@acegamer69 if you want a simpler one, there's a CTool NPC spawner as well as Entity Group Spawner (EGS), though EGS doesn't have respawning. Just spawns a lot of one thing.
Japanlad 30 Dec, 2024 @ 8:57pm 
wiremod support?
acegamer69 9 Dec, 2024 @ 3:00am 
this stuff looks hard for someone like me is simple if you understand gmod fully but for someone less expert is just not easy
AlestOwOry 14 Oct, 2024 @ 12:19pm 
is it normal not being able to spawn any npc from the workshop? also would there be a way to fix that?
shiff_light 12 Oct, 2024 @ 1:11pm 
im too stupid to use this
promasterpice22 25 May, 2024 @ 9:19am 
Also this mod is good and does its intended job, caveman ass commentors, this shit helped me get 10k npc kills.