View difference between Paste ID: FFcKxKK2 and YmyFYAVQ
SHOW: | | - or go back to the newest paste.
1
//personal.cfg
2-
alias +keyshift "unbindall; exec calc.cfg" // binds from calc.cfg should be only active when you holding X
2+
alias calc_on "KD0;#stop;exec calc.cfg;alias CALC calc_off;say_student HP_calculator=ON"; //reliable keys daemon needs to be stopped
3-
alias -keyshift "unbindall; RK" // when release, use your refresh daemon to load default keys from autoexec.cfg
3+
alias calc_off "KD1;#stop;RK;alias CALC calc_on;say_student HP_calculator=OFF"; //restart daemon and restore binds
4
alias CALC calc_on;//init
5-
bind "X" +keyshift // X = any key not used both in autoexec.cfg and GUI
5+
6
bind "X" CALC // X = any key not used both in autoexec.cfg and GUI //changed to a on/off toggle, as it's more practical
7
8
9
// calc.cfg
10
bind KP_0      hpCalcPress0
11
bind KP_1      hpCalcPress1
12
bind KP_2      hpCalcPress2
13
bind KP_3      hpCalcPress3
14
bind KP_4      hpCalcPress4
15
bind KP_5      hpCalcPress5
16
bind KP_6      hpCalcPress6
17
bind KP_7      hpCalcPress7
18
bind KP_8      hpCalcPress8
19
bind KP_9      hpCalcPress9
20
21
bind KP_DEL       hpCalcPure
22
bind KP_PLUS      hpCalcNormal
23
bind KP_MINUS     hpCalcCloak
24
bind KP_MULTIPLY  hpCalcHood