Of bot spawner: Difference between revisions

From Open Fortress Wiki
Jump to navigation Jump to search
(Created page with "Category:Point_Entities {{of point|of_bot_spawner|sprite=1}} Spawn Bots ==Keyvalues== {{KV Targetname}} {{KV|Bot Template 1|intn=BotTemplate1|string|Template to use for spawning bots}} {{KV|Bot Template 2|intn=BotTemplate2|string|Template to use for spawning bots}} {{KV|Bot Template 3|intn=BotTemplate3|string|Template to use for spawning bots}} {{KV|Bot Template 4|intn=BotTemplate4|string|Template to use for spawning bots}} {{KV|Bot Template 5|intn=BotTemplate5|str...")
 
No edit summary
 
Line 5: Line 5:
==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV Targetname}}
{{KV EnableDisable}}
{{KV|Bot Template 1|intn=BotTemplate1|string|Template to use for spawning bots}}
{{KV|Bot Template 1|intn=BotTemplate1|string|Template to use for spawning bots}}
{{KV|Bot Template 2|intn=BotTemplate2|string|Template to use for spawning bots}}
{{KV|Bot Template 2|intn=BotTemplate2|string|Template to use for spawning bots}}
Line 21: Line 22:


==Inputs==
==Inputs==
{{IO EnableDisable Input}}
{{IO Toggle}}
{{IO|SpawnWave|Force spawn a wave, doesn't reset the wave interval|param=void}}
{{IO|SpawnWave|Force spawn a wave, doesn't reset the wave interval|param=void}}
{{IO|ResetInterval|Resets the time to spawn a wave|param=void}}
{{IO|ResetInterval|Resets the time to spawn a wave|param=void}}

Latest revision as of 10:24, 4 January 2025


Open Fortress of_bot_spawner is a point entity available in Open Fortress Open Fortress. Spawn Bots

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start Disabled? (StartDisabled) <boolean>
Default: false
Bot Template 1 (BotTemplate1) <string>
Template to use for spawning bots
Bot Template 2 (BotTemplate2) <string>
Template to use for spawning bots
Bot Template 3 (BotTemplate3) <string>
Template to use for spawning bots
Bot Template 4 (BotTemplate4) <string>
Template to use for spawning bots
Bot Template 5 (BotTemplate5) <string>
Template to use for spawning bots
Default Template (TemplateNum) <integer>
Sets which template should be used.
Randomize Templates (RandomizeTemplates) <boolean>
If true, randomizes which template should be used for each bot.
Wave Size (WaveSize) <integer>
How many bots should spawn per wave.
Wave Interval (WaveIntervals) <float>
How long it should take before a wave respawns, setting it to -1 spawns it only once.
Spawn When Cleared (SpawnWhenCleared) <boolean>
If true, won't spawn the next wave untill the previous one is dead.
Wave Preset (WavePreset) <string>
If set, it will use a wave preset to determine which bot template to use for how many bots.
Target Entity Name (Target) <targetname>
If set, makes the bots target a specific point to go to.
Spawn Point (SpawnPoint) <targetname>
If set, spawns the bots around a targeted entity, instead of around the bot spawner.
Spawn Radius (SpawnRadius) <float>
Radius around which bots will spawn (units).

Inputs

Enable <void>
Enable this entity.
Disable <void>
Disable this entity.
Toggle <void>
Toggle the enable/disabled status of this entity
SpawnWave <void>
Force spawn a wave, doesn't reset the wave interval
ResetInterval <void>
Resets the time to spawn a wave
SetInterval <float>
Sets the time it takes for waves to respawn
SetTemplate <integer>
Changes which template is used to spawn bots
SetTarget <targetname>
Changes the targeted entity
KillAllBots <string>
Kills all active bots

Outputs

OnAllBotsKilled
Fired when every bot is defeated.
OnBotKilled
Fired every time a bot dies.
OnBotsSpawned
Fired whenever a wave is spawned.