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

YES! Thank you!

EDIT: Second page is mine!

The RTB version now has a "/setclassfrominventory <class_name>" command that makes that classes items whatever is in your inventory. That way you don't need to know the script names.

Here's a sample save of the classes for seven of the nine classes of TF2, while not as balanced as the classes in TF2, they are all here except for Spy and Heavy. (I didn't have disguise kit, any of the watches, or minigun at the time)

Code: [Select]
$SYJDD::classes::names0 = "demoman";
$SYJDD::classes::names1 = "sniper";
$SYJDD::classes::names2 = "pyro";
$SYJDD::classes::names3 = "scout";
$SYJDD::classes::names4 = "engineer";
$SYJDD::classes::names5 = "spy";
$SYJDD::classes::names6 = "medic";
$SYJDD::classes::names7 = "heavy";
$SYJDD::classes::names8 = "soldier";
$SYJDD::classpicksforlife = 1;
$SYJDD::classused0 = 1;
$SYJDD::classused1 = 1;
$SYJDD::classused2 = 1;
$SYJDD::classused3 = 1;
$SYJDD::classused4 = 1;
$SYJDD::classused5 = 1;
$SYJDD::classused6 = 1;
$SYJDD::classused7 = 1;
$SYJDD::classused8 = 1;
$SYJDD::itemlayout0_0 = "tf2SwordItem";
$SYJDD::itemlayout0_1 = "TF2StickyBombItem";
$SYJDD::itemlayout0_2 = "tf2PipeItem";
$SYJDD::itemlayout0_3 = "";
$SYJDD::itemlayout0_4 = "";
$SYJDD::itemlayout1_0 = "tf2KukriItem";
$SYJDD::itemlayout1_1 = "TF2sniperItem";
$SYJDD::itemlayout1_2 = "tf2smgItem";
$SYJDD::itemlayout1_3 = "";
$SYJDD::itemlayout1_4 = "";
$SYJDD::itemlayout2_0 = "gc_axeItem";
$SYJDD::itemlayout2_1 = "flamerItem";
$SYJDD::itemlayout2_2 = "tf2ShotgunItem";
$SYJDD::itemlayout2_3 = "";
$SYJDD::itemlayout2_4 = "";
$SYJDD::itemlayout3_0 = "tf2stunbatItem";
$SYJDD::itemlayout3_1 = "TF2ForceItem";
$SYJDD::itemlayout3_2 = "TF2PistolItem";
$SYJDD::itemlayout3_3 = "";
$SYJDD::itemlayout3_4 = "";
$SYJDD::itemlayout4_0 = "tf2ShotgunItem";
$SYJDD::itemlayout4_1 = "PlaceSentryItem";
$SYJDD::itemlayout4_2 = "welderItem";
$SYJDD::itemlayout4_3 = "WranglerItem";
$SYJDD::itemlayout4_4 = "";
$SYJDD::itemlayout5_0 = "C4Item";
$SYJDD::itemlayout5_1 = "BombBotItem";
$SYJDD::itemlayout5_2 = "butterflyknifeItem";
$SYJDD::itemlayout5_3 = "C4Item";
$SYJDD::itemlayout5_4 = "";
$SYJDD::itemlayout6_0 = "tf2UbersawItem";
$SYJDD::itemlayout6_1 = "TF2MedigunItem";
$SYJDD::itemlayout6_2 = "tf2SyringeDrainItem";
$SYJDD::itemlayout6_3 = "";
$SYJDD::itemlayout6_4 = "";
$SYJDD::itemlayout7_0 = "tf2FistsItem";
$SYJDD::itemlayout7_1 = "TF2MinigunItem";
$SYJDD::itemlayout7_2 = "tf2ShotgunItem";
$SYJDD::itemlayout7_3 = "";
$SYJDD::itemlayout7_4 = "";
$SYJDD::itemlayout8_0 = "tf2ShovelItem";
$SYJDD::itemlayout8_1 = "tierstickGrenadeItem";
$SYJDD::itemlayout8_2 = "tierstickGrenadeItem";
$SYJDD::itemlayout8_3 = "tierstickGrenadeItem";
$SYJDD::itemlayout8_4 = "tf2ShotgunItem";
$SYJDD::numberofclasses = 9;
« Last Edit: November 14, 2010, 06:54:07 AM by DrenDran »

Yeah i saw the actual code.
Why don't you get the ID of the Image by doing "Imagename.getID()"?

Yeah i saw the actual code.
Why don't you get the ID of the Image by doing "Imagename.getID()"?
I changed it and reuploaded and changed the link on the OP.
I also reposted the classes.cs file for a decent tf2 classes tdm.

Thanks DrenDran. This is the first time an add-on I've suggested has been made.

I was wondering if you or someone else could make a GUI for it so that it's easier for that person to change classes?

I was wondering if you or someone else could make a GUI for it so that it's easier for that person to change classes?
However I highly doubt a decent interactive GUI for this is possible, seeing as that it'd be downloaded though the RTB GUI downloading system, and I read that the only functions that RTB let's you execute though a gui are "commandtoserver" and "popdialog" thus dynamic guis with names on buttons that change as the host changes the classes probably wouldn't be possible.
Basically, it's impossible, sorry.

Basically, it's impossible, sorry.

Not if you make the Gui execute just the commands themselves, if that's even possible.

Not if you make the Gui execute just the commands themselves, if that's even possible.
That would require everyone who comes to the server to have the add-on, which isn't gonna happen.



Basically, it's impossible, sorry.

That would require everyone who comes to the server to have the add-on, which isn't gonna happen.


What I was saying wasn't server-sided. I'm talking about a Client-side GUI that isn't required, but it makes it easier.

tried this on your server, it was glitchy as forget.

what if someone, choose a class, threw weapon on ground, changed class and then picked up the thrown weapon?

what if someone, choose a class, threw weapon on ground, changed class and then picked up the thrown weapon?
One class per lifetime. (you can change the amount though)
tried this on your server, it was glitchy as forget.
You don't know what you're talking about at all.