Created
April 11, 2011 14:49
-
-
Save DosAmp/913635 to your computer and use it in GitHub Desktop.
Autofire script for semiautomatic Source weapons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// autofire.cfg: DosAmp's simple autofire script | |
/// core autofire functionality | |
alias +attack_af "alias do_af af; do_af" | |
alias -attack_af "alias do_af -attack" | |
// adapt "wait 4" for desired fire delay (in frames) | |
alias af "+attack; wait; -attack; wait 4; do_af" | |
/// autofire toggle switch | |
alias +myattack +attack | |
alias -myattack -attack | |
alias togglefiremode "fire_auto" | |
alias fire_auto "alias +myattack +attack_af; alias -myattack -attack_af; alias togglefiremode fire_normal" | |
alias fire_normal "alias +myattack +attack; alias -myattack -attack; alias togglefiremode fire_auto" | |
// adapt bindings as desired | |
bind "i" "togglefiremode" | |
// example for using it only with pistol: | |
// bind 1 "fire_auto; slot1" | |
// bind [2-9] "fire_normal; slot[2-9]" | |
bind "MOUSE1" "+myattack" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment