ボット

From Team Fortress Wiki
< Bots
Revision as of 02:08, 11 November 2021 by 唐繰 (talk | contribs) (Added translation/翻訳追加)
Jump to: navigation, search
Dustbowl Training にいるソルジャーのボット
この記事はTeam Fortress 2上でにコンピュータ側で操作するボットについて記載しています。
人間のチームメイトは時にお前を責める。じゃあこの不愛想なカラクリ人形共はどうだ?そうだ、奴らだって物は見える。しかし口を利くことは一切ない。お前がいかにポンコツ野郎だったか、奴らは死ぬまで誰にも明かすことは無いのだ!
ソルジャー

Bot もしくはBOT(ボット)は、サーバー上でコンピューターに操作されているプレイヤーの事です。Team Fortress 2には2種類のボットが存在し、それぞれAI(人工知能)ボットとパペット(人形)ボットです。AIボットはプレイヤーの動きを真似るように作られている高度な人工知能で、チートをオンにしなくても使用可能です。パペットボットはAIコードがありませんが、テストと練習には大変便利です。パペットボットは出現させるのにサーバーのチートをオンにする必要があり、 実績の達成に用いることは出来ません。

AI ボット

AIボットは人間のプレイヤーの動きを再現するように設計されており、 直接操作をすることは出来ません。 さらに、クラスはランダムで選ばれます。 このボットのAIコードは "Left 4 Dead" シリーズのプレイヤーボットと感染者の洗練されたAIコードをベースに作られました。[1] AIボットはサーバーのチートをオンにする必要がありません。 従って、一部例外を除いて実績の達成に用いることが出来ます。 例えばボットは殺された際にキルカメラを見ることが出来ないため、プレイヤーはキルカメラに関する実績を達成する事が出来ません。また、ストレンジクオリティの武器でボットをキルした際、その武器に Strange Part を装着していない限り、キル数にはカウントされません。Strange Part を装着してキルした場合は、武器のメインのカウンターではなく Strange Part にカウントされます。

AIボットには、「イージー」から「エキスパート」まで4種類のスキルが存在します。Steam のコミュニティガイドにて、Sigsegv氏が各スキルの違いや詳細について解説(英語)してくれています。

プレイヤーは以下の通り、AIボットを間接的に操作することができます。

  • セットアップタイム時にプレイヤーが照準で焦点をあわせた味方、 または敵のボットは挑発を行います。
  • メディックボットは "メディック!" のボイスコマンドを使用したプレイヤーを回復します。
  • メディックボットが自分を回復していて、かつチャージゲージが満タンの時に "ゴー!ゴー!ゴー!" または "チャージを頼む!" のボイスコマンドを使用するとメディックボットはすぐにユーバーチャージを展開します。
  • メディックボットのチャージゲージが満タンの時に、メディックボット自身もしくはその回復対象が大ダメージを受けた際はすぐにユーバーゲージを展開します。
  • ボットの近くで High Five!コンガなどの挑発を実行するとボットはそれに参加します。

パスファインディング

公式がボットの動きをサポートしているマップ

マップ ゲームモード ファイル名
Dustbowl 攻撃/防御 cp_dustbowl
Gorge 攻撃/防御 cp_gorge
Gorge Event 攻撃/防御 cp_gorge_event
Mann Manor 攻撃/防御 cp_manor_event
Mercenary Park 攻撃/防御 cp_mercenarypark
Mossrock 攻撃/防御 cp_mossrock
Badlands (CP) コントロールポイント cp_badlands
Foundry (CP) コントロールポイント cp_foundry
Granary (CP) コントロールポイント cp_granary
Gullywash コントロールポイント cp_gullywash_final1
Metalworks コントロールポイント cp_metalworks
Process コントロールポイント cp_process_final
Snakewater コントロールポイント cp_snakewater_final1
Sunshine コントロールポイント cp_sunshine
Vanguard コントロールポイント cp_vanguard
Turbine 旗取り ctf_turbine
Badlands (KOTH) キングオブザヒル koth_badlands
Brazil キングオブザヒル koth_brazil
Eyeaduct キングオブザヒル koth_viaduct_event
Ghost Fort キングオブザヒル koth_lakeside_event
Kong King キングオブザヒル koth_king
Lakeside キングオブザヒル koth_lakeside_final
Laughter キングオブザヒル koth_slaughter_event
Lazarus キングオブザヒル koth_lazarus
Moldergrove キングオブザヒル koth_undergrove_event
Moonshine Event キングオブザヒル koth_moonshine_event
Nucleus (KOTH) キングオブザヒル koth_nucleus
Probed キングオブザヒル koth_probed
Sawmill (KOTH) キングオブザヒル koth_sawmill
Slasher キングオブザヒル koth_slasher
Viaduct キングオブザヒル koth_viaduct
Badwater Basin ペイロード pl_badwater
Barnblitz ペイロード pl_barnblitz
Bloodwater ペイロード pl_bloodwater
Brimstone ペイロード pl_fifthcurve_event
Enclosure ペイロード pl_enclosure_final
Gold Rush ペイロード pl_goldrush
Gravestone ペイロード pl_rumble_event
Hoodoo ペイロード pl_hoodoo_final
Precipice[OfficialSupport 1] ペイロード pl_precipice_event_final
Swiftwater ペイロード pl_swiftwater_final1
Thunder Mountain ペイロード pl_thundermountain
Upward ペイロード pl_upward
Pier ペイロード pl_pier
Wutville[OfficialSupport 1] ペイロード pl_wutville_event
  1. a b Precipice と Wutville にて、BLUボットがとあるスポーン地点を離れる際に動けなくなってしまいます。なのでBLUチームがほとんどもしくは全く死なず、スポーン地点の付近にカートがある場合のみBLUチームが勝利できるようになっています。

サポートされていないマップでボットを使用する方法

  1. コンソールに "sv_cheats 1" と入力する
  2. コンソールに "nav_generate" と入力する
  3. ゲームのAIパスが自動生成されるのを待つ
  4. Mマップが再ロードされる (ナビゲーションファイルは保存されるため、前のステップを繰り返す必要はありません)
  5. コンソールを開き、 ""tf_bot_add <数値>"" のように入力してボットを追加する

注)既にボットが居る状態でナビゲーションメッシュをいじると、ゲームが落ちる可能性があります。

上記の手順を1度行ったマップなら、ボット追加コマンド"tf_bot_add <number>" 以外の手順を繰り返す必要はありません。

自動生成されたメッシュは、コントロールポイント、キングオブザヒル、ペイロードおよび旗取りのゲームモードにてその効果を発揮します。 Mannpower マップの場合、ボットは旗取りモードとして動きます。しかしボットは Grappling Hook を使わず、パワーアップを取得しても効果的に使う事が出来ません。

公式がボットの動きをサポートしていないマップ

AIボットコマンド

より詳細なコマンドの情報については、こちらをご覧ください。

サポートされているマップでは、サーバー管理者がコンソールに以下のコマンドを入力することでAIボットを使用できます。[2]

コマンド 解説
tf_bot_add このコマンドを使うと、ランダムに選ばれたクラスが任意のチームに参加します。ボットの名前もランダムに選ばれます。
構文
tf_bot_add [<count>] [<class>] [<team>] [<difficulty>] [<name>]
変数
<count>
追加したいボットの数を指定できます。何も入力しなかった場合は1体スポーンします。
サーバーの最大人数を超えてしまう数値を入力した場合、エラーメッセージが表示されて失敗します。
mp_teams_unbalance_limitの値が低すぎる場合、片方のチームだけにボットを複数作成しようとしても自動でオートバランスが行われます。
<class>
ボットのクラスを指定できます。クラス名を入力する場合はDemomanEngineerHeavyWeaponsMedicPyroScoutSoldierSniperSpyという表記を使います。
<team>
ボットを追加するチームを指定できます。チーム名を入力する場合はredおよびblueという表記を使います。
<difficulty>
ボットのレベル(難易度)を指定できます。指定する場合はeasynormalhardexpertという表記を使います。
<name>
ボットの名前を指定できます。
tf_bot_add 3 heavyweapons red easy を入力すれば、EasyレベルのREDヘビーを3体追加できます。
tf_bot_difficulty ゲームに追加するボットの難易度をあらかじめ決められます。
構文
tf_bot_difficulty <level>
変数
<level>
ボットの難易度を指定できます。それぞれ0で初級、1で中級、2で上級、3でエキスパートを選べます。デフォルトだと1です。
tf_bot_difficulty 2 を入力すれば、以降追加されるボットの難易度は上級になります。
tf_bot_fire_weapon_allowed ボットが武器を使用するかどうか指定できます。武器の使用を無効にした場合、ボットはメディガンなどの敵にダメージを与えない武器しか使えなくなります。例外としてメディック注射銃を使うことができます。デモマンは、既に設置していた粘着爆弾を爆破させることはできますが、追加で爆弾を設置することはできません。
構文
tf_bot_fire_weapon_allowed <integer>
変数
<integer>
1か0で指定します。デフォルトは1(武器の使用有効)です。
tf_bot_fire_weapon_allowed 0 を入力すれば、例外を除きボットは武器を使用しなくなります。
tf_bot_force_class クラス名を指定すれば、現存のボット全員が指定したクラスに置き換わります。
構文
tf_bot_force_class <class>
変数
<class>
ボットのクラスを指定できます。クラス名を入力する場合はDemomanEngineerHeavyWeaponsMedicPyroScoutSoldierSniperSpyという表記を使います。デフォルトは"" (空白)です。
tf_bot_force_class medic を入力すれば、全てのボットがメディックに置き換わります。
tf_bot_force_jump ボットにジャンプし続けるように指示できます。
構文
tf_bot_force_jump <integer>
変数
<integer>
1か0で指定します。デフォルトは0(無効)です。
tf_bot_force_jump 1 を入力すれば、ボットがジャンプし続けます。
tf_bot_join_after_player 有効にした場合、ボットはプレイヤーが参加するまで待ちます。
構文
tf_bot_join_after_player <integer>
変数
<integer>
1か0で指定します。デフォルトは1(有効)です。
tf_bot_join_after_player 0 を入力すれば、チームにプレイヤーが居なくてもボットはゲームに参加するようになります。
tf_bot_keep_class_after_death 0の場合、ボットは常にクラスを変えてリスポーンします。
構文
tf_bot_keep_class_after_death <integer>
変数
<integer>
1か0で指定します。デフォルトは0(無効)です。
tf_bot_keep_class_after_death 1 を入力すれば、ボットはクラスを変更しません。
tf_bot_kick ボットを1人、もしくは全員削除します。
構文
tf_bot_kick <name/all>
変数
<name/all>
削除したいボットの名前もしくは全員かを指定できます。
tf_bot_kick CEDA を入力すれば、「CEDA」という名前のボットを消すことができます。tf_bot_kill のコマンドと同様、「Black Mesa」などの2単語で構成される名前を入力する際は tf_bot_kick "Black Mesa" という風に引用符(””)で囲む必要があります。
tf_bot_kill ボットを1人、もしくは全員殺します。
構文
tf_bot_kill <name/all>
変数
<name/all>
殺したいボットの名前もしくは全員かを指定できます。
tf_bot_kill CEDA tf_bot_kill CEDA を入力すれば、「CEDA」という名前のボットを殺すことができます。tf_bot_kick のコマンドと同様、「Black Mesa」などの2単語で構成される名前を入力する際は tf_bot_kill "Black Mesa" という風に引用符(””)で囲む必要があります。
tf_bot_melee_only ボットが近接武器のみを使うかどうか指定できます。
構文
tf_bot_melee_only <integer>
変数
<integer>
1か0で指定します。デフォルトは0(無効)です。
tf_bot_melee_only 1 を入力すれば、近接武器のみを使用するボットを生成できます。
tf_bot_prefix_name_with_difficulty 0以外の場合、名前の前にそれぞれの難易度表記が付いたボットを生成できます。
構文
tf_bot_prefix_name_with_difficulty <integer>
変数
<integer>
1か0で指定します。デフォルトは0(無効)です。
tf_bot_prefix_name_with_difficulty 1 を入力すれば、"Normal Aimbot" や "Expert Saxton Hale" といった風にボットの名雨に前に難易度表記を付けられます。
tf_bot_quota ボットの上限数を指定できます。tf_bot_quota_mode が "fill" もしくは "match" の場合のみ設定できます。
構文
tf_bot_quota <integer>
変数
<integer>
0~サーバー内プレイヤー上限数の間の数値で指定します。デフォルトは0です。
tf_bot_quota 2 と、tf_bot_quota_modematch と指定した場合、プレイヤー1人につき2体のボットが追加されます。
tf_bot_quota_mode ボットの総数の調整ができます。
構文
tf_bot_quota_mode<normal/fill/match>
変数
normal/fill/match
「normal」を指定すると、サーバーは明確な指示が無い限り、勝手にボットを追加もしくは削除することはありません。また bot_quota も無効になります。
「fill」を指定すると、サーバーはN人のボットをゲームに参加させるよう調整します。Nの値は bot_quota で指定します。
「match」を指定すると、サーバーはボットとプレイヤーの比率を1:Nになるよう調整します。Nの値は bot_quota で指定します。
tf_bot_quota_mode fill を入力すれば、(bot_quota - 人間のプレイヤー数)人のボットをゲームに参加させることができます。
tf_bot_taunt_victim_chance ボットが敵を殺した際に挑発を行う頻度を指定できます。
構文
tf_bot_taunt_victim_chance <integer>
変数
<integer>
0から100を指定できます。デフォルトは20です。
tf_bot_taunt_victim_chance 0 を入力すれば、ボットは敵を殺した後に挑発をしません。
tf_bot_taunt_victim_chance 100 を入力すれば、ボットは敵を殺すたびに挑発をします。
tf_bot_warp_team_to_me 自分のチームのボットを自分の居る位置にテレポートできます。sv_cheats 1の場合のみ有効です。
構文
tf_bot_warp_team_to_me
変数
なし

AIボットの現状について

AIボットは完全にリリースされている状態です。[要出典]Hatless アップデートを経て、かつてバグの多かったスパイボットを含め、全てのボットが正常に動くようになりました。AIボットはキングオブザヒルマップのほとんどと、ペイロードマップのいくつか、そして攻撃/防衛マップのDustbowlGorge旗取りマップ、そしてMann Manorで正常に機能します。 (最後の2つは、tf_bot_add をコマンドに入力する必要があります。)サポートされていないマップでボットを使用する際は、とある手順を踏めば可能です。ただし人間のように動いてくれるとは限りません。

ボットは Hightower にある手すりを飛び越えられず、またスポーンした後にどこかにスタックしてしまうので、どのペイロードレースマップでも正しく動いてくれません。またボットは、他のPLRマップにてダンスパーティーをします(これは将来的に修正されるかもしれません)。[要出典]

AIボットの行動パターン

  • 現在、ボットのロードアウトはデフォルトのみです (カスタムMODもしくはプラグインを使えばデフォルト以外のロードアウトにできます)。
  • 初級難易度のボットはサブ武器、近接武器をめったに使いません。上級難易度のボットはメイン武器の弾薬が切れた場合や、敵との距離を考慮した場合にサブ武器に切り替えて使用します。
  • ボットは特殊ジャンプ(ロケットジャンプ等)や装置の運搬をしません。
  • ボットは敵を殺した直後に挑発をする事があります。周りからの攻撃を受けていても挑発を実行します。 また、ボットは敵の機密情報を運んでいる際に挑発はしません。Mann vs. Machineロボット達も同じ振る舞いをします。
  • スパイのボット(およびプレイヤー)の変装に、他のボットは一切気付きません。しかし彼らに触れてしまったり、サッピングや攻撃、 および透明化をするとそれを目撃したボット全員に気付かれてしまいます。見えない場所で変装するか、死ぬか、Dead Ringerで擬死でもしないと、ボットたちは誰がスパイなのかをずっと覚えています。
  • 中級以上の難易度のパイロは、敵の攻撃に対して圧縮ブラストを使ってきます。
  • スナイパーやエンジニアが「メディック!」と呼びかけても、メディックボットはまず他のクラスを回復しに行きます。
  • メディックボットは人間のプレイヤーのパイロ、ソルジャー、デモマン、ヘビーを優先的にポケットしてくれます。他のクラスを選んだ場合はあまりポケットしてくれません。
  • チャージゲージが満タンなメディックボットは、回復対象が傷つくとすぐさまユーバーチャージを展開します。このシステムは Mann vs. Machineユーバー・メディックにも適用されています。
  • ボットはセットアップタイムに攻撃することはありません(例外としてデモマンボットはセットアップタイム中に粘着爆弾を仕掛けます)。
  • エンジニアボットはテレポーターをアップグレード(もしくはサッパー除去)しません。また、セントリーガンを修復しない時もあります。
  • エンジニアボットは、仲間のエンジニアの装置が自分のターゲットの障害物にならない限り、仲間の装置を修理もしくはアップグレードする事はありません。
  • 攻撃/防衛もしくはペイロードマップのセットアップタイム中にて、攻撃チームのエンジニア、スナイパー、スパイ以外のボットはリスポーン位置から動きません。
  • スパイボットは自身の存在がバレた場合、バックスタブを諦めてリボルバーを撃ちながら後退します。
  • デモマンボットはセントリーガンで1回死ぬとその設置位置を記憶して、セントリーガンの射程圏外に立ち粘着爆弾を仕掛けて破壊を試みます。この際に壁や天井が障害物になる事もあります。
  • スナイパーボットは、スコープを覗いても敵が居なかった場合、ボイスコマンドの「ネガティブ」をつぶやきます。

バグ

  • ボットは壁に向かって歩いたり、攻撃したりする。
  • スパイボットもしくはプレイヤーが透明化/解除および変装/解除すると、他のボットはよそをしていても背後を振り向きこちらを見る。これはスパイボットもしくはプレイヤーが発する足音や武器の音に反応してこちらを見ているわけではない。
  • まれにテレポーターをボットが取り合い、スタックしてしまうことがある。
  • ボットが「スパイだ!」や「前進!」のボイスコマンドを使用しても、そのテキストは表示されない。
  • プレイヤーを回復中メディックボットは、自身のヘルスがかなり低下しても攻撃を避けたりヘルスキットを拾ったりしない。
  • ボットは挑発中に動けるので、Holiday Punchが効かない。
  • 攻撃を受けたメディックボットは注射銃で反撃できない事があり、たまに骨用電ノコを構えたり、ごくまれにメディガンを使うことがある。
  • メディックボットは注射銃を使う際に、エイムが定まらなかったり、発射物の重力を補正できなかったりする。これはAIコードが注射銃をヒットスキャン武器として認識できていない可能性がある。
  • スパイボットは難易度にかかわらず、透明化した敵のスパイ(ボットまたはプレイヤー)が正体を現した際にそれを見て後を追うことができてしまう。
  • スパイが敵チームに居ないクラスに変装しても(ボットはこのような事はしない)、敵に触れるとスパイだと言われてしまう。
  • ボットはオートバランスに反することは絶対ない。特定のチームに特定のクラスのボットを追加したいならば mp_teams_unbalance_limit の値を0にする必要がある。
  • エンジニアボットは自分が建てた装置を、敵に破壊されるまで放置してしまう事がある。
  • ヘビーボットは弾薬が切れてもミニガンを回し続ける事がある(上級以下の難易度でよく起こる)。
  • 試合に負けたメディックボットは、虐殺タイムの最中に周りに敵が居なければ自殺する事がある。コマンドを使用してもプレイヤーはこれを真似できない。
  • ロードアウトメニューのプレビューをBLUチームに設定していると、REDのボットがBLUとして表示されてしまう。
  • ナビゲーションメッシュを生成しても、以下のマップではボットは正常に動かない。(スパイボットおよびスナイパーボットは動く可能性がある。)
  • 近接武器を構えたボットは、弾薬を補給しても近接武器を構えたままの事がある。
    • 対処としてそのボットを殺すか、ランダムにクラスを変更してやれば直る。
  • ジャングル・インフェルノ アップデート を経て、特定のコマンド(例えばtf_bot_add 5 pyro blue normalなど)で出現させたボットはリスポーン地点で死んでしまうようになった。対処として sv_cheats を1にし、tf_bot_reevaluate_class_in_spawnroom 0 を入力すると良い。

AIボット名

TFボットは様々な名前を持つようにプログラミングされており、TF2用語や Valve の他作品、もしくはプログラミング関係のワードにちなんだものが多いです。名前はSteamの掲示板でリクエストされています。

未使用の名前

これらの名前はリークされたソースコード版のTF2から見つかったもので、何らかの理由でゲームに導入されなかったものを含みます。

  • John Spartan
  • Leeloo Dallas Multipass
  • Sho'nuff
  • Bruce Leroy
  • CAN YOUUUUUUUUU DIG IT?!?!?!?!
  • Big Gulp, Huh?
  • Stupid Hot Dog
  • I'm your huckleberry
  • The Crocketeer

ボットの名前をプレイヤーが決める事も出来ます。例えば tf_bot_add heavyweapons blue "Blu Hoovy" と入力すると、「BLUチーム」に「Blu Hoovy」という名の「ヘビー」を追加することができます。

第三者ボット

現在TF2用に開発されているボットはRCbot2のみです。Cheeseh 氏によって開発および管理されており、このサイトで確認できます。

もしくは、[APG]財団のビルドを使う手もあります。このビルドはTF2の最新アップデートに対応しており、ボットが破損するのを防ぐことができます。しかしボットを正常に動かすためには最新の Hookinfo を探す必要があります。これを使用して、Hookinfo ツールから config.ini のオフセット値を調整してください。 (最新版は2020年6月19日の v1.3-APG)

ボットはウェイポイントシステムで動作するため、コマンドを使うのではなくあらかじめプレイヤーが手動でセットアップする必要があります。RCBot2は独自のボットなので通常のTFボットと一緒に動作させることも可能です。

RCBot2の特徴

  • ソルジャーボットはロケットジャンプ、デモマンボットは粘着ジャンプをすることができます。(マップにウェイポイントがある場合のみ)
  • エンジニアボットは旗取りマップやその他のマップで正しく動作します。
  • ボットは「ハンツマン」や「喉ごしガツン!アトミックパンチ」などのカスタムロードアウトを使用します。
  • ボットはスパイチェックをします。スパイがいずれかのボットに変装し、変装の対象になったボットがそれを目撃した場合、スパイを攻撃し始めます。
  • ボットは音声コマンドを使用します。TFボットと異なり、テキストログにも内容が表示されます。
  • ボットは Mann VS Machine の防衛側に参加できますが、アップグレードの購入はしません。
  • CPマップで遊ぶ際、ボットたちはラウンド開始まで動き回ります。まるで人間のプレイヤーのように、音声コマンドを発しながら近接武器でランダムに殴り合います。
  • エンジニアボットはある程度時間が経過すると装置を運搬できるようになります。
  • ボットのエイム力や度胸などの情報をカスタマイズすることが可能です。
  • エンジニアボットは自分のセントリーガンのアップグレードが完了すると、仲間のエンジニアのセントリーガンをアップグレードしたり、サッパーを除去したりしてくれます。
  • ボットがセントリーガンの標的にされて逃げ延びた場合、「前方にセントリーガン!」のボイスコマンドを使用します。
  • エンジニアボットはテレポーターをウェイポイントがある場所に設置し、またアップグレードも行います。
  • 時々、敵のメディックボットが変装したスパイを回復してしまうことがあります。
  • スパイボットが接近したターゲットが振り向いた場合、スパイボットは向こうがまたよそ見をするまで離れます。
  • スカウトボットはダブルジャンプができます。しかしソルジャーボットやデモマンボットと同様に、ウェイポイントが無いとできません。
  • スカウトボットは「喉ごしガツン!アトミックパンチ」を効果的に使用できます(いったん後退し、飲んでからまた前線に向かうなど)。
  • メディックボットはヘルスが減ったクラスを平等に回復してくれます。しかしソルジャーとヘビーは他のクラスより優先度が高いです。
  • ボットは仲間をバックスタブしたスパイを即座に攻撃しません。ボットはスパイを目で追うか、そのスパイが攻撃されているか確認しなくてはなりません。
  • ディスペンサーやメディガンで回復したボットは「ありがとよ!」のボイスコマンドを使用します。
  • ボットは頻繁に振り向いてスパイチェックをします。
  • RCBot2には「信用」システムが存在し、仲間がスパイか否かや、バックスタブに対応するため攻撃するか観察するかなどを考えます。
  • RCBot2はTFボットと違って、マリオカートやペイロードマップなどの複雑なマップに加え plr_hightower_event、sd_doomsday_event、sd_doomsday などのハロウィーンマップで正常に動きます。

RCBot2 Bugs

  • Due to the nature of the waypointing system, bot paths aren't as unpredictable as TFBots, and RCbot2 will often times end up running into another bot, leaving both of them stuck until either bot is killed.
    • Similarly, Spy bots may end up bumping into a player and not moving, due to how waypointing works. They can only navigate to the set point and are on a fixed track.
  • Engineer bots have a harder time placing down a Dispenser, and will do so of their own free will.
  • Demoman bots know if you are standing on one of their stickybomb traps, and will detonate them even if they can't see you.
  • Engineers might place their Sentry Gun facing the wrong direction.
  • If RCbot2 get knocked off to a location where there are no nearby waypoints, they will not move. The roof area of Nucleus is one example.
  • Bots will also say "Thanks!" when picking up a health kit.
  • Bots tend to lose move speed after swimming.
  • Bots can't predict the target's moves when shooting projectiles.
  • Medics don't stick close for long with their healing player patient, especially when UberCharged.
  • Spies don't perform aggressively or immediately use Sapper to destroy enemy Engineer Sentry Guns and Dispensers.
  • Some SourceMod plugins can conflict with RCBot2 smac_cvars.smx, but [APG]RoboCop[CL] has added the 'sm plugins unload <PLUGIN-NAME>' inside the config.ini to avoid those conflicting issues.

Be sure to report any bugs to RCBot Website or Bots-United Discord, as Team Fortress Wiki and Valve Corporation hold no responsibility nor are affiliated with RCBot2.

パペットボット

Puppet bots have no AI code and cannot move or act on their own. These bots can be used like puppets though, players can manipulate them to follow the player's commands such as following the player around and firing their weapons. Puppet bots are mainly used for testing purposes and can also create stunning visuals if manipulated accordingly, as seen here.

パペットボットコマンド

Not all of the following commands work; for clarity, the complete list of commands is included.

These commands may or may not work for AI bots as well. Note: entering the command without any values will display the command's current setting and a brief description.

Command Description
bot This command will create a bot on the given team with the specified class and name. If team or name is omitted, they will be assigned randomly.
Syntax
bot -team <teamname/number> -class <classname> -name <botname>
Parameters
-team teamname/number
Specifies the team name or number to assign the bot. Where name/number can be RED or 1, BLU or 0
-class classname
The classname of the class can be Demoman, Engineer, Heavy, Medic, Pyro, Scout, Soldier, Sniper, or Spy
-name botname
botname can be anything. If there is already someone with the same name, an incremental number (starting at 1) surrounded with parenthesis will be added to the beginning of the name. For example, joe, (1)joe, (2)joe, etc. If no name is given then the name will be "bot" followed by a number starting with 01; for example, the first bot will be bot01, the next bot02, and so on.
Example
bot -team red -class Engineer -name joe
bot_changeclass Force all bots to change to the specified class.

Does not seem to be implemented, nothing happens.

bot_changeteams

Make all bots change teams. This forces all the bots to switch teams. If a bot was on the RED team then it will now be on the BLU team and vice versa.

bot_command Sends specified command on behalf of specified bot.
Syntax
bot_command <botname> <console command>
botname is the name or id of the bot to send the command to.
console command can be any of the ones listed in Scripting#Console Commands.
Example 1
bot_command bot01 "voicemenu 0 0"
Example 2
bot_command bot01 "taunt"
The slot commands (slot1, slot2, etc.) do not work with bot_command, however with bot_forcefireweapon, all bots in that class can be made to switch to a weapon and start firing, then made to stop. Only the entire group of bots in that class can be made to do so, however.
bot_defend Set to a team number, and that team will all keep their combat shields raised.

For instance, Heavies will spin their miniguns.

bot_dontmove Bots are allowed or prevented from moving. When set to 1 the bots cannot move but they can still turn and jump. Note with a combination of this command and bot_mimic bots can be moved to certain areas and left there.
Syntax
bot_dontmove <0/1>
Bot is allowed to move, or not.
Example
bot_dontmove 1
bot_flipout When on, this command will make the bots fire the current weapon selected. Default is to use primary_fire, but if bot_forceattack2 is set to 1 then secondary fire is used.
Syntax
bot_flipout <0/1>
On when set to 1. Off when set to 0.
Example
bot_flipout 1
bot_forceattack This will make all the bots automatically fire whatever weapon they currently have selected. If bot_forceattack2 is set to 0, then the bots will execute primary_fire. If bot_forceattack2 is set to 1, then the bots will execute secondary_fire.

Note this does nothing if bot_mimic is active (set to 1).

Syntax
bot_forceattack <0/1>
Bot will not fire if set to 0 and fire repeatedly if set to 1.
Example
bot_forceattack 1
bot_forceattack2 This will make all the bots execute secondary_fire on whatever weapon they currently have selected when bot_forceattack is set to 1.
Syntax
bot_forceattack2 <0/1>
Bot will use its weapon's secondary_fire when set to 1, primary_fire when set to 0
Example
bot_forceattack2 1
bot_forceattackon When firing, do not tap fire, hold it down. When this command is set to 0, the bot acts like it is continuously tapping the fire button (useful for the Pistol, but not for the Heavy's Minigun). If this command is set to 1, the bots acts as if it is holding down the fire button (useful for the Heavy's Minigun).
Syntax
bot_forceattackon <0/1>
On when set to 1. Off when set to 0.
Example
bot_forceattackon 1
bot_forceattack_down When firing, don't tap fire, hold it down. If this is set to 0 then the bot will act like they are continuously tapping the fire button (useful for the Stickybomb Launcher). If this is set to 1 then the bot will act as if it is holding down the fire button (useful for the Minigun).
Syntax
bot_forceattack_down <0/1>
On when set to 1, off when set to 0
Example
bot_forceattack_down 1
bot_forcefireweapon Forces all bots who have the specified weapon to switch to and fire it.

If a bot does not have this weapon, nothing happens to it (unless it is firing a different weapon, in which it stops)

Syntax
bot_forcefireweapon <weapon filename>
filename is usually tf_weapon_ <weapon name>.
Examples
bot_forcefireweapon tf_weapon_fists makes all Heavy bots switch to and repeatedly attack with their Fists, and all other bots stop attacking.

bot_forcefireweapon tf_weapon_shotgun_pyro makes all Pyro bots switch to and repeatedly fire their Shotguns, and all other bots stop attacking.

To make all bots stop attacking, simply specify a non-existent weapon filename. Anything without tf_weapon in it isn't a TF2 weapon, so the bots won't shoot it, for example bot_forcefireweapon ,,
Bots' loadouts cannot be changed, therefore you cannot make them fire unlockable weapons.
bot_kill

Kills the specified bot.

Syntax
bot_kill <bot name>
Makes the specified bot commit suicide.
Example
bot_kill bot01
bot_mimic Bot uses usercmd of player by index.

The bot will execute all keystrokes issued by a player, mimicking movements, turns, jumps, fire, etc. It should be noted that bots will not mimic Medic calls, weapon switches, or taunts.

Note this overrides bot_forceattack but does not override bot_dontmove.

Syntax
bot_mimic <0/1>
On when set to 1, off when set to 0
Example
bot_mimic 1
bot_mimic_inverse

Inverts the movement of the bots; moving left makes the bots move right, moving forwards makes the bots move backwards, etc.

The direction which the bot is looking is not affected.

Syntax
bot_mimic_inverse <0/1>
On when set to 1, off when set to 0
Example
bot_mimic_inverse 1
bot_mimic_yaw_offset

Offsets the bots' yaw. The bots will face in a direction this angle from the player. By default this is set to 180 so that all bots will face the player. Setting this to 0 will face the bots in the same direction as the player.

Syntax
bot_mimic_yaw_offset <0-360>
Set the direction by specifying angle in degrees
Example
bot_mimic_yaw_offset 180
bot_randomnames
Syntax
bot_randomnames <0/1>
On when set to 1, off when set to 0
Example
bot_randomnames 1
bot_refill Refills all bots' Ammo counts, including Metal for Engineers.

Syntax: bot_refill

bot_saveme This makes all the bots call for a Medic, equivalent to issuing bot_command <botname> "voicemenu 0 0" to every bot.

Syntax: bot_saveme <0/1>

On when set to 1, off when set to 0
bot_selectweaponslot This makes the first bot select weapon in specified weapon slot.

0 = primary; 1 = secondary; 2 = melee; 3 = special Note this only works for the first bot spawned. There doesn't seem to be a way to specify other bots.

Syntax
bot_selectweaponslot <n>
Set n to weapon slot that bots should switch to.
Example
bot_selectweaponslot 2
bot_teleport Teleports a specified bot to a given coordinate.

Map coordinates of where you are standing can be found by typing Status in the console.

Syntax
bot_teleport <botname> <X> <Y> <Z> <Pitch> <Yaw> <Roll>
Where botname is the bot name or id to teleport.
X Y Z are the map coordinates.
Pitch Yaw Roll is the direction the bot should face.
Example
bot_teleport bot01 -4815 1385 -447 0 0 0
bot_whack Delivers lethal damage from player to specified bot. This basically kills the bot with the currently selected weapon, probably used for testing during development.
Syntax
bot_whack <botname>
Where botname is the name of bot to "whack".
Example
bot_whack bot109

アップデート履歴

2009年12月17日 パッチ (WAR! Update)
  • Added work-in-progress Bots for beta testing in KOTH maps.

2010年1月6日 パッチ

  • Various improvements to combat behaviors.
  • In KOTH mode, Bots are now:
    • More likely to roam around and hunt enemies if there is lots of time left.
    • Become more likely to push for the point as time runs down, or their teammates start to capture it.
  • Medic bots now:
    • Opportunistically "overheal" nearby friends when they can.
    • Prioritize healing of injured nearby friends more.
    • Don't focus on Heavies quite so exclusively.
    • Don't spam their Medi Gun continuously at round start.
    • Won't choose cover far below their heal target so much (koth_nucleus).
    • Fight back with their Syringe Gun appropriately.
  • General bot improvements:
    • They no longer stand still on the point when capturing or defending it.
    • They choose more varied routes now.
    • They choose better defensive spots around captured points.
    • They fall back to another weapon when they entirely run out of ammo.
    • They adjust their FOV when using zoomed in Sniper scope.
    • They treat in-range Sentry Guns as the most dangerous threat.
    • They fire their weapons is more realistic bursts.
    • Engineers use their Shotgun properly.
  • Added a "virtual mousepad" concept to rework how bots track enemy players.
    • They now periodically estimate the position and velocity of the enemy they are tracking, instead of "locking on".
    • Addresses the "180 spin around and fire", "Heavy bot is OP", "Sniper bot is OP", and "I can't fight a Heavy bot as a Scout" issues.
  • Tuned Sniper spot finding algorithm to generate more diverse locations, partially .addressing the "Predictable Sniper camping spots" issue.
  • Soldier bots are more careful to not fire rockets that will explode on nearby geometry and kill them.
  • Fixed a bug where bots tried to heal from a Dispenser being carried by an Engineer.
  • Tuned scoreboard logic to guard against malicious server operators spoofing bot pings to hide the "BOT" tag.
  • Added more bot names as suggested by the TF community.

2010年4月28日 パッチ

  • Bots don't retreat to gather health as readily if they are in combat.
  • Bots no longer retreat when moving to block a point capture.
  • Bots should now equip an appropriate combat weapon and fight while moving to collect health.
  • Bots who are roaming the map and hunting now chase down their victims, following them around corners.
  • Bots that fire projectiles (ie: rockets/grenades/etc) don't hold down their fire button for a minimum time. This was causing Soldier bots to fire rockets into nearby walls as they strafed, killing themselves.
  • Soldier bots now switch to their Shotgun after firing all four rockets when engaging an enemy.
  • Added a few more bot names from community suggestions.
  • Fixed a behavior loop with Engineer metal gathering.

2010年6月10日 パッチ (Mac Update)

  • Added Offline Practice mode, with support for KOTH maps and Dustbowl.
  • [非公開] Looking at a bot player for a few seconds now causes it to taunt.

2010年6月11日 パッチ

  • Fixed a case where servers could get stuck in an infinite loop while spawning bots.
  • Fixed a level change crash related to Bot navigation meshes.

2010年6月14日 パッチ

  • Fixed server crash related to bots and health kits.

2010年6月16日 パッチ

  • Medic bots now respond when nearby humans call for Medic.
  • If a Medic bot is healing you and has an ÜberCharge ready, using the voice commands "Go go go!" or "Activate Charge!" will force the Bot to activate the ÜberCharge.

2010年7月19日 パッチ

  • Improved performance of bot computations that are done when a point is captured, a round starts, or a checkpoint reached.
  • Fixed Engineer bots infinite build-destroy behavior loop regression.
  • Fixed Medic bots losing their charge if they touch a resupply cabinet.
  • Fixed a crash due to having multiple types of bot systems running in-game simultaneously.
  • Fixed bot behavior issue resulting in bot pile-ups near level 3 Teleporter entrances.
  • Bots no longer consider sapped Sentry Guns a dangerous threat.
  • Bots will not try to navigate through enemy spawn rooms (unless they have won the round).
  • Engineer bots will avoid building Teleporters on steep slopes which could hinder teammate movement.
  • Added tf_bot_pyro_always_reflect cvar. Set to 1 to make Pyro bots always reflect projectiles, regardless of difficulty level.

2011年4月14日 パッチ (Hatless Update)

  • Added Spy TFBots. Spy bots have basic cloaking, diguising, sapping, and backstabbing behaviors now, and are ready to join the fight
  • TFBots understand the basics of the Payload scenario now, and will push the cart on offense, and try to stop the cart on defense
  • Added navigation meshes for pl_goldrush, pl_badwater, pl_upward, pl_thundermountain, and pl_hoodoo_final
  • Improved TFBot reactions to cloaked and/or disguised enemy Spies
  • Improved Demoman bot behaviors for planting sticky bomb traps
  • Demoman bots will now try to move to a safe spot and lob stickybombs onto enemy sentry nests to destroy them
  • Soldier bots switch to their Shotgun after emptying their Rocket Launcher at close/medium range
  • TFBots will no longer hide from sapped or carried sentryguns
  • Engineer bots are better at moving their Sentry Gun nest as the scenario changes
  • Improved Sniper bot algorithm for finding good sniping spots for both Capture Point and Payload scenarios
  • Sniper bots will take opportunistic shots at targets while they move to their desired sniping spot
  • Fixed bug where Sniper bots would sometimes stand around in their spawn room doing nothing.
  • Improved TFBot ability to find a safe vantage spot to attack enemy Sentry Guns
  • TFBots will no longer try to use a teleporter entrance they can't actually reach
  • Added tf_bot_melee_only cvar. If set to 1, all TFBots will be restricted to only using their melee weapon

2011年4月18日 パッチ

  • Fixed a server crash that could occur if TFBots were used across map changes

2011年5月5日 パッチ (Replay Update)

  • [非公開] Bots now properly target the Horseless Headless Horsemann as an enemy.

2011年7月22日 パッチ

  • [非公開] Bots now work on CTF maps.

2011年7月26日 パッチ

2011年8月23日 パッチ

  • Fixed crash with Demoman* bots trying to detonate stickybombs that had already been destroyed
  • Added tf_bot_kill console command (syntax identical to tf_bot_kick)
  • Bots obey melee only mode a bit better
  • Added func_nav_avoid to allow map creators control over where bots "like" to go
  • Fixed issue with Demoman bot reloading between each stickybomb he fired, causing him to be very slow at setting traps/destroying Sentry Guns
  • Bots never taunt if carrying the flag now
  • Aiming logic for Huntsman Sniper bots
  • Sniper bots prioritize enemy Snipers more aggressively, as well as enemy Engineers now
  • Improved Demoman bot Sentry Gun sticky bombing
  • Bots will no longer try to use health entities assigned to the enemy team
  • Added simplistic behaviors for Chargin' Targe, and various consumables (Bonk drink, Sandvich, etc)
  • Medic* bots stay a bit closer to their patient now
  • Sniper* bots go after very nearby enemies with their melee weapon now
  • Added func_tfbot_hint entity to allow map creators to tell Sniper bots good places to lurk
  • Sniper* bots opportunistically fire on viable targets they encounter while on the way to their desired lurking spot
  • Spy* bots are more aggressive about backstabbing an Engineer before sapping his nest now

備考

  • Bots can also be controlled with debug commands (e.g. nb_select and nb_warp_selected_here to teleport bots to a specific location), regardless of the bot type.

参照