A few more changes

class_based_refactor
Nicholas Hope 2022-10-02 12:13:04 -04:00
parent f483beb0bd
commit a7552fad96
1 changed files with 17 additions and 16 deletions

View File

@ -26,11 +26,11 @@ default:
# hold doubles
double r:
condition: mouse4
cancel: both
type: hold
primary: +class_action
secondary: +reload
condition: mouse4
cancel: both
# other
impulse =: kill
@ -60,26 +60,26 @@ default:
press:
- "-moveright"
- "+moveleft"
- "alias maybeMoveLeft +moveleft"
- "alias maybe_move_left +moveleft"
release:
- "-moveleft"
- "maybeMoveRight"
- "alias maybeMoveLeft "
- "maybe_move_right"
- "unalias maybe_move_left"
hold d:
press:
- "-moveleft"
- "+moveright"
- "alias maybeMoveRight +moveright"
- "alias maybe_move_right +moveright"
release:
- "-moveright"
- "maybeMoveLeft"
- "alias maybeMoveRight "
- "maybe_move_left"
- "unalias maybe_move_right"
# This just stops an error message the first time you release
# either of 'a' or 'd'
impulse maybeMoveLeft:
impulse maybe_move_left:
alias: yes
command: ""
impulse maybeMoveRight:
impulse maybe_move_right:
alias: yes
command: ""
# class action is something useful for each class,
@ -97,16 +97,16 @@ default:
impulse load0:
alias: yes
command: "load_itempreset a"
command: "loadout a"
impulse load1:
alias: yes
command: "load_itempreset b"
command: "loadout b"
impulse load2:
alias: yes
command: "load_itempreset c"
command: "loadout c"
impulse load3:
alias: yes
command: "load_itempreset d"
command: "loadout d"
impulse INS:
- "load0"
@ -120,8 +120,10 @@ default:
impulse END:
- "load3"
- "alias reload_presets load3"
literal set_default_loadout:
alias reload_presets load0
impulse backspace:
"reload_presets"
reload_presets
engi:
hold class_action:
@ -129,7 +131,6 @@ engi:
press:
- destroy sentry
- build sentry
release: ""
medic:
# "Radar" feature: causes all teammates to autocall for medic, allowing