Advanced Search

Author Topic: [CBM] Single Draft Mode -> Limited class picking!  (Read 4482 times)

0 Members and 1 Guest are viewing this topic.

June 26, 2017, 08:51:52 PM
Read 4482 times

Offline CutmanMike

  • Administrator

  • Is it hot in here or is it just zscript?
  • *******
  • Date Registered: December 17, 2008, 12:24:34 PM

    • View Profile
    • https://cutstuff.net
[CBM] Single Draft Mode -> Limited class picking!
« on: June 26, 2017, 08:51:52 PM »


What is it?

Single Draft Mode is an add-on for CBM. It restricts what classes can be played and generates a random pool of classes that you are allowed to play as. Attempting to play as a disallowed class will boot you from the game. It supports LMS, TLMS and Duel. The mode is flexible and can be customized using it's custom settings which you can find below. By default the classes and amount of classes you can choose is randomized at the start of each match, and remains the same until the end of the match.

Server Settings

I STRONGLY recommend changing sv_lmscountdowntime / sv_duelcountdowntime to at least 12 seconds, so players have time to choose the class they want. Also if you're using duel, consider turning off sv_forcerepsawn so that dead players have time to decide if they want to pick another class out of the pool.

Here are some settings you can customize the game mode with:
    * singledraft_poolsize - Set how many classes players can choose from. If set to zero it will be randomly chosen from 5 to 16. (Default 0)
    * singledraft_reseteachround - If set to 1, the pool will be randomized after each round rather than each match (LMS only. Default 0).
    * singledraft_custom - If set to 1, the game will use a custom pool. See below for details. (Default 0).
    * singledraft_teamdraft - If set to 1, each team will have a different pool of classes to choose from. (Default 0).

Servers can set up their own custom pool of classes (up to 30) by using the following CVARs. If they are set to "" or an invalid class, it will generate a random class for that slot. Note that the game will still set up a random pool size so you will have to specify a singledraft_poolsize value too.
    * singledraft_slot1 - Class name for the first slot of the pool.
    * singledraft_slot2 - Class name for the second slot of the pool.
    * singledraft_slot3 - Class name for the third slot of the pool.
    * singledraft_slot... - etc etc up to 30.

If team draft is enabled, you can customize each team's class loadout:
    * singledraft_wslotX - Class name for Wily team (replace X with the slot number)
    * singledraft_cslotX - Class name for Cossack team (replace X with the slot number)
    * singledraft_kslotX - Class name for King team (replace X with the slot number)

Here is an example of a server that wants to set up a pool of electric based classes only:
Code: [Select]
singledraft_custom 1
singledraft_poolsize 4
singledraft_slot1 elecman
singledraft_slot1 sparkman
singledraft_slot1 cloudman
singledraft_slot1 dynamoman


Here is an example of a server that wants to set up a pool of heavy classes only:
Code: [Select]
singledraft_custom 1
singledraft_poolsize 6
singledraft_slot1 gutsman
singledraft_slot2 hardman
singledraft_slot3 stoneman
singledraft_slot4 frostman
singledraft_slot5 concreteman
singledraft_slot6 hyperstormh

Here is an example of a server that wants to set up a pure e-sports arena:
Code: [Select]
singledraft_custom 1
singledraft_poolsize 1
singledraft_slot1 slashman

Known issues

    * If you choose a class right before the round starts, Zandronum may decide to kick you for user info change flood. Not sure how to fix, for now just suck it up and type "reconnect" on the console to get back in there!

Download

Download Version 1c from TSPG

July 14, 2017, 03:52:48 PM
Reply #1

Offline CutmanMike

  • Administrator

  • Is it hot in here or is it just zscript?
  • *******
  • Date Registered: December 17, 2008, 12:24:34 PM

    • View Profile
    • https://cutstuff.net
Re: [CBM] Single Draft Mode -> Limited class picking!
« Reply #1 on: July 14, 2017, 03:52:48 PM »
New version uploaded with the new CBM classes. Also tried to fix some of the lag issues when picking a class. Also made it so players are invulnerable during the pick stage so you don't lose the class selection menu.

Edit: Another new version. You can now set up individual class pools for each team. Also added the new classes.