Steam Avatar
You aren't signed in

Class Management System

7 KB, 13 years ago, submitted by DrenDran

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.

Animinus
I dont get this...
the stitch
me neither. what is it?
DrenDran
It creates classes like "medic", "soldier", "scout" and such for (Team) DeathMatch servers.
CLONEMONKEY
kewl
justinlego001
First Rating! ^_^ 5/5
Hyperbob
Most excellent, sir!

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
Funnelcakes
Man this is great. 5/5.

"Lucky" for me, I just started a whole TDM with a bunch of classes using VCE events. Damnit...
I get the feeling that you are Flaw, but that's just me.
DrenDran
Who the hell is "Flaw"?
And why would I (assuming I was this flaw guy) make two accounts and use both?
YOUSPAHY
Flaw made a Block Bastion mod that has a similar class choosing system.
DrenDran
Link to it and I'll compare.
lol! it took me about two hours to make classes with events and stuff... but here it is! 5/5 + download
lovely. great job. I could use typing in te ui names of the weapons and items, howerver, becuase i'm not much of a finder when it comes to looking for weapon names.

I would love a GUI of sorts for this.
(sorry for double post)

I would also like a description of the class, like you were possibly going to do.
The Titanium
Avatar editing.
Base it off of the script used in TDM due to its stability.
CJrocks17
Wow, awesome! I am playing on a server right now with classes and its the server with the most people... CLASSES ARE EPIC
slimabob
Heck yeah, GUI is out!
Trilogy
I'd really like a change in the way you save your classes, I always get errors when I goto load them. Then I have to make them all over again...
Trilogy
Sorry for double post, but now I get weird glitches whenever I restart the server. The GUI tab doesn't go away in the minigame's window, and it's really annoying. I have to delete the add-on and reinstall to get it back to normal.

Thanks DrenDran, it's a great add-on and I like using it.
DrenDran
>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.
Trilogy
No no no, I really do like using it hahaha. sorry
hunter schmidt
YEA I LOVE THIS ADDON!
Infinite Killzone
You need to make it so you can load the Classes...
Deluxe
Dren, you seriously need to update this.
And can you make this compatible with slayer, that would be greatly appreciated.
froglover06
Saw Picture, Was like "Hey he stole my idea!"
sniper150
can they make an update where when you can click a brick and then you have that class?
Dark Rundas
UNFREAGINBELIEVABLE!!!!!!