Results 1 to 3 of 3

Thread: voted maps

  1. #1
    Senior Member Ancient Order's Avatar
    Join Date
    Aug 2015
    Location
    Paris, Fr.
    Posts
    232

    Default voted maps

    Hi there! I just noticed that after playing a voted map, the next map always returns to the first map of the sv_maplist. Is there a smart way to make the system act deferently?
    Last edited by Ancient Order; March 13th, 2022 at 05:49 AM.

  2. #2

    Default

    Maybe a script that updates the sv_maplist cvar every time a map from the maplist is loaded

    Something like this:

    switch (getcvar "mapname") {
    case "dm/mohdm1":
    local.maplist = "dm/mohdm2 dm/mohdm3 dm/mohdm4 dm/mohdm1"
    break;
    case "dm/mohdm2":
    local.maplist = "dm/mohdm3 dm/mohdm4 dm/mohdm1 dm/mohdm2"
    break;
    case "dm/mohdm3":
    local.maplist = "dm/mohdm4 dm/mohdm1 dm/mohdm2 dm/mohdm3"
    break;
    case "dm/mohdm4":
    local.maplist = "dm/mohdm1 dm/mohdm2 dm/mohdm3 dm/mohdm4"
    break;
    default:
    break;
    }

    if (getcvar "sv_maplist" != local.maplist) {
    setcvar "sv_maplist" local.maplist
    }

  3. #3
    Senior Member Ancient Order's Avatar
    Join Date
    Aug 2015
    Location
    Paris, Fr.
    Posts
    232

    Default

    Much smarter as i only thought of updating sv_maplist when a voted map is loaded. Thank you!

Posting Permissions

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