CSGO - nastavení map mapgroup/workshop_collection

Message
Autor
Uživatelský avatar
Kaktus
Příspěvky: 158
Registrován: 26 pro 2009, 01:12
Reputation: 4

CSGO - nastavení map mapgroup/workshop_collection

#1 Příspěvekod Kaktus » 20 úno 2018, 11:34

Návod není dokončen

1. Nastavení pomoci souboru GameModes_Server.txt

2. Nastavení pomoci workshop_collection


1. Nastavení pomoci souboru GameModes_Server.txt

otevřeme si soubor gamemodes_server.txt.example a v něm nalezneme toto:
Spoiler: zobrazit

Kód: Vybrat vše

// To use this file, rename it to GameModes_Server.txt
//
// Values here override the default gamemodes.txt

"GameModes_Server.txt"{"gameTypes"{"classic"{"gameModes"{

/////////////////////////////////////////
// COMPETITIVE
/////////////////////////////////////////
"competitive"{

      
      "maxplayers"      "11"         // Note that maxplayers doesn't go in the convar block.
                                 // Another way to set maxplayers is to add -maxplayers_override XX to the cmd line.
      "exec"
      {
                                 // Any config files listed here will be executed after the ones in gamemodes.txt.
         
         "exec"               "server_last.cfg"
      }

      "mapgroupsMP"                  // List of mapgroups valid for this game mode ( competitive )
      {
         "mg_bomb_se"      ""
      }


}
/////////////////////////////////////////
// CASUAL
/////////////////////////////////////////
"casual"{



      "maxplayers"      "30"

      "exec"
      {
         "exec"               "server_last.cfg"
      }

      "mapgroupsMP"                  // List of mapgroups valid for this game mode ( casual )
      {
         "mg_bomb_se"      ""
      }



}}}"gungame"{"gameModes"{

/////////////////////////////////////////
// ARMS RACE
/////////////////////////////////////////
"gungameprogressive"{



      "maxplayers"         "10"

      // These are the configs that get executed when a game mode of this type is created
      "exec"
      {
         "exec"               "server_last.cfg"
      }
               
      "mapgroupsMP"
      {
         "mg_armsrace"   ""
      }

      "weaponprogression_ct"
      {
         "deagle"      { "kills"   "5" }
         "awp"         { "kills"   "5" }
         "knifegg"      { "kills"   "1" }
      }
               
      "weaponprogression_t"
      {
         "deagle"      { "kills"   "5" }
         "awp"         { "kills"   "5" }
         "knifegg"      { "kills"   "1" }
      }



/////////////////////////////////////////
// DEMOLITION
/////////////////////////////////////////
"gungametrbomb"
{


      "maxplayers"         "10"

      // These are the configs that get executed when a game mode of this type is created
      "exec"
      {
         "exec"               "server_last.cfg"
      }

      "mapgroupsMP"
      {
         "mg_demolition"      ""
      }

      "weaponprogression_ct"
      {
         "m4a1"         { "kills"   "1" }
         "awp"         { "kills"   "1" }
         "Scar20"      { "kills"   "1" }
      }
         
      "weaponprogression_t"
      {
         "ak47"         { "kills"   "1" }
         "awp"         { "kills"   "1" }
         "g3sg1"         { "kills"   "1" }
      }


}}}}

//////////////////////////////////////////////////////////////////////////////////////////////
// Map groups
//
// To use a mapgroup, it needs to be defined in a keyvalues
// block such as the example below, as well as listed in the
// 'mapgroupsMP' block within the game mode that will run it,
// such as the example above.
//
// Then launch the server with '+mapgroup MAPGROUPNAME'
//
// Example:
//
// srcds -game csgo +game_mode 1 +mapgroup mg_bomb_se +map de_nuke_se
//
//
// Check the developer wiki for updated community info
// https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers
//////////////////////////////////////////////////////////////////////////////////////////////


   "mapgroups"
   {
      "mg_bomb_se"                           // mapgroup definition
      {
         "name"         "mg_bomb_se"
         "maps"
         {
            "de_dust_se"      ""
            "de_dust2_se"      ""
            "de_nuke_se"      ""
            "de_train_se"      ""
            "de_inferno_se"      ""
            "de_aztec_se"      ""
         }
      }
   }
}}


Nejdříve se zaměříme na tuto část

Kód: Vybrat vše

   "mapgroups"
   {
      "mg_bomb_se"                           // mapgroup definition
      {
         "name"         "mg_bomb_se"
         "maps"
         {
            "de_dust_se"      ""
            "de_dust2_se"      ""
            "de_nuke_se"      ""
            "de_train_se"      ""
            "de_inferno_se"      ""
            "de_aztec_se"      ""
         }
      }
   }


Zde si můžeme vytvořit námi potřebné skupiny, např. to může vypadat takto:

Kód: Vybrat vše

   "mapgroups"
   {
      "mg_muj_vyber"                           // mapgroup definition
      {
         "name"         "mg_muj"
         "maps"
         {
            "de_dust2_se"      ""
            "de_inferno_se"      ""
         }
      }
      "mg_zapas_mapy"                           // mapgroup definition
      {
         "name"         "mg_zapas"
         "maps"
         {
            "de_dust2"      ""
            "de_nuke"      ""
            "de_train"      ""
            "de_inferno"      ""
            "de_mirage"      ""
            "de_cache"      ""
            "de_overpass"      ""
            "de_cobblestone"      ""                        
         }
      }
      "mg_pouze_dust_mapy"                           // mapgroup definition
      {
         "name"         "mg_dust"
         "maps"
         {
            "de_dust2"      ""
            "de_dust"      ""
         }
      }      
   }

Zpět na „Návody“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 6 hostů