tfscript/examples/nicks_config.yaml

164 lines
3.5 KiB
YAML

# These are my configs! Feel free to download and use,
# modify, or w/e, but no pull requests will be accepted if they change this.
# You can always do a pull request to make a new file
# It uses a ton of doubles, and certain keys like
# wasd, mouse 1-3, and some others aren't listed because
# those keys are basically static and don't change
default:
# voice-based doubles
double e:
type: impulse
primary: voice medic
secondary: voice activate uber
condition: mouse4
double t:
type: impulse
primary: voice thanks
secondary: voice nice shot
condition: mouse4
double v:
type: impulse
primary: voice spy
secondary: voice help
condition: mouse4
# hold doubles
double r:
type: hold
primary: +class_action
secondary: +reload
condition: mouse4
cancel: both
# other
impulse =: kill
impulse -: explode
double q:
type: impulse
primary: lastinv
secondary:
- "slot2"
- "wait 10"
- "slot1"
condition: mouse4
double ctrl:
# I use shift to crouch
type: impulse
primary: voice yes
secondary: voice no
condition: mouse4
# toggle
toggle capslock: +voicerecord
# hold: null-cancelled movement, so hitting a while holding d causes
# me to go left instead of stopping, or vice-versa.
hold a:
press:
- "-moveright"
- "+moveleft"
- "alias maybeMoveLeft +moveleft"
release:
- "-moveleft"
- "maybeMoveRight"
- "alias maybeMoveLeft "
hold d:
press:
- "-moveleft"
- "+moveright"
- "alias maybeMoveRight +moveright"
release:
- "-moveright"
- "maybeMoveLeft"
- "alias maybeMoveRight "
# This just stops an error message the first time you release
# either of 'a' or 'd'
impulse maybeMoveLeft:
alias: yes
command: ""
impulse maybeMoveRight:
alias: yes
command: ""
# class action is something useful for each class,
# like destroying and rebuilding a sentry for the engineer
# this is just the default. I do a lot of hybridknight and
# mantread soldier so having a melee/main weapon switch bind
# is useful
hold class_action:
alias: yes
press:
- "slot3"
- "wait 10"
- "slot1"
release: ""
impulse load0:
alias: yes
command: "load_itempreset a"
impulse load1:
alias: yes
command: "load_itempreset b"
impulse load2:
alias: yes
command: "load_itempreset c"
impulse load3:
alias: yes
command: "load_itempreset d"
impulse INS:
- "load0"
- "alias reload_presets load0"
impulse HOME:
- "load1"
- "alias reload_presets load1"
impulse DEL:
- "load2"
- "alias reload_presets load2"
impulse END:
- "load3"
- "alias reload_presets load3"
impulse backspace:
"reload_presets"
engi:
hold class_action:
alias: yes
press:
- destroy sentry
- build sentry
release: ""
medic:
# "Radar" feature: causes all teammates to autocall for medic, allowing
# me to see where they are
hold class_action:
alias: yes
press: "hud_medicautocallersthreshold 150"
release: "hud_medicautocallersthreshold 75"
double e:
type: impulse
condition: mouse4
primary: voice medic
secondary: voice uber ready
soldier:
double mouse1:
type: hold
condition: mouse4
cancel: both
# normal firing
primary: +attack
# rocket jump
secondary:
press:
- +attack
- +duck
- +jump
release:
- -attack
- -duck
- -jump