View Single Post
Author Message
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 03-15-2009 , 22:07   [TF2] Class Enforcer
Reply With Quote #1

Current version: 0.2.1

Purpose: To force red or blue to one class or another. Useful to have for those fun gaming nights or for some achievement maps.

Cvars with their default value:
  • sm_ce_enable "0" Enable/Disable 1/0
  • sm_ce_blue "" Forced class for the blue team.
  • sm_ce_red "" Forced class for the red team.
  • sm_ce_random "0" Enable/Disable random class rounds. (entire team keeps the same class) 1/0
  • sm_ce_admin "0" Override for admins with the slay (f) flag. 1/0
Acceptable Classes: scout, soldier, pyro, demo/demoman, heavy, engineer/engy, medic, sniper, spy, and random works as well.

Reminders:

Leaving any class cvar blank simply ignores any forced class for that team. Putting in something wild defaults the class to scout. Admin override works for anyone that can run the slay command. (sm_slay)
Attached Files
File Type: sp Get Plugin or Get Source (class_enforcer.sp - 2531 views - 4.4 KB)

Last edited by pheadxdll; 01-14-2013 at 19:41.
pheadxdll is offline