CSGO 绑定看demo录像快捷键的一个cfg
主要内容:绑定方向键键位实现快进、倒退、慢放、暂停4个功能,再绑定一个特殊键用于加倍快进、倒退的速度
快进、慢放可以长按,倒退和暂停是点按
按住“特殊键”时快进、慢放速度会加倍
一共会绑定5个键
下面会先放带注释的cfg,原cfg在最下面

// 这个文件分为两部分
// 一个是“普通绑定”
// 另一个是“特殊绑定”
// 每个键都有两个功能:“普通绑定”、“特殊绑定”
// 通过按住一个“特殊键”来实现不同功能
//实现demo快进功能
// 没有按住“特殊键”时
// 按住此键将以5倍速加速demo
// 松开恢复正常
alias +demo_forward "demo_timescale 5"
alias -demo_forward "demo_timescale 1"
// 按住“特殊键”时
// 按住此键将以16倍速加速demo
// 松开恢复正常
alias +demo_s_forward "demo_timescale 16"
alias -demo_s_forward "demo_timescale 1"
//实现demo慢放0.5、0.2倍功能
// special binding NOT pressed:
// Slows down the demo by half when holding.
// On release, sets the default speed (1) back.
alias +demo_slowmo "demo_timescale 0.5"
alias -demo_slowmo "demo_timescale 1"
// special binding pressed:
// Slows down the demo by a fifth when holding.
// On release, sets the default speed (1) back.
alias +demo_s_slowmo "demo_timescale 0.2"
alias -demo_s_slowmo "demo_timescale 1"
//实现demo倒退功能
// 没有按住“特殊键”时
// 倒退10秒并暂停
alias demo_back "demo_goto -1280 relative pause"
// 按住“特殊键”时
// 倒退30秒并暂停
alias demo_s_back "demo_goto -3840 relative pause"
//默认是用方向键的四个键
//要改的话“普通绑定”和“特殊绑定”
里的要同时修改
//从上到下分别为
//👆方向键↑ demo慢放
//👇方向键↓ demo暂停
//👈方向键← demo倒退
//👉方向键→ demo快进
// 设置“普通绑定”
alias defUA "bind uparrow +demo_slowmo"
alias defDA "bind downarrow demo_togglepause"
alias defLA "bind leftarrow demo_back"
alias defRA "bind rightarrow +demo_forward"
// 设置“特殊绑定”
alias specialUA "bind uparrow +demo_s_slowmo"
alias specialDA "bind downarrow demo_togglepause"
alias specialLA "bind leftarrow demo_s_back"
alias specialRA "bind rightarrow +demo_s_forward"
// 这部分实现“特殊键”按下的功能,无需修改
alias +advanced_binds "specialUA; specialDA; specialLA; specialRA"
alias -advanced_binds "defUA; defDA; defLA; defRA"
// 禁用此参数以防误触发
-advanced_binds
// 绑定“特殊键”
bind 你想要的键位 +advanced_binds
//在控制台exec此cfg文件后会显示的内容
echo Advanced DEMO Bindings Loaded [X]
//想绑到小数字键盘的话可以参照此键位表
//小数字
//Numpad 1 = "kp_end"
//Numpad 2 = "kp_downarrow"
//Numpad 3 = "kp_pgdn"
//Numpad 4 = "kp_leftarrow"
//Numpad 5 = "kp_5"
//Numpad 6 = "kp_rightarrow"
//Numpad 7 = "kp_home"
//Numpad 8 = "kp_uparrow"
//Numpad 9 = "kp_pgup"
//Numpad 0 = "kp_ins"
//加减乘除、回车
//bind "KP_PLUS"
//bind "KP_MINUS"
//bind "KP_MULTIPLY"
//bind "KP_SLASH"
//bind "KP_ENTER"

/////////////// Demo advanced bindings - By: YourWorstNightmare
// The bindings are represented by two
// sections. One with an "s" for special
// biding and a normal binding.
//
// By holding a special key you can switch
// the functionality of one of this bindings.
// Further explanation below.
// Special binding NOT pressed:
// Accelerate the demo by 5 times when holding.
// On release, sets the default speed (1) back.
alias +demo_forward "demo_timescale 5"
alias -demo_forward "demo_timescale 1"
// Special binding pressed:
// Acellerate the demo by 16 times when holding.
// On release, sets the default speed (1) back.
alias +demo_s_forward "demo_timescale 16"
alias -demo_s_forward "demo_timescale 1"
// special binding NOT pressed:
// Slows down the demo by half when holding.
// On release, sets the default speed (1) back.
alias +demo_slowmo "demo_timescale 0.5"
alias -demo_slowmo "demo_timescale 1"
// special binding pressed:
// Slows down the demo by a fifth when holding.
// On release, sets the default speed (1) back.
alias +demo_s_slowmo "demo_timescale 0.2"
alias -demo_s_slowmo "demo_timescale 1"
// Special binding NOT pressed:
// Goes 10 seconds back on the demo and pauses
alias demo_back "demo_goto -1280 relative pause"
// Special binding pressed:
// Goes 30 seconds back on the demo and pauses
alias demo_s_back "demo_goto -3840 relative pause"
// The default bindings are the keyboard arrows and the
// Special key to activate the special functionality is
// the RIGHT CTRL.
//
// You can choose any key you like by changing it's names
// in the two next sections. Just make sure to use the same
// key in both of the sections!!
// Set the normal binds.
alias defUA "bind uparrow +demo_slowmo"
alias defDA "bind downarrow demo_togglepause"
alias defLA "bind leftarrow demo_back"
alias defRA "bind rightarrow +demo_forward"
// Set the special bindings
alias specialUA "bind uparrow +demo_s_slowmo"
alias specialDA "bind downarrow demo_togglepause"
alias specialLA "bind leftarrow demo_s_back"
alias specialRA "bind rightarrow +demo_s_forward"
// Does all the advanced magic (doens't need to be modified)
alias +advanced_binds "specialUA; specialDA; specialLA; specialRA"
alias -advanced_binds "defUA; defDA; defLA; defRA"
// Set to disabled mode to prevent activating for no reason.
-advanced_binds
// SPECIAL KEY. Just need to be changed here.
bind kp_ins +advanced_binds
//Cool confirmation in console
echo Advanced DEMO Bindings Loaded [X]