Info ambient mob start

From Valve Developer Community
Jump to: navigation, search

This entity sets the starting point for a bounding box where mobs should spawn by the director's command if the player does not advance for some time throughout the level. It cannot be manipulated directly and only works once an entire area has been cleared of infected near this bounding box. In official maps, info_ambient_mob_start appears with info_ambient_mob_end. The entity sets have the same targetname. The sets appear to not be sensitive to the direction of flow and whether it is touching the ground or not.

KeyValues

Targetname:

Name <string>
The targetname that other entities refer to this entity by.
Entity Scripts <scriptlist> (New with Left 4 Dead 2)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function <string> (New with Left 4 Dead 2)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note:Try to avoid expensive operations in this function, as it may cause performance problems.

Inputs

Targetname:

Kill
Removes this entity and any entities parented to it from the world.
KillHierarchy
Functions the same as Kill, although this entity and any entities parented to it are killed on the same frame, being marginally faster than Kill.
AddOutput  <string>
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.
Use  !FGD
Same as a player invoking +use; may not do anything. Can also be invoked by creating an output that does not specify an input.
This input is not included in Valve's FGDs.
RunScriptFile  <script> (New with Left 4 Dead 2)
Execute a VScript file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.
RunScriptCode  <string> (New with Left 4 Dead 2)
Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console.
Bug: In <Left 4 Dead 2>, the code is executed in the script scope of the entity that fires the output, not the one receiving the input.
Warning: Never try to pass string parameters to a script function with this input. It will corrupt the VMF structure because of the nested quotation marks, which then must be removed manually with a text editor.
CallScriptFunction  <string> (New with Left 4 Dead 2) !FGD
Execute a VScript function in the scope of the receiving entity.
SetLocalOrigin  <coordinates> (New with Alien Swarm) !FGD
Send this entity to a spot in the map. If the entity is parented to something, it will be offset from the parent by this amount.
SetLocalAngles  <angles> (New with Alien Swarm) !FGD
Set this entity's angles.

Outputs

Targetname:

OnUser1 to OnUser4
These Outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnKilled  (Only in the Left 4 Dead series)
This Output fires when the entity is killed and removed from the game.

Uses in official maps

The following maps have sets of info_ambient_mob_start and info_ambient_mob_end.

c1m3_mall
  1. A floor above Kappels near the beginning of the map. ambient_mob_01
  2. A floor above in the area before entering the maintenance corridors (this eventually leads to the alarm-mall-onslaught). ambient_mob_02
c3m1_plankcountry
  1. An unreachable pit way behind the shack, right after the ferry and before entering the multi-pathway high walkways with a gator sign entrance. swamp1_mob
  2. Facing towards the gator entrance, the pits are located way in the back, completely unreachable. swamp2_mob
  3. Facing towards the saferoom, the set is located again in a hidden, unreachable pit to the right. swamp3_mob
c3m3_shantytown
  1. When exiting the saferoom and facing towards the direction of the escape_route, the set is located in an unreachable area to the left behind the insurmountable obstacles, such as fencesambient_mob_01
  2. A small set located in the "background environment" beyond the orange plastic fences. This is right before the first shantytown has ended. ambient_mob_02
  3. This is almost like an extension of ambient_mob_02, where it wraps around the unreachable area that is guided by the escape route when reaching the battlefield for the panic event for the second cluster of buildings in shantytown. ambient_mob_03
  4. When facing in the direction of the escape route, the final shack in the panic event before reaching an area without buildings, but before the outhouse. The set is way to the left in an unreachable area. ambient_mob_05
c5m1_waterfront
  1. At the end of the map, before the entrance to the park in the next map (c5m2_park). The set covers the entire area. mob_1
  2. Hidden behind the truck before entering the café kitchen. Start is located on an upper floor and wraps down to the End that is near the white truck. mob_2
  3. Hidden in area beyond the large blocking metal fences next to the bar where the jukebox is. They are far behind areas that cannot be seen or navigated, such as a green fence and obscured by a building next to the green fence. mob_3
c5m2_park
In this map, info_ambient_mob_start and end sets are not used. info_ambient_mob is used frequently instead. No targetnames are used.
c5m3_cemetary
  1. In area with the entrance to the sewers. The set is by the white van and follows along the metal barriers seen before entering the area from the building. amob1
  2. Near the first trailer encountered in this map, right after dropping down from the bus that blocks the street. amob2
  3. In area left of the second trailer encountered before entering the final building that leads to the area with the sewer entrance. amob3
c5m3_quarter
  1. At end of the strip of road behind survivors in unreachable area blocked by high metal walls/fences, having to fall down to in the beginning of map. This area is before entering "The Jazz Club" street1_mob
  2. In the same strip of road, but in the middle and on the right. It is an unreachable area that survivors will never see. street2_mob
  3. At another strip of road encountered finishing the class panic event (after getting health items near the dynamic light). The entity set is similar to number 1, as the set is located behind high metal walls/fences, behind the survivors. street3_mob

See also