W
weapey
Guest
Right..
I liked and got used to aliases where ducking and walking was a toggle switch, as in you press the duck button and you duck (without keeping it pressed) and you press it again and you stand again - it meant that you didn't have to keep your finger on the button.
However, a lot of the time I just found myself when ducking in the middle of a fire fight, or in a spot waiting for someone to pop out of a corner or something. If I was spotted or recieving return fire, I would need to quickly move from where I was stood behind cover.
What this alias does is rebinds the duck button so when it is pressed you instantly duck in that position, and you do not need to keep the button pressed to duck. However, when you move in any direction (forward, left or right, etc.) you will automatically stand up and move.
However, instead of completely removing the ability to move while ducking (which makes navigating certain maps limiting - ie. vents in cs_assault), while ducking you can press the walk button, and you can then move while ducking. Pressing it again will go back to the previous mode.
Pressing the duck button at any time will make you stand again. The walk button works all the time, and is also a toggle.
This is the first proper (advanced?) alias script I have ever created, and I do know its a little messy and some of the naming conventions are a little wrong. You have to rebind the keys for movement to the ones listed here (so standing when moving from duck position works) but works a treat.
All move binds have the slot10 command in it, which will clear the buy menu automatically when you move (useful if you have buy scripts that tend to stick)
I also included an updated version of the duckjump alias (used to get extra height) to correctly reset the binds when you jump from a ducking position.
Feel free to use them for personal use, although I would love to hear some feedback on this script. If you intend to use it in a script pack please just email me and let me know, isn't hard to do (weap@baseone.demon.co.uk)
Enjoy
DISCLAIMER: USE AT YOUR OWN PERIL. This is for advanced users only. Always back up your files. No, this script isn't responsible for that subseven trojan installed on your PC.
I liked and got used to aliases where ducking and walking was a toggle switch, as in you press the duck button and you duck (without keeping it pressed) and you press it again and you stand again - it meant that you didn't have to keep your finger on the button.
However, a lot of the time I just found myself when ducking in the middle of a fire fight, or in a spot waiting for someone to pop out of a corner or something. If I was spotted or recieving return fire, I would need to quickly move from where I was stood behind cover.
What this alias does is rebinds the duck button so when it is pressed you instantly duck in that position, and you do not need to keep the button pressed to duck. However, when you move in any direction (forward, left or right, etc.) you will automatically stand up and move.
However, instead of completely removing the ability to move while ducking (which makes navigating certain maps limiting - ie. vents in cs_assault), while ducking you can press the walk button, and you can then move while ducking. Pressing it again will go back to the previous mode.
Pressing the duck button at any time will make you stand again. The walk button works all the time, and is also a toggle.
This is the first proper (advanced?) alias script I have ever created, and I do know its a little messy and some of the naming conventions are a little wrong. You have to rebind the keys for movement to the ones listed here (so standing when moving from duck position works) but works a treat.
All move binds have the slot10 command in it, which will clear the buy menu automatically when you move (useful if you have buy scripts that tend to stick)
I also included an updated version of the duckjump alias (used to get extra height) to correctly reset the binds when you jump from a ducking position.
Feel free to use them for personal use, although I would love to hear some feedback on this script. If you intend to use it in a script pack please just email me and let me know, isn't hard to do (weap@baseone.demon.co.uk)
Enjoy
DISCLAIMER: USE AT YOUR OWN PERIL. This is for advanced users only. Always back up your files. No, this script isn't responsible for that subseven trojan installed on your PC.
Code:
// -- Duck Script --
// -- Written by PiTCHFoRK (weap@baseone.demon.co.uk)
alias d1 "developer 1"
alias d0 "developer 0"
alias +fwd1 "duckoff; walkoff; slot10; +forward"
alias +fwd2 "slot10; +forward"
alias +bindforward "+fwd2";
alias -bindforward "-forward"
alias +lft1 "duckoff; walkoff; slot10;+moveleft"
alias +lft2 "+moveleft"
alias +bindleft "+lft2"
alias -bindleft "-moveleft"
alias +rgt1 "duckoff; walkoff; slot10; +moveright"
alias +rgt2 "+moveright"
alias +bindright "+rgt2"
alias -bindright "-moveright"
alias +bck1 "duckoff; walkoff; slot10; +back"
alias +bck2 "+back"
alias +bindback "+bck2"
alias -bindback "-back"
// Duck Toggle
alias toggleduck "walkoff; duckon"
alias duckon "+duck; alias toggleduck duckoff; alias walkmode walk2on; bindmode1;"
alias duckoff "-duck; alias toggleduck duckon; alias walkmode walk1on; bindmode2"
// Normal prone mode
alias walkmode "walk1on"
alias walkon "+speed"
alias walkoff "-speed"
alias walk1on "walkon; bindmode2; alias walkmode walk1off"
alias walk1off "walkoff; bindmode2; alias walkmode walk1on"
// Move toggle while ducking mode
alias walk2on "bindmode2; alias walkmode walk2off d1; echo *** MOVING WHILE DUCKING ENABLED ***; d0"
alias walk2off "bindmode1; alias walkmode walk2on; echo "*** MOVING WHILE DUCKING DISABLED ***; d0"
alias bindmode1 "alias +bindforward +fwd1; alias +bindleft +lft1; alias +bindright +rgt1; alias +bindback +bck1"
alias bindmode2 "alias +bindforward +fwd2; alias +bindleft +lft2; alias +bindright +rgt2; alias +bindback +bck2"
alias +cjump "+jump; slot10; +duck; bindmode2"
alias -cjump "-jump; -duck"
// Your jump key
bind "CAPSLOCK" "+cjump"
// Your walk toggle key
bind "MOUSE3" "walkmode"
// Your duck toggle key
bind "SHIFT" "toggleduck"
// Your movement keys
bind "w" "+bindforward"
bind "a" "+bindleft"
bind "d" "+bindright"
bind "s" "+bindback"