Latest revision |
Your text |
Line 1: |
Line 1: |
|
| |
| == $tf_bot_spawn ==
| |
| Tries to spawn a tf_bot with given TFBot keyvalues at its location. If spawning succeds, deletes itself, otherwise tries again next tick. Uses the robot player pool, and is affected by RobotLimit keyvalue. The spawned bot inherits this entity targetname, all its custom outputs and variables, teamnum, angles, velocity. If this entity is parented, the spawned player will be [[Entity Modules|fake parented]] to this entity parent.
| |
|
| |
| === Inputs ===
| |
| * $Spawn
| |
| ** Spawns a bot, used when manual bot spawning is enabled.
| |
| ===Keyvalues===
| |
|
| |
| * =(keyvalue) <value>
| |
| ** Sets a TFBot spawner keyvalue. Only simple key value pairs are allowed
| |
|
| |
| *$spawnlimit <int>
| |
| **A maximum number of bots spawned from $tf_bot_spawn entities active at one. By default there is no limit
| |
| *$spawnlimitname <string>
| |
| **If set, $spawnlimit only counts bots spawned by $tf_bot_spawn entities, that also have the same spawn limit name
| |
| *$spawnlimitaction <string>
| |
| **What to do when a $spawnlimit is reached. By default, the additional bot refuses to spawn. Possible values:
| |
| ***killoldest - Kills the oldest bot spawned by $tf_bot_spawn
| |
| ***specoldest - Send the oldest bot spawned by $tf_bot_spawn to spectator team
| |
| *$disallowspawnstuck <1/0> (Default: 0)
| |
| **Prevent the bot from being spawned if there is no room for the spawned bot
| |
| *$nospawnbetwenenwaves <1/0> (Default: 0)
| |
| **Prevent the bot from being spawned if the wave is not running
| |
| *$failspawnnoretry <1/0> (Default: 0)
| |
| **If spawning fails, remove itself
| |
| *$manualspawn <1/0> (Default: 0)
| |
| **Do not spawn a bot automatically, require $Spawn input to spawn a bot
| |
|
| |
| === Output ===
| |
|
| |
| * $onbotspawn
| |
| ** Called when the bot is spawned. The spawned bot is the !activator
| |
| * $onbotspawnfail
| |
| ** Called every time this entity fails to spawn a bot
| |
|
| |
| == $tf_bot ==
| |
| Creates a new tf_bot with given TFBot keyvalues directly, if player limit is not reached. The classname is changed to player after spawning. Inherits all player Inputs/Outputs. The bot is kicked when the entity is removed
| |
|
| |
| ===Keyvalues===
| |
|
| |
| * =(keyvalue) <value>
| |
| ** Sets a TFBot spawner keyvalue. Only simple key value pairs are allowed
| |
|
| |
| *$kickafterdeathdelay <float>
| |
| **Kicks the bot after specified delay. If the bot is not kicked after death, it will be send to spectator and used in a robot player pool
| |
| == $func_block_los == | | == $func_block_los == |
| Blocks line of sight | | Blocks line of sight |
|
| |
| ===Keyvalues=== | | ===Keyvalues=== |
| *$filter <string> | | *$filter <string> |