PDA

View Full Version : wait in cfg



Ni3ls
5th March 2016, 10:48
Hi all,

I want to make a bind for a weapon with a wait inside it, but somehow it doesnt work.


/bind r "+reload; wait 5; nextweap"
however, it switches immediatly to the next weapon without the wait. How can you add a wait inside?

kung foo man
5th March 2016, 19:45
IIRC years ago I think something like:



/bind r "+reload; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; nextweap"

IzNoGoD
5th March 2016, 20:17
The wait 5 waits 5 client frames. At 125 fps this is exactly 0.04 seconds, so hence the "immediately" feeling.

Use your client's fps as a multiplier for wait times in cfgs.

Also: there's a weird bug with wait, where even (or odd) times get rounded down. I dont remember which one it was, but wait 3 might act like wait 2 instead.