using "wait" in an "alias"

using "wait" in an "alias"

Re: using "wait" in an "alias" Posted by ===PsYchOsIs=== on Sat Apr 29th 2006 at 12:48pm
Posted 2006-04-29 12:48pm
1 post 0 snarkmarks Registered: Apr 29th 2006 Location: Australia
Um, hello there. I was working on a custom command in Counter-strike: Condition Zero using this format:

alias <keyword> "sv_gravity 100;wait 500;sv_gravity 999999;wait 5;sv_gravity 800"

For some reason though, it doesn't wait at all. Can someone tell me what I'm doing wrong??
Re: using "wait" in an "alias" Posted by MadMan on Sat Apr 29th 2006 at 1:35pm
MadMan
47 posts
Posted 2006-04-29 1:35pm
MadMan
member
47 posts 54 snarkmarks Registered: Apr 29th 2004 Location: Land of Tulips
you sure it doesn't wait? its in ms, so that wait should be 0.5 seconds.. proabably too fast to notice

[Edit] - and should it be g_gravity?
Re: using "wait" in an "alias" Posted by Fjorn on Sun Apr 30th 2006 at 10:09am
Fjorn
250 posts
Posted 2006-04-30 10:09am
Fjorn
member
250 posts 25 snarkmarks Registered: Jun 5th 2004 Occupation: Student/Amateur Writer Location: California - USA
I hate admins with aliases like that
Signature? What signature!?
Re: using "wait" in an "alias" Posted by Paladin on Sun Apr 30th 2006 at 5:52pm
Paladin
16 posts
Posted 2006-04-30 5:52pm
Paladin
member
16 posts 42 snarkmarks Registered: Nov 30th 2004 Occupation: Student Location: Germany
wait doesnt work that way, you can't use it like "wait 500".
wait has always a fixed amount of time, can't remember how much it was anymore, like 10ms or so.
Use something like :

alias wa "wait"
alias wa1 "wa"
alias wa2 "wa1; wa1"
alias wa4 "wa2; wa2"
alias wa8 "wa4; wa4"
alias wa16 "wa8; wa8"
alias wa32 "wa16; wa16"
alias wa48 "wa16; wa16; wa16"
alias wa64 "wa32; wa32"
alias wa128 "wa64; wa64"
alias wa256 "wa128; wa128"

You even need to continue that system, as wa256 still only waits for a fraction of a second
This was a part of code which i used for a buyscript for cs 7.1 or so. So maybe the whole system has changed. Dunno Maybe it'll help. Otherwise check a more approriate forum than a mapping general banter one.

Greets,
Pal
Re: using "wait" in an "alias" Posted by rs6 on Sun Apr 30th 2006 at 9:08pm
rs6
640 posts
Posted 2006-04-30 9:08pm
rs6
member
640 posts 94 snarkmarks Registered: Dec 31st 2004 Occupation: koledge Location: New Jersey, USA
I did a little research on some scripting site.

The wait command create a pause for "1 tick". This "1 tick" varies from computer to computer depending on your connection(if your writing a script for online), and computer specs. So you you don't write numbers after your waits, you just have to type a whole lot of them together.

So:

alias <keyword> "sv_gravity 100;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;sv_gravity 999999;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;sv_gravity 800"

But instead of using all of those waits, use the aliases paladin posted.