Class Management System
7 KB, 13 years ago, submitted by
This mod allows is mostly for those servers where there is a battle of some sort and players get to choose classes with certain weapons. This helps create and manage those classes.
There is an RTB Pref for changing how many times you can change class in a single life, the default is just once. The host can type into the console "saveclasses();" to save classes, and "loadclasses();" to load the classes that they saved, this might be replaced with a better system, but I'm not sure if I should let everyone save the servers classes or not. (It'd be a bit like bricks that way)
[The slash functions are now obsolete due to the completion of the GUI]
Commands:
/listclasses
---Lists all the classes you can choose from.
/listclassitems <class_name>
---Lists all the script names for all the items in the class.
/createclass <class_name>
---Super admin only, creates a class.
/removeclass <class_name>
---Super admin only, removes a class.
/setclassweapon <class_name> <slot> <item_name>
---Super admin only, slots are 0,1,2,3,4 only. Use script names for items, not ui names.
/chooseclass <class_name>
---Can only be done once per lifetime for now.
/clearclasses
---Super admin only, clears all classes.
/setclassfrominventory <class_name>
---Will attempt to set all five of the given classes weapons to what's in your inventory. (good if you don't know script names)
/setclasspoints <classname> <points> -sets required points, a number less than 1 cancels the requirement
/setclassdatablock <classname> <datablock> -sets the datablock of players using the class, "none" cancels the datablock
/editclass <classname> - opens a gui which lets you pick from drop-down lists all the items of a class, and the player datablock, and the required points.
Examples of what a "script name" of an item is:
RocketLauncherItem --- Default Rocket Launcher
GunItem --- Default Gun
RadioBeaconItem --- Airstrike Beacon
flashgrenadeItem --- Flash Grenade
Features to be added very soon:
---Letting people add descriptions to items that show with /listclassitems or maybe /listclasses
---Letting people set weapons by ui name or script name.
---RTB pref for default slot maximum. (current is 5)
---Any thing else suggested.
A few suggestions:
-A command to set a specified class as the "default" class
-An output event that sets a player to specified class
-A UI (for visual people)
-Uniforms attached to classes (e.g. "Medic" class = white shirt with red shoulders; "Soldier" class = olive shirt and brow pants, etc.)
-A command to force players into a certain class (not really for DMs but more for military RPs where each class is a rank. Promotion = new class. Would require a co
"Lucky" for me, I just started a whole TDM with a bunch of classes using VCE events. Damnit...
And why would I (assuming I was this flaw guy) make two accounts and use both?
I would love a GUI of sorts for this.
I would also like a description of the class, like you were possibly going to do.
Base it off of the script used in TDM due to its stability.
Thanks DrenDran, it's a great add-on and I like using it.
After what you said, I can't tell if this is sarcasm.
And can you make this compatible with slayer, that would be greatly appreciated.