Tutorial Guide

How to limit classes

Follow the guide, work through the sections in order, and keep the attached resources nearby while you go.

By dee Updated 2026-04-10
Category Mapping/Modding
Views 46
Resources 0
Format Step Guide
Walkthrough

In this tutorial we will explain how to limit classes for Team Fortress Classic.

The Classes

No Limits = 0
Civilian Only = -1
Scout = 1
Sniper = 2
Soldier = 4
Demoman = 8
Medic = 16
Heavy Weapons Guy = 32
Pyro = 64
Spy = 256
Engineer = 512
No Random Class = 128


# The Flags

If you wanted only specific classes. You would take the value after the = and add them all up minus the classes you want.

Example: You only want Medic and Scout classes.

You would add up 2+4+8+32+64+256+512+128 which would = 1006

You would then add that to the info_tfdetect entity with Blue class limits toggleflags as 1006