Shoora
2/15/2019 - 12:55 AM

quakelive toggle firing mode

quakelive toggle firing mode

// *** Toggle Attack ***
//  Use "ta_toggle" for toggle mode. Use "ta_normal" for normal mode.
//      example: toggle for pg/lg, normal for everything else
//         set cg_weaponConfig_g  "(your commands...);vstr ta_normal;"
//         set cg_weaponConfig_mg "(your commands...);vstr ta_normal;"
//         set cg_weaponConfig_sg "(your commands...);vstr ta_normal;"
//         set cg_weaponConfig_gl "(your commands...);vstr ta_normal;"
//         set cg_weaponConfig_rl "(your commands...);vstr ta_normal;"
//         set cg_weaponConfig_lg "(your commands...);vstr ta_toggle;"
//         set cg_weaponConfig_rg "(your commands...);vstr ta_normal;"
//         set cg_weaponConfig_pg "(your commands...);vstr ta_toggle;"
//
// Use "ta_switch" whenever you want switch attack modes, between:
//    - normal: hold button to keep firing
//    - toggle: press once to start firing, press again to stop
//      example: mouse3 toggles firing mode
//        bind mouse3 "vstr ta_switch"
//
//
// NOTE: This script will bind mouse1 for you. If you want to use a different button,
// replace "mouse1" everywhere below with that button.
seta ta_switch "vstr ta_toggle"
seta ta_normal "-attack; set ta_switch vstr ta_toggle; bind mouse1 +attack; print Attack Mode: Normal"
seta ta_toggle "-attack; set ta_switch vstr ta_normal; bind mouse1 vstr ta_toggle_on; print Attack Mode: Toggle"
seta ta_toggle_on "+attack; bind mouse1 vstr ta_toggle_off"
seta ta_toggle_off "-attack; bind mouse1 vstr ta_toggle_on"
vstr ta_normal