monstermaker

A monstermaker makes monsters while the map runs, one every Frequency seconds while it is on, until it has made
its Number of Monsters. It can pass names, paths, weapons, flags and any other key on to the monsters it makes.
Attributes
The entity also has these common keys:
- Naming and triggering: Name
- Position: Pitch Yaw Roll
renderfxSets an effect that the engine adds on top of the Render Mode.The 19 choices
rendermodeSets how the entity is drawn.
- Normal (0)
- Color (1)
- Texture (2)
- Glow (3)
- Solid (4)
- Additive (5)
renderamtSets how visible the entity is, from 1 up to 255.
rendercolorSets the color for the Render Mode Color and the Render FX Glow Shell.
targetFires each time the maker makes a monster, before the monster appears, or after it if you set Target's Activator.
netnameGives every monster the maker makes this name.
squadnameGives every monster the maker makes this squad name.
weaponsGives every Fed the maker makes these weapons, and for a Fed with heavy weapons, 1 gives the chaingun and 8 the sniper rifle.
- The monster's own (0) - Each Fed keeps its own weapons
- Federal (1)
- Federal + HG (3)
- Federal + GL (5)
- Saan Auto-Shotgun (8)
- Saan Auto-Shotgun + HG (10)
The monster's own (0)FfSets whether every Fed, Assassin and turret the maker makes ignores damage from its allies.
- No (0)
- Yes (1)
If you leave this key empty, it is No.
No (0)childtargetNames the path_corner or path_track that every monster the maker makes walks or flies along.
If you leave this key empty, the monsters get no path.
childtriggertargetGives every monster the maker makes this TriggerTarget, which the monster fires when its Children's Trigger Condition happens.
childtriggerconditionGives every monster the maker makes this Trigger Condition, which works like a monster's own.The 10 choices
No Trigger (0)childspawnflagsGives every monster the maker makes these flags on top of its own, as the sum of the monster's flag values, so for example 32 gives a monster_apache Fire Rockets. An Apache that the maker makes only waits for a trigger with 64 (Start Inactive), and not with 4, because bit 4 is this maker's MonsterClip for its monsters.
0monstertypeSets the kind of monster the maker makes. "Rappelling Fed" and "Rappelling Fed Hunter" make a rope spot instead, so you fire the Children's Name to send a Fed down. Each spot counts as a live monster for good, and the children keys don't reach the Fed.The 26 choices
monster_apache)monster_barney)monster_cyborg)monster_cyberminotor)monster_dark)monster_gargantua)monster_grunt_hunter)monster_grunt_hunter_repel)monster_human_assassin)monster_human_grunt)monster_grunt_repel)dark_grunt)monster_alien_slave)monster_hunter)monster_ichthyosaur)monster_imp)monster_imp_hunter)monster_scientist)monster_snark)monster_sentry)monster_turret)monster_werewolf)monster_werewolf_hunter)monster_zombie)monster_zombie_hunter)monster_zombie_grunt)
If you leave this key empty, the game removes the maker when the map starts and writes a line in the server console.
Apache (monster_apache)monstercountSets how many monsters the maker makes in all, where -1 means no limit. The server setting mp_makermon changes this number and Max live children, and mp_speedmon changes the Frequency. You set both in server.cfg or in the server console.
If you leave this key empty, there is no limit.
-1bodyGives every monster the maker makes this body, such as the head of a Scientist or the look of a Sectum. Feds and Zombie Grunts keep their own body, because their body also sets their gun.
If you leave this key empty or set 0, each monster keeps its own body.
0scaleGives every monster the maker makes this model scale.
If you leave this key empty, each monster keeps its own size.
delaySets how many seconds pass between two monsters. To make a new monster only when the last one dies, set Max live children to 1.
If you leave this key empty or set 0, the maker doesn't wait and makes monsters as fast as it can.
5m_imaxlivechildrenThe maker makes no new monster while this many of its monsters are alive, and 0 or less counts as 1.
If you leave this key empty, there is no limit.
5Sets where each monster appears, as a locus position that the maker works out again for each monster, so it can be x y z, an entity name or !activator.
If you leave this key empty, monsters appear at the maker.
Sets the point each monster faces when it appears, as a locus position, where *player is the nearest alive player.
If you leave this key empty, monsters face the way the maker faces.
Names an env_warpball that plays where each monster appears.
Sets where on the new monster the warpball plays.
- Origin (-1)
- Default (Center) (0)
- Center (1)
Default (Center) (0)Sets how many seconds pass between the warpball and the monster appearing.
If you leave this key empty or set 0, the monster appears at once.
delay_after_blockedSets how many seconds the maker waits before it tries again when something stood on the spot.
If you leave this key empty, it waits the Frequency.
target_activatorSets the activator that Target On Release gets.
- Don't pass activator (-1) - The targets get no activator
- Default (Monstermaker, before the monster spawns) (0) - The maker, and the targets fire before the monster appears
- Monstermaker (after the monster spawns) (1) - The maker, and the targets fire after the monster appears
- Spawned monster (2) - The new monster
- Forward my activator (3) - The entity that triggered the maker
Default (Monstermaker, before the monster spawns) (0)yawdeviationTurns each monster by a random amount, up to this many degrees to the left or the right.
0trigger_on_death_noticeFires each time one of the maker's monsters dies.
classifySets the class every monster the maker makes fights in, from the classes on the Monster classes page.The 15 choices
If you leave this key empty or set 0, each monster keeps its own side.
respawn_as_playerallyWith Yes, every monster the maker makes changes sides, as with Is player ally.
- No (0)
- Yes (1)
No (0)make_blocker_move_awaySets whether the maker asks a monster that stands on the spot to move away, and whether that monster walks or runs.
- No (0)
- Yes, walking (1)
- Yes, running (2)
No (0)gagWith Yes, every monster the maker makes gets Gag, so it makes no idle sounds.
- No (0)
- Yes (1)
No (0)change_rendermodeWith Yes, every monster the maker makes gets this maker's render settings.
- No (0)
- Yes (1)
No (0)Flags
1Start ONA named maker starts making monsters when the map loads, the first one after Frequency seconds, and a maker without a name always runs
4CyclicEach trigger makes one monster, instead of turning the maker on and off
8MonsterClipfunc_monsterclip brushes block the monsters the maker makes
16PrisonerThe monsters get Prisoner, so they see nobody and no monster sees them
32Auto size BBoxThe check for a free spot before a monster appears uses the monster's own size, instead of a box of 68 by 68 units below the maker
64Cyclic backlogWith Cyclic, a trigger that finds the spot blocked is kept, and the maker makes the monster once the spot is free
256Pre-DisasterThe monsters get Pre-Disaster
8192Monster Flag 64The monsters get the monster flag 64, which is Start Inactive for Apaches and turrets and Wait until provoked for the Sectum, the Demon Slave and its hunter, and the Werewolf and its hunter
65536Non-solid corpseThe monsters' corpses aren't solid
524288Ignore move away requestsPlayers who push a monster the maker made don't make it step aside
1048576Act out of PVSThe monsters look, listen and act even when no player is near them
Keys for the monsters
A key whose name starts with # goes to every monster the maker makes, under its name without the #, so a key
#unkillable with the value 1 makes every monster unkillable. The monster gets these keys before it spawns, the
way a monster placed in the map gets its keys, and the maker's own children keys, such as Children's Target
(path), apply after them. The maker loads what these keys name, such as a sound file, when the map loads, and you
add these keys in the editor with SmartEdit turned off.
A maker accepts up to 64 such keys, and with developer 1 set in the console, the console notes each key past that.
The keys #model, #new_model, #health, #max_health, #displayname and #classname aren't passed on, and with
developer 2 set in the console, the console notes each one. You can't add or change a # key while the map runs,
because a new value could need a file that the map hasn't loaded.
Notes
- A maker with a name and Start ON makes its first monster Frequency seconds after the map starts, and its first trigger turns it off
- A monster that dies frees its place among Max live children, and so does a shot-down Apache or Osprey or a destroyed turret
- A
monster_turretthat the maker makes only comes out by itself with Children's spawnflags 32, which is the turret's Autostart - The corpses of the maker's monsters fade out, except when Number of Monsters is 1
- The server can make Number of Monsters and Max live children half as large, but never below 1, twice or three times as large, and it can make the Frequency delay twice as long, half or a third as long, or turn every maker off. A maker that is turned off this way makes nothing, and it starts again when the setting changes back
- Once the map runs,
trigger_changevalueandtrigger_copyvaluecan only set Monster Type to a class that the map already loads, which is a class the map places, one that another maker makes, or a morph monster, and on a maker with#keys they can't change it at all. A refused change leaves the maker's class as it was, and withdeveloper 1set in the console, the console says why - If
trigger_changevalueortrigger_copyvaluegives a maker that made its last monster a new Number of Monsters, it starts again, so a maker that was on makes its next monster after Frequency seconds and a cyclic one takes triggers again. The server'smp_makermonscales the new count as it scales the map's, and reading the key back gives the monsters still to make before that scaling. See Changing keys
See also
env_warpball- the teleport effect a maker can playmonster_apache- a monster with its own rules for makers- Co-op: monsters - the server settings for monster strength
- monstermaker on TWHL - the Half-Life entity
Changes since 1.38
- You can use the new keys Children's Target (path), Children's TriggerTarget, Children's Trigger Condition, Children's spawnflags, Children's weapons, Children's squad name, Children's Ignore Friendly Damage, Children's body, Children's scale, Children's classification, Spawn position, Face position, Warpball, Warp at monster's..., Delay before spawn, Delay after blocked, Target's Activator, Max yaw deviation, Trigger on death notice, Reverse Relationship, Make blocker move away, Gag and Override Render Mode
- Fixed a monster maker of 1 monster making monsters without end when the server halves monster counts. Half of 1 is 0, which the maker read as no limit. This was a bug in SBO 1.38
- Fixed a named monster maker with Start ON not starting with the map (its first trigger turned it off)
- Fixed a shot-down Apache or Osprey keeping its place in its monster maker. The maker never heard that it died. This was a bug in SBO 1.38
- Fixed a destroyed turret or Sentry Gun keeping its place in its monster maker. The maker never heard that it died. This was a bug in SBO 1.38
- Fixed an Apache from a monster maker with MonsterClip waiting for a trigger forever. The MonsterClip flag has the same value as the Apache's Wait for trigger flag. This was a bug in SBO 1.38
- Fixed a monster maker without a monster type stopping the server when the map loaded. It tried to load a monster with an empty name
mp_speedmon -1turns off the map's monster makers- A key written as
#nameon a monster maker is passed on asnameto every monster it makes - Fixed a bug in monster maker set to unlimited monsters (-1) stopping after about 4.29 billion monsters had been spawned. If anyone wants to confirm, run the any map for 138 years and let me know if it's fixed
