Bot proxy: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:bot_proxy}} {{toc-right}} <small>Documentation was created by... --~~~~</small> {{tf2 point|bot_proxy}} == Keyvalues == {{KV|bot_name|string|The bot's player...")
 
m (Setting bug notice hidetested=1 param on page where the bug might not need tested in param specified)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:bot_proxy}}
{{this is a|point entity|game=Team Fortress 2|name=bot_proxy}} It creates a functioning bot which can move around and attack players or other bots.
{{toc-right}}
{{note|The bots are kicked after death.}}
<small>Documentation was created by... --[[User:Nico|Nico]] ([[User talk:Nico|talk]]) 18:32, 1 April 2017 (UTC)</small>
{{warning|This entity appears to be unfinished as indicated by its broken functionality, [[bot_generator]] or [[bot_controller]] should be used instead.}}
 
{{confirm|This entity may have worked previously, but may have been since broken by an update.}}
{{tf2 point|bot_proxy}}


== Keyvalues ==
== Keyvalues ==
{{KV|bot_name|string|The bot's player name}}
{{KV|Bot Name|string|Name of the bot.}}
{{KV|team|TFTeam|...}}
:{{bug|hidetested=1|Creates random gibberish names if specified, otherwise it is named TFBot(number).}}
{| class="wikitable sortable"
{{KV|Class|string|Class of the bot. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.}}
|-
:{{bug|hidetested=1|Does not function, always picks a random class. SetClass input works, however.}}
! Index !! String
{{KV|Team|string|Team of the bot. Options are: auto, red and blue.}}
|-
:{{bug|hidetested=1|Does not function, always picks the red team. SetTeam input works, however.}}
| 0 || auto
{{KV|Spawn on start|boolean|Spawn a bot when the round starts.}}
|-
:{{bug|hidetested=1|Does not function, use the Spawn input instead.}}
| 1 || scout
{{KV|Respawn delay|float|If non-zero, respawn a bot N seconds after it dies.}}
|-
:{{bug|hidetested=1|Cannot function since the bot is kicked on death.}}
| 2 || sniper
{{KV|Action point|target_destination|Name of a [[bot_action_point]] to tell a bot to move to it when it spawns in.}}
|-
:{{bug|hidetested=1|Does not function.}}
| 3 || soldier
|-
| 4 || demoman
|-
| 5 || medic
|-
| 6 || heavyweapons
|-
| 7 || pyro
|-
| 8 || spy
|-
| 9 || engineer
|}
{{KV|class|TFClass|...}}
{| class="wikitable sortable"
|-
! Index !! String
|-
| 1 || Auto
|-
| 2 || Red
|-
| 3 || Blue
|}
{{KV|spawn_on_start|boolean|Spawn on start|Spawn this bot when the round starts [ 1 = YES / 0 = NO ]}}
{{KV|respawn_interval|float|Respawn delay|If nonzero, respawn this bot N seconds after it dies}}
{{KV|action_point|target_destination|Put the name of a bot_action_point here to tell the bot to move to it when it spawns in.}}
 
== Flags ==


== Inputs ==
== Inputs ==
{{IO|SetTeam|Change the bot's team (0:auto, 1:red, 2:blue)|param=string}}
{{I|SetTeam|Changes the bot team immediately. Options are: auto, red and blue.|param=string}}
{{IO|SetClass|Change the bot's class (auto, soldier, pyro, etc)|param=string}}
{{I|SetClass|Change the bot class immediately. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.|param=string}}
{{IO|SetMovementGoal|Tell the bot to move to the given goal.|param=target_destination}}
{{I|SetMovementGoal|Tell a bot to move to the given goal.|param=target_destination}}
{{IO|Spawn|Spawn a TFBot at this position}}
:{{bug|hidetested=1|Does not function.}}
{{IO|Delete|Delete the existing TFBot}}
{{I|Spawn|Spawn a bot at this bot_proxy.}}
{{I|Delete|Delete any existing bots from this bot_proxy.}}


== Outputs ==
== Outputs ==
{{IO|OnSpawned|Sent when the TFBot has spawned into the environment}}
{{O|OnSpawned|Sent when a TFBot has spawned.}}
{{IO|OnInjured|Sent when the TFBot has been injured}}
{{O|OnInjured|Sent when a TFBot has been injured.}}
{{IO|OnKilled|Sent when the TFBot has been killed}}
:{{bug|hidetested=1|Does not function.}}
{{IO|OnAttackingEnemy|Sent when the TFBot has started attacking an enemy}}
{{O|OnKilled|Sent when a TFBot has been killed.}}
{{IO|OnKilledEnemy|Sent when the TFBot has killed an enemy}}
:{{bug|hidetested=1|Does not function.}}
{{O|OnAttackingEnemy|Sent when a TFBot has started attacking an enemy.}}
:{{bug|hidetested=1|Does not function.}}
{{O|OnKilledEnemy|Sent when a TFBot has killed an enemy.}}
:{{bug|hidetested=1|Does not function.}}


== See also ==
== See also ==
* [[bot_action_point]]
* [[bot_action_point]]
[[Category:AI]

Latest revision as of 07:16, 20 May 2025

bot_proxy is a point entity available in Team Fortress 2 Team Fortress 2. It creates a functioning bot which can move around and attack players or other bots.

Note.pngNote:The bots are kicked after death.
Warning.pngWarning:This entity appears to be unfinished as indicated by its broken functionality, bot_generator or bot_controller should be used instead.
Confirm:This entity may have worked previously, but may have been since broken by an update.

Keyvalues

Bot Name ([todo internal name (i)]) <string>
Name of the bot.
Icon-Bug.pngBug:Creates random gibberish names if specified, otherwise it is named TFBot(number).
Class ([todo internal name (i)]) <string>
Class of the bot. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.
Icon-Bug.pngBug:Does not function, always picks a random class. SetClass input works, however.
Team ([todo internal name (i)]) <string>
Team of the bot. Options are: auto, red and blue.
Icon-Bug.pngBug:Does not function, always picks the red team. SetTeam input works, however.
Spawn on start ([todo internal name (i)]) <boolean>
Spawn a bot when the round starts.
Icon-Bug.pngBug:Does not function, use the Spawn input instead.
Respawn delay ([todo internal name (i)]) <float>
If non-zero, respawn a bot N seconds after it dies.
Icon-Bug.pngBug:Cannot function since the bot is kicked on death.
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.
Icon-Bug.pngBug:Does not function.

Inputs

SetTeam <stringRedirectInput/string>
Changes the bot team immediately. Options are: auto, red and blue.
SetClass <stringRedirectInput/string>
Change the bot class immediately. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.
SetMovementGoal <targetnameRedirectInput/string>
Tell a bot to move to the given goal.
Icon-Bug.pngBug:Does not function.
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.
Icon-Bug.pngBug:Does not function.
OnKilled
Sent when a TFBot has been killed.
Icon-Bug.pngBug:Does not function.
OnAttackingEnemy
Sent when a TFBot has started attacking an enemy.
Icon-Bug.pngBug:Does not function.
OnKilledEnemy
Sent when a TFBot has killed an enemy.
Icon-Bug.pngBug:Does not function.

See also