Results 1 to 10 of 19

Thread: [COD2] Changing map and gametype at the same time

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    did you try it like this:

    Code:
    /set a "rcon g_gametype dm; rcon map mp_carentan"
    /vstr a
    This works.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    As most servers run with sv_floodprotect 1, you need to add some delay between the 2 commands:
    Code:
    /set a "rcon g_gametype dm; wait 300; rcon map mp_carentan"
    /vstr a
    This, on a 100 fps client, gives a delay of 3 seconds between the 2 commands, allowing the commands to be processed without getting caught in the floodprotection.

    Alternatively you can write a script that reads a cvar every frame and does this for you, allowing for the commands to be processed script-wise and removing the 3s delay.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

Posting Permissions

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