paperlined.org
games > pc > Natural_Selection
document updated 16 years ago, on Jun 21, 2007
AHK scripts can generally run much FASTER than Half-Life-based scripts (eg. a flashlight script is
insanely fast, a script to switch between weapons at the start of the round is TOO fast).

Generally, it can be used to implement scripts that would normally be accessible, but are disabled
by servers that have mp_blockscripts set.


==== Number of "bind"s ====
However, mp_blockscripts also limits the amount of keys you can have bound...  eg. the number of
different actions that an external script can poke at...  semicolons don't work, so alt-keys are
disabled.  "exec" also doesn't work, so trying to set up an "alternate set" of keys that way also
doesn't work.

For things that aren't sensitive to timing, you can actually open up the console and type whatever
you want directly.  This is the fastest/most reliable snippet of code I have so far:

    SetKeyDelay -1  ; do this as fast as possible
    Send {sc029}    ; "`" key, open the console up
    Sleep 10        ; have to wait a small bit of time for the console to be pulled up
    Send bind mwheeldown jointeamone{enter}{sc029}
    SetKeyDelay 10  ; set it back to the default