Page 1 of 1

[TF2] Class Limit

Posted: Tue Apr 25, 2017 8:48 pm
by iPlayer
[TF2] Class Limit

https://github.com/KirillMysnik/sp-tf2-classlimit

Description
This plugin will help keep classes balanced by forbidding them from joining when they're full and switching extra players to other classes.

Configuration
Copy ../cfg/source-python/class_limit/limits/default.json to default_server.json and edit it.
By default, classes are balanced basing on the percentage of the class throughout the team. You can set the balancing type to absolute to any class.

Also configs can be copied to ../cfg/source-python/class_limit/limits/maps/ folder and renamed to, for example, ctf_2fort.json or just ctf_.json. That'll apply these configs only on those maps.

Sample limits config

Syntax: Select all

{
"scout": {
"type": "percentage",
"limit": 33
},
"soldier": {
"type": "percentage",
"limit": 50
},
"pyro": {
"type": "percentage",
"limit": 33
},
"demo": {
"type": "percentage",
"limit": 33
},
"heavy": {
"type": "percentage",
"limit": 50
},
"engineer": {
"type": "percentage",
"limit": 33
},
"medic": {
"type": "percentage",
"limit": 100
},
"sniper": {
"type": "percentage",
"limit": 10
},
"spy": {
"type": "percentage",
"limit": 10
}
}


Permissions
This plugin supports following permissions:
  • class_limit.bypass.scout
  • class_limit.bypass.sniper
  • class_limit.bypass.soldier
  • class_limit.bypass.demo
  • class_limit.bypass.medic
  • class_limit.bypass.heavy
  • class_limit.bypass.pyro
  • class_limit.bypass.spy
  • class_limit.bypass.engineer
Each permission will protect the player from being autobalanced/restricted from the correspoding class. You can just give them class_limit.bypass.* permission.

Installation
  1. Install ControlledCvars custom package
  2. Download the latest development snapshot of this plugin
  3. Extract contents of the sp-tf2-classlimit-master directory to your mod folder
  4. Add the following line to autoexec.cfg:
    sp plugin load class_limit