asw_spawner
Jump to navigation
Jump to search
Code classes:
CASW_Spawner
CASW_Base_Spawner
CBaseEntity
(all ents)
asw_spawner
is a point entity present in Alien Swarm. It is used to spawn and configure aliens.
ConVars/Commands[edit | edit source]
ConVar/Command | Parameters or default value | Parameter Type | Effect |
---|---|---|---|
asw_carnage | int | Multiplier | Tells the game to multiply how many aliens are spawned by asw_spawner s by the given number. |
asw_spawning_enabled | 1 | 0 disables, 1 enables | Enables asw_spawner s. |
Flags[edit | edit source]
- 1: Infinite even on Easy mode - If Infinitely spawn aliens is set to true, this spawner will spawn aliens infinitely even if playing on easy mode.
Keyvalues[edit | edit source]
- Max Num. of live aliens
(MaxLiveAliens)
<integer>
- Maximum number of live aliens that can be present in the level from this spawner at any given time.
- Num. aliens we can create
(NumAliens)
<integer>
- The number of aliens that can spawn before the spawner is exhausted.
- Infinitely spawn aliens
(InfiniteAliens)
<boolean>
- Makes this spawner spawn aliens infinitely, except on easy mode.
- Spawn interval
(SpawnInterval)
<float>
- Time in seconds between each alien spawning.
- Spawn interval variation
(SpawnIntervalJitter)
<float>
- Percentage variation applied randomly to the spawn interval each time an alien spawns. Value must be between 0 and 100. The default 25 will give a 25% variation to the spawn interval, so a 1 second spawn interval would actually be randomly between 0.75 seconds and 1.25 seconds.
- Alien Class
(AlienClass)
<choices>
- Which type of alien to produce from this spawner.
- 0:
asw_drone
- 1:
asw_buzzer
- 2:
asw_parasite
- 3:
asw_shieldbug
- 4:
asw_grub
- 5:
asw_drone_jumper
- 6:
asw_harvester
- 7:
asw_parasite_defanged
- 8:
asw_queen
- 9:
asw_boomer
- 10:
asw_ranger
- 11:
asw_mortarbug
- 12:
asw_shaman
- 0:
Alien health scale(HealthScale)
<float>
- Does not exist in code.
Alien speed scale(SpeedScale)
<float>
- Does not exist in code.
- Spawner State
(SpawnerState)
<choices>
- Spawner's initial state
- 0: Start spawning on mission start
- 1: Wait for inputs
Inputs[edit | edit source]
- SpawnOneAlien
- Spawns a single alien.
- StartSpawning
- Makes the spawner start creating aliens.
- StopSpawning
- Stops the spawner from spawning, putting it into the 'Wait for inputs' state.
- ToggleSpawning
- If off, turn on. If on, turn off.
Outputs[edit | edit source]
- OnAllSpawned
- Fires when all children have been spawned.
- OnAllSpawnedDead
- Fires when all the children have been spawned and have died.