Results 1 to 3 of 3

Thread: wait in cfg

  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts

    wait in cfg

    Hi all,

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

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

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    IIRC years ago I think something like:

    Code:
    /bind r "+reload; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; nextweap"
    timescale 0.01

  3. The Following User Says Thank You to kung foo man For This Useful Post:

    Ni3ls (6th March 2016)

  4. #3
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    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.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  5. The Following 2 Users Say Thank You to IzNoGoD For This Useful Post:

    kung foo man (6th March 2016),Ni3ls (6th March 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •