Bot proxy: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Fixed up a few keyvalues)
Line 6: Line 6:


== Keyvalues ==
== Keyvalues ==
{{KV|bot_name|string|The bot's player name}}
{{KV|Bot Name|string|The bot's player name}}
{{KV|team|TFTeam|...}}
{{KV|Class|TFClass|...}}
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
Line 32: Line 32:
| 9 || engineer
| 9 || engineer
|}
|}
{{KV|class|TFClass|...}}
{{KV|Team|TFTeam|...}}
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
Line 43: Line 43:
| 3 || Blue
| 3 || Blue
|}
|}
{{KV|spawn_on_start|boolean|Spawn on start|Spawn this bot when the round starts [ 1 = YES / 0 = NO ]}}
{{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|Respawn delay|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.}}
{{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 ==
== Flags ==

Revision as of 11:11, 7 September 2017

Documentation was created by... --Nico (talk) 18:32, 1 April 2017 (UTC)

Team Fortress 2 bot_proxy is a point entity available in Team Fortress 2 Team Fortress 2.

Keyvalues

Bot Name ([todo internal name (i)]) <string>
The bot's player name
Class ([todo internal name (i)]) <TFClass>
...
Index String
0 auto
1 scout
2 sniper
3 soldier
4 demoman
5 medic
6 heavyweapons
7 pyro
8 spy
9 engineer
Team ([todo internal name (i)]) <TFTeam>
...
Index String
1 Auto
2 Red
3 Blue
Spawn on start ([todo internal name (i)]) <boolean>
Spawn on start
Respawn delay ([todo internal name (i)]) <float>
Respawn delay
Action point ([todo internal name (i)]) <targetname>
Put the name of a bot_action_point here to tell the bot to move to it when it spawns in.

Flags

Inputs

SetTeam <stringRedirectInput/string>
Change the bot's team (0:auto, 1:red, 2:blue)
SetClass <stringRedirectInput/string>
Change the bot's class (auto, soldier, pyro, etc)
SetMovementGoal <targetnameRedirectInput/string>
Tell the bot to move to the given goal.
Spawn
Spawn a TFBot at this position
Delete
Delete the existing TFBot

Outputs

OnSpawned
Sent when the TFBot has spawned into the environment
OnInjured
Sent when the TFBot has been injured
OnKilled
Sent when the TFBot has been killed
OnAttackingEnemy
Sent when the TFBot has started attacking an enemy
OnKilledEnemy
Sent when the TFBot has killed an enemy

See also