class_based_refactor
Nicholas Hope 2022-09-17 22:17:42 -04:00
parent 4babdedb81
commit ace0af7101
1 changed files with 39 additions and 34 deletions

View File

@ -9,51 +9,50 @@
default: default:
# voice-based doubles # voice-based doubles
double e: double e:
impulse primary: voice medic type: impulse
impulse secondary: voice activate uber primary: voice medic
secondary: voice activate uber
condition: mouse4 condition: mouse4
double t: double t:
impulse primary: voice thanks type: impulse
impulse secondary: voice nice shot primary: voice thanks
secondary: voice nice shot
condition: mouse4 condition: mouse4
double v: double v:
impulse primary: voice spy type: impulse
impulse secondary: voice help primary: voice spy
secondary: voice help
condition: mouse4 condition: mouse4
# hold doubles # hold doubles
double r: double r:
primary: type: hold
hold: "class_action" primary: +class_action
secondary: secondary: +reload
hold: "reload"
condition: mouse4 condition: mouse4
cancel both: yes cancel: both
# other # other
double =: impulse =: kill
primary: impulse -: explode
impulse: kill
secondary:
impulse: explode
condition: "-"
double q: double q:
impulse primary: lastinv type: impulse
impulse secondary: primary: lastinv
secondary:
- "slot2" - "slot2"
- "wait 10" - "wait 10"
- "slot1" - "slot1"
condition: mouse4 condition: mouse4
double ctrl: double ctrl:
# I use shift to crouch # I use shift to crouch
impulse primary: type: impulse
voice yes primary: voice yes
impulse secondary: secondary: voice no
voice no
condition: mouse4 condition: mouse4
# toggle # toggle
toggle capslock: voicerecord toggle capslock: +voicerecord
# hold: null-cancelled movement, so hitting a while holding d causes # hold: null-cancelled movement, so hitting a while holding d causes
# me to go left instead of stopping, or vice-versa. # me to go left instead of stopping, or vice-versa.
@ -83,7 +82,6 @@ default:
impulse maybeMoveRight: impulse maybeMoveRight:
alias: yes alias: yes
command: "" command: ""
# class action is something useful for each class, # class action is something useful for each class,
# like destroying and rebuilding a sentry for the engineer # like destroying and rebuilding a sentry for the engineer
# this is just the default. I do a lot of hybridknight and # this is just the default. I do a lot of hybridknight and
@ -99,16 +97,16 @@ default:
impulse load0: impulse load0:
alias: yes alias: yes
command: "load_itempreset 0" command: "load_itempreset a"
impulse load1: impulse load1:
alias: yes alias: yes
command: "load_itempreset 1" command: "load_itempreset b"
impulse load2: impulse load2:
alias: yes alias: yes
command: "load_itempreset 2" command: "load_itempreset c"
impulse load3: impulse load3:
alias: yes alias: yes
command: "load_itempreset 3" command: "load_itempreset d"
impulse INS: impulse INS:
- "load0" - "load0"
@ -140,12 +138,21 @@ medic:
alias: yes alias: yes
press: "hud_medicautocallersthreshold 150" press: "hud_medicautocallersthreshold 150"
release: "hud_medicautocallersthreshold 75" release: "hud_medicautocallersthreshold 75"
double e:
type: impulse
condition: mouse4
primary: voice medic
secondary: voice uber ready
soldier: soldier:
double mouse1: double mouse1:
hold primary: type: hold
attack condition: mouse4
hold secondary: cancel: both
# normal firing
primary: +attack
# rocket jump
secondary:
press: press:
- +attack - +attack
- +duck - +duck
@ -154,5 +161,3 @@ soldier:
- -attack - -attack
- -duck - -duck
- -jump - -jump
condition: mouse4