Bot proxy: Difference between revisions
Jump to navigation
Jump to search
Note:The bots are kicked after death.
Warning:This entity appears to be unfinished as indicated by its broken functionality.
Confirm:This entity may have worked previously, but may have been since broken by an update.
Gatelych83 (talk | contribs) m (Fixed up a few keyvalues) |
(Full documentation and testing of this entity. Appears to have been broken after some updates (since when?)) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:bot_proxy}} | {{DISPLAYTITLE:bot_proxy}} | ||
{{ | {{tf2 point|bot_proxy}} It creates a functioning bot which can move around and attack players or other bots. | ||
{{note|The bots are kicked after death.}} | |||
{{warning|This entity appears to be unfinished as indicated by its broken functionality.}} | |||
{{ | {{confirm|This entity may have worked previously, but may have been since broken by an update.}} | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Bot Name|string| | {{KV|Bot Name|string|Name of the bot.}} | ||
{{ | :{{bug|Creates random gibberish names if specified, otherwise it is named TFBot(number).}} | ||
{| | {{KV|Class|string|Class of the bot. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.}} | ||
:{{bug|Does not function, always picks a random class. SetClass input works, however.}} | |||
{{KV|Team|string|Team of the bot. Options are: auto, red and blue.}} | |||
:{{bug|Does not function, always picks the red team. SetTeam input works, however.}} | |||
{{KV|Spawn on start|boolean|Spawn a bot when the round starts.}} | |||
:{{bug|Does not function, use the Spawn input instead.}} | |||
{{KV|Respawn delay|float|If non-zero, respawn a bot N seconds after it dies.}} | |||
:{{bug|Cannot function since the bot is kicked on death.}} | |||
{{KV|Action point|target_destination|Name of a [[bot_action_point]] to tell a bot to move to it when it spawns in.}} | |||
:{{bug|Does not function.}} | |||
|} | |||
{{KV|Team| | |||
{| | |||
{{KV|Spawn on start|boolean|Spawn | |||
{{KV|Respawn delay|float | |||
{{KV|Action point|target_destination| | |||
== Inputs == | == Inputs == | ||
{{IO|SetTeam| | {{IO|SetTeam|Changes the bot team immediately. Options are: auto, red and blue.|param=string}} | ||
{{IO|SetClass|Change the bot | {{IO|SetClass|Change the bot class immediately. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.|param=string}} | ||
{{IO|SetMovementGoal|Tell | {{IO|SetMovementGoal|Tell a bot to move to the given goal.|param=target_destination}} | ||
{{IO|Spawn|Spawn a | :{{bug|Does not function.}} | ||
{{IO|Delete|Delete | {{IO|Spawn|Spawn a bot at this bot_proxy.}} | ||
{{IO|Delete|Delete any existing bots from this bot_proxy.}} | |||
== Outputs == | == Outputs == | ||
{{IO|OnSpawned|Sent when | {{IO|OnSpawned|Sent when a TFBot has spawned.}} | ||
{{IO|OnInjured|Sent when | {{IO|OnInjured|Sent when a TFBot has been injured.}} | ||
{{IO|OnKilled|Sent when | :{{bug|Does not function.}} | ||
{{IO|OnAttackingEnemy|Sent when | {{IO|OnKilled|Sent when a TFBot has been killed.}} | ||
{{IO|OnKilledEnemy|Sent when | :{{bug|Does not function.}} | ||
{{IO|OnAttackingEnemy|Sent when a TFBot has started attacking an enemy.}} | |||
:{{bug|Does not function.}} | |||
{{IO|OnKilledEnemy|Sent when a TFBot has killed an enemy.}} | |||
:{{bug|Does not function.}} | |||
== See also == | == See also == | ||
* [[bot_action_point]] | * [[bot_action_point]] |
Revision as of 10:00, 4 June 2018
bot_proxy
is a point entity available in Team Fortress 2. It creates a functioning bot which can move around and attack players or other bots.



Keyvalues
- Bot Name ([todo internal name (i)]) <string>
- Name of the bot.
Bug:Creates random gibberish names if specified, otherwise it is named TFBot(number). [todo tested in ?]
- Class ([todo internal name (i)]) <string>
- Class of the bot. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.
Bug:Does not function, always picks a random class. SetClass input works, however. [todo tested in ?]
- Team ([todo internal name (i)]) <string>
- Team of the bot. Options are: auto, red and blue.
Bug:Does not function, always picks the red team. SetTeam input works, however. [todo tested in ?]
- Spawn on start ([todo internal name (i)]) <boolean>
- Spawn a bot when the round starts.
Bug:Does not function, use the Spawn input instead. [todo tested in ?]
- Respawn delay ([todo internal name (i)]) <float>
- If non-zero, respawn a bot N seconds after it dies.
Bug:Cannot function since the bot is kicked on death. [todo tested in ?]
- Action point ([todo internal name (i)]) <targetname>
- Name of a bot_action_point to tell a bot to move to it when it spawns in.
Bug:Does not function. [todo tested in ?]
Inputs
- SetTeam <string >
- Changes the bot team immediately. Options are: auto, red and blue.
- SetClass <string >
- Change the bot class immediately. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.
- SetMovementGoal <targetname >
- Tell a bot to move to the given goal.
Bug:Does not function. [todo tested in ?]
- Spawn
- Spawn a bot at this bot_proxy.
- Delete
- Delete any existing bots from this bot_proxy.
Outputs
- OnSpawned
- Sent when a TFBot has spawned.
- OnInjured
- Sent when a TFBot has been injured.
Bug:Does not function. [todo tested in ?]
- OnKilled
- Sent when a TFBot has been killed.
Bug:Does not function. [todo tested in ?]
- OnAttackingEnemy
- Sent when a TFBot has started attacking an enemy.
Bug:Does not function. [todo tested in ?]
- OnKilledEnemy
- Sent when a TFBot has killed an enemy.
Bug:Does not function. [todo tested in ?]