minigames-tf2

command module
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 20 Imported by: 0

README

Bindbot

Build Status

A script for creating randomized binds based on either kills, deaths or chat messages.

Configuration

Add the launch option

Right-click Team Fortress 2 in your Steam library and add the following flag to your launch options: -usercon.

Add the Team Fortress 2 config

Create a file named rcon_settings.cfg in your Team Fortress 2 cfg directory.

If you're on Windows, it's probably at C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\.

ip "0.0.0.0"
rcon_password "RCON_PASSWORD"
net_start
con_logfile console.log

Be sure to replace the RCON_PASSWORD with a strong password.

To make sure that this script runs when you start TF2, add the following line somewhere in your autoexec.cfg:

exec rcon_settings.cfg
Create an environment file

Create a file named config.env in the same directory where you run the program from. There you must configure a few options:

RCONPASSWORD=RCON_PASSWORD
CONFILE=C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\console.log
TFUSERNAME=Your TF2/Steam Username
Add messages

To add messages, simply create a file named messages.yaml. In that file, add your messages like so:

# If you don't specify a weapon, the command will be run on every kill/death,
# unless a weapon is specified elsewhere
- on: kill
  optional: true
  chance: 75%
  messages:
    - "This is an example message"
    - "Example number two"

# You can add the %s placeholder, which will later be replaced by your killer/victim
- on: death
  weapon: "knife"
  crit: true
  messages:
    - "%s just backstabbed me"

# You are able to execute a few whitelisted commands with the exec prefix
# Everything after the first "exec" will be run as a console command
# You can also chain them with a semicolon
- on: chat
  keywords: "thanks, thx"
  chance: 50%
  messages:
    - "exec voicemenu 0 1; say no problem, %s"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL