I’m having slight problems with a script I recently ‘completed’. At first, it seemed to be completely functional. Problem is, it seems to mess up at times, although I’m unsure of what causes it. First off, here’s the script:
seta cg_weaponcycledelay 250 //Mouse Wheel Response Time (milliseconds)
bind space "vstr spcbr"
bind mwheelup "vstr north"
bind mwheeldown "vstr south"
set c2p "-movedown; +prone; -prone; set north vstr p2c; set south vstr p2s; set spcbr vstr p2s"
set c2s "-movedown; set north vstr s2p; set south vstr s2c; set spcbr vstr jump"
set p2c "+prone; -prone; +movedown; set north vstr c2s; set south vstr c2p; set spcbr vstr c2s"
set p2s "+prone; -prone; -movedown; set north vstr s2p; set south vstr s2c; set spcbr vstr jump"
set s2c "+movedown; set north vstr c2s; set south vstr c2p; set spcbr vstr c2s"
set s2p "+prone; -prone; set north vstr p2c; set south vstr p2s; set spcbr vstr p2s"
set jump "+moveup; wait; wait; -moveup"
vstr c2s
Secondly, a description: Basically this script allows you to toggle through the standing, crouching, and prone positions with the mouse wheel. From a standing position, mwheelup causes you to go prone, while mwheeldown causes you to crouch. From a crouching position, mwheelup causes you to stand up, while mwheeldown causes you to go prone. From a prone position, mwheelup causes you to crouch, while mwheeldown causes you to stand up.
Note that you can also stand up from a crouching or prone position by pressing the spacebar, which toggles between jumping and standing. 
Like I said, it seemed to work just fine. Problem is, it acts up at times. Sometimes, it won’t allow you to crouch. It’ll skip crouching completely, going from standing to prone (instead of standing to crouching) or from prone to standing (instead of prone to crouching). Other times, it skips going prone. Sometimes, pressing the spacebar makes you go prone.
It seems to act up most after having moved around a lot, for some reason. Try jumping around and whatnot, scaling walls, whatever. I can’t figure out what causes this script to spaz. It’s my first script, so it’s bound to have flaws at first. shrug
- binding a a key to Crouch and enabling double press goes prone (Options somewhere) then all you need is one to crouch/prone and you just use your jump key to stand up
Simple.