Author Topic: (UPDATED) Making it easier to set up a classes system, mostly for TDMs and DMs.  (Read 6552 times)

This post is a copy of the RTB post as it is now, including the file.

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)

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)

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.

Download:
http://www.filefront.com/17513259/Script_Classes.zip
« Last Edit: November 14, 2010, 06:31:36 AM by DrenDran »

I like how when you make an addon, it fits perfectly with what I'm looking for or in need of. You don't just post addons that 5 people need or something that has already been made that's a tiny bit better then the original. I'm glad someone finally made an addon like this.

I like how when you make an addon, it fits perfectly with what I'm looking for or in need of. You don't just post addons that 5 people need or something that has already been made that's a tiny bit better then the original. I'm glad someone finally made an addon like this.
Thanks, it's nice to hear that.



I have completed some of my tasks and have submitted the updated version to RTB.


i have a feeling this is going to take longer than just making a spawn room.
this mod doesnt look useful to me.
i would rather just build a spawn room

I was thinking about this too.
However, a GUI in the minigame settings would be better i guess.
I had almost the same design as Space Guy's TDM team settings GUI in mind.

I allready drawed some sketches, but i am not experienced in GUI's anyhow. :C

i have a feeling this is going to take longer than just making a spawn room.
this mod doesnt look useful to me.
i would rather just build a spawn room
Classes, not free taking.
To make actual classes used to take a ton of event work, now if you know the script names (which can usually be guessed) it's only a few slash commands.


nice double toast post handicap.

Not really double posting if there is a message in between them, now is it?

ADD: I see this being used with Army RPs too.
« Last Edit: November 13, 2010, 08:33:03 PM by Killer2 »



Holy crap! for once, a filefront link that actually works!