Half-Life Console Help
Place the following script in your autoexec.cfg. Change 'x' to any key or button you like, then use that key to cycle through normal, slow, and fast script execution depending on your connection speed and quality. alias w5 "wait; wait; wait; wait; wait"Just in case this is hard to follow, here's exactly what happens: When you're in "normal" speed
mode, anywhere you use the alias w1 (instead of one or more wait's) will
result in one wait, w3 produces 3 waits, etc. In "slow" speed mode, however,
w1 results in TWO waits (because w1 = b2, and b2 = "wait; wait") and w3
results in FOUR waits, etc. "Fast" speed mode leaves w1 as one wait, but
reduces w2 to two waits. So, you have five different relative wait times
(w1, w3, w6, w9, w12) to use in your scripts, and you can vary how much
delay these wait times provide by pressing a key in-game. Just in case
you're still confused, the following table shows exactly how many wait's
you get for each of the aliases (w1 - w12) under each of the three network
conditions (which you can select with the 'x' key).
If you've ever tweaked a script to perfection, and then had it fail miserably one day when your ping was higher than normal, you'll immediately appreciate the usefulness of this method. If you're paying attention,
you might be wondering "How can I keep track of which speed mode I'm in?"
Easy -- just make your script talk to you. We'll enhance the lag-proofing
script with some feedback messages in the next section after we learn how
to do that.
|