Garry's Mod
705 valoraciones
Extended Spawner
3
3
5
2
2
2
   
Premiar
Favoritos
Favorito
Quitar
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Realism
Tamaño
Publicado el
Actualizado el
552.787 KB
2 ENE 2022 a las 8:33
3 ENE 2022 a las 1:03
4 notas sobre cambios ( ver )

Suscríbete para descargar
Extended Spawner

Descripción
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).
Discusiones populares Ver todo (5)
4
29 JUL 2022 a las 16:01
How do I make it spawn a medic
Crustys41 [SWAG] #FixTF2
2
30 ABR a las 14:00
how to make them stop coming?
main
1
3 MAY 2022 a las 15:20
Why do duplicated spawners do not work?
Spongy Sponge
91 comentarios
promasterpice22 25 MAY a las 9:19 
Also this mod is good and does its intended job, caveman ass commentors, this shit helped me get 10k npc kills.
promasterpice22 25 MAY a las 9:18 
how can I get them to use default weapons?
SMOD Player 25 MAR a las 1:25 
this mod is a waste of space,fucking trash
2den2 16 NOV 2023 a las 6:46 
NPCs keep getting stuck in each other, any way to fix this?
Silas.Y3llow (7\) 22 SEP 2023 a las 15:15 
Simple, huh?
jamal johnson 7 SEP 2023 a las 12:41 
simple huh
Sandstorm 23 JUN 2023 a las 23:16 
is there permaprops support?
war4sure 15 JUN 2023 a las 3:46 
How do I give them their default weapon?
Jake_489 29 MAY 2023 a las 20:52 
The spawnflag for the Medic gives them the outfit, but not the healing capabilities. I don't know how to fix this. Besides that, this addon is great!
jkow12 1 ABR 2023 a las 12:06 
rebels dont work