Toggle Binds And Blockscripts
d0omie
Join Date: 2003-02-23 Member: 13877Members
<div class="IPBDescription">toggle crouch anyone?</div> I need a toggle crouch script for skulking as my keyboard won't let me press enough keys to crouch,jump,strafe <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo-->
However block scripts won't let me make the usual toggle script I used for TFC grenades of
alias crouchon "+crouch;alias crouchy crouchoff"
alias crouchoff "-crouch;alias crouchy crouchon"
bind Ctrl crouchy
How can I do this with blockscripts? I am unable to bhop without typing +crouch into the console, but then I cannot easily stick to walls again, which is annoying.
However block scripts won't let me make the usual toggle script I used for TFC grenades of
alias crouchon "+crouch;alias crouchy crouchoff"
alias crouchoff "-crouch;alias crouchy crouchon"
bind Ctrl crouchy
How can I do this with blockscripts? I am unable to bhop without typing +crouch into the console, but then I cannot easily stick to walls again, which is annoying.
Comments
Its very unfair as it means players with mice with more buttons / better keyboards have an advantage. At least everyone has the same opertunaties to script.
The only scripts which needed blocking were _special ones anyway....
Fortunatly I do have a mousewheel on my mouse, but I imagine other people do not, and so will find it compleatly impossible to bunnyhop.
gg Flayara
When I used to play TFC, EVERYONE used extensive scripts. Mostly to compensate for all the options each class had when you only wanted to use a limited set with easy to reach keys, and toggle grenades. No-one every complained like people do here about unfair scripting. I don't understand where that attitude has come from, but it makes no sense unless we restrict everyone to using the same gamma/monitor/keyboard/mouse. I could just go and spend £30 buying a programable keyboard that would do far more than any script ever good.
Make NS fair again, remove blockscripts for anything but special scripts. (If they can find a way to implement that)
<span style='font-size:8pt;line-height:100%'>(yeah I wrote that code off the top of my head, I clearly mean +duck)</span>
Lets see...
AUTOEXEC.CFG
alias "null" ""
alias "crouch" "null; exec crouch.cfg; null"
alias "uncrouch" "null; exec uncrouch.cfg; null"
exec uncrouch.cfg
CROUCH.CFG
+duck
bind ctrl uncrouch
UNCROUCH.CFG
-duck
bind ctrl crouch
Not sure if the nulls are necessary, but other than that, if this script doesn't work, you can also try my commandmenu method...which I do not endorse except for toggle crouching/walking. You can use the + and - commands in the commandmenu script without having the - command executed automatically on the + command theoretically.