Raised This Month: $51 Target: $400
 12% 

TF2: ClassChooser


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
bl4nk
SourceMod Developer
Join Date: Jul 2007
Plugin ID:
328
Plugin Version:
1.0.2
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Choose a class for everyone to spawn as
    Old 03-23-2008 , 14:52   TF2: ClassChooser
    Reply With Quote #1

    ClassChooser
    Choose a class for everyone to spawn as.

    Requirements:
    SourceMod snapshot build 2009 or later.

    CVars:
    sm_classchooser_enable
    • 0 = Disable the plugin
    • 1 = Enable the plugin
    sm_classchooser_class
    • scout, demoman (or demo), engineer (or engy), medic, pyro, soldier, spy, sniper, heavy (or hwg) - spawn as the chosen class
    • random - spawn as a random class each time
    • none (or anything not listed above) - spawn as the player's chosen class
    sm_classchooser_engineer_tools
    • 0 = Disable engineers spawning with their build tools
    • 1 = Enable engineers spawning with their build tools
    sm_classchooser_melee
    • 0 = Disable melee only mode (players spawn with weapons)
    • 1 = Enable melee only mode
    Changelog:
    • 1.0.0
      • Initial release
    • 1.0.1
      • Added cvar sm_classchooser_engineer_tools to control whether or not engineers will spawn with their build tools when the chosen class is set to engineer.
    • 1.0.2
      • Fixed the engineer tools cvar; it now strips the proper weapons. It also will work using random mode now, since they will most likely become a different class next time they spawn.
      • Added cvar sm_classchooser_melee to control whether or the game is melee only. Turning this on will also strip all weapons from living players. There's also a enable/disable message printed to chat.
      • Changing the class cvar to something not defined will not crash the server; it will let the players choose their class.
    Notes:
    • With this plugin I'm releasing my TF2 include file. It includes a variety of useful stocks for TF2.
      • The TF2 extension included with SM now makes my include file useless. It's no longer a requirement.
    • You won't be able to compile the plugin using the online compilers since I use said include file.
      • You can now compile using the online compilers since my include isn't needed any longer.
    • You can only choose one class for the plugin to spawn players as currently.
    • If you choose engineer as the class to spawn as, players have to manually change their class to engy or else their buildings will be destroyed when they spawn (because they will try to spawn as their chosen class, but be forced to engineer).
      • Player's chosen class and desired class is now set, so this isn't a problem either.
    • If the class cvar is set to random and the engineer cvar is set to give no build tools, the engineers will spawn with their build tools. This is because the build tools cvar is meant to prevent camping.
      • The build tools cvar will now strip on random mode.
    Attached Files
    File Type: sp Get Plugin or Get Source (classchooser.sp - 3705 views - 5.6 KB)

    Last edited by bl4nk; 06-15-2008 at 13:38.
    bl4nk is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 02:17.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode