Page 1 of 1

DOD:S Class Manager

Posted: Sun Nov 22, 2015 7:50 pm
by Ben
DESCRIPTION:

This simple plugin will manage class restrictions according to the number of connected players.
For example: by default you need 12 players to unlock 1 MG per team and 26 players to unlock 2 MG per team.

Warning: dont close all classes else you will prevent players to join team.


CONVARS:

[*] dod_class_manager_enable - <0/1> = enable/disable class manager (Default: 1)

[*] dod_class_manager_sniper_enable - <0/1> = enable/disable class manager plugin for sniper class (Default: 1)
[*] dod_class_unlock_1_sniper - <0-32> = number of players on server needed to unlock one sniper (Locked: 0 / Default: 8)
[*] dod_class_unlock_2_sniper - <0-32> = number of players on server needed to unlock two snipers (Locked: 0 / Default: 18)
[*] dod_class_unlock_3_sniper - <0-32> = number of players on server needed to unlock three snipers (Locked: 0 / Default: 26)
[*] dod_class_unlock_4_sniper - <0-32> = number of players on server needed to unlock unlimited snipers (Locked: 0 / Default: 0)

[*] dod_class_manager_mg_enable - <0/1> = enable/disable class manager plugin for mg class (Default: 1)
[*] dod_class_unlock_1_mg - <0-32> = number of players on server needed to unlock one mg (Locked: 0 / Default: 12)
[*] dod_class_unlock_2_mg - <0-32> = number of players on server needed to unlock two mgs (Locked: 0 / Default: 26)
[*] dod_class_unlock_3_mg - <0-32> = number of players on server needed to unlock three mgs (Locked: 0 / Default: 0)
[*] dod_class_unlock_4_mg - <0-32> = number of players on server needed to unlock unlimited mgs (Locked: 0 / Default: 0)


optional:

[*] dod_class_manager_rifle_enable - <0/1> = enable/disable class manager plugin for rifleman class (Default: 0)
[*] dod_class_unlock_1_rifle - <0-32> = number of players on server needed to unlock one rifle (Locked: 0 / Default: 1)
[*] dod_class_unlock_2_rifle - <0-32> = number of players on server needed to unlock two rifles (Locked: 0 / Default: 1)
[*] dod_class_unlock_3_rifle - <0-32> = number of players on server needed to unlock three rifles (Locked: 0 / Default: 1)
[*] dod_class_unlock_4_rifle - <0-32> = number of players on server needed to unlock unlimited rifles (Locked: 0 / Default: 1)

[*] dod_class_manager_assault_enable - <0/1> = enable/disable class manager plugin for assault class (Default: 0)
[*] dod_class_unlock_1_assault - <0-32> = number of players on server needed to unlock one assault (Locked: 0 / Default: 1)
[*] dod_class_unlock_2_assault - <0-32> = number of players on server needed to unlock two assaults (Locked: 0 / Default: 1)
[*] dod_class_unlock_3_assault - <0-32> = number of players on server needed to unlock three assaults (Locked: 0 / Default: 1)
[*] dod_class_unlock_4_assault - <0-32> = number of players on server needed to unlock unlimited assaults (Locked: 0 / Default: 1)

[*] dod_class_manager_support_enable - <0/1> = enable/disable class manager plugin for support class (Default: 0)
[*] dod_class_unlock_1_support - <0-32> = number of players on server needed to unlock one support (Locked: 0 / Default: 1)
[*] dod_class_unlock_2_support - <0-32> = number of players on server needed to unlock two supports (Locked: 0 / Default: 1)
[*] dod_class_unlock_3_support - <0-32> = number of players on server needed to unlock three supports (Locked: 0 / Default: 1)
[*] dod_class_unlock_4_support - <0-32> = number of players on server needed to unlock unlimited supports (Locked: 0 / Default: 1)

[*] dod_class_manager_rocket_enable - <0/1> = enable/disable class manager plugin for rocket class (Default: 0)
[*] dod_class_unlock_1_rocket - <0-32> = number of players on server needed to unlock one rocket (Locked: 0 / Default: 1)
[*] dod_class_unlock_2_rocket - <0-32> = number of players on server needed to unlock two rockets (Locked: 0 / Default: 1)
[*] dod_class_unlock_3_rocket - <0-32> = number of players on server needed to unlock three rockets (Locked: 0 / Default: 1)
[*] dod_class_unlock_4_rocket - <0-32> = number of players on server needed to unlock unlimited rockets (Locked: 0 / Default: 1)
[/color]
PREVIEW:
Image


SERVER RUNNING THIS PLUGIN:
http://www.gametracker.com/search/?sear ... rt=&order=


CHANGELOG:

1.00 - Initial release

Re: DOD:S Class Manager

Posted: Fri Nov 27, 2015 10:08 pm
by vintage
Ben ?

Is this causing problem with dod TMS class restrict ?

Because your idea is quite good ! even VERY good !!!) !

Re: DOD:S Class Manager

Posted: Sat Nov 28, 2015 11:56 am
by Ben
It's not a problem to use both plugins at the same time. The class Manager only modifies server cvars like "mp_limit_allies_rifleman" depending on number of connected players ...

Re: DOD:S Class Manager

Posted: Fri Jan 29, 2016 8:17 pm
by 1400gsx
Hi BEN, your plugin is good, it is possible to modify the plugin?
The video shows how you can choose the class mg and sniper.
How fix the problem?

Re: DOD:S Class Manager

Posted: Sat Jan 30, 2016 5:03 pm
by Ben
The plugin changes the cvars everytime a player chooses a new class. At mapstart, cvars in server.cfg are read. Thats why (only) the first player connected after mapstart sees the default config.

Solution:
Close the restricted classes (mg and sniper) in your server.cfg ;) and they will be opened by the plugin (depending players connected)

Re: DOD:S Class Manager

Posted: Sat Jan 30, 2016 6:01 pm
by 1400gsx
Thanks BEN, it works)))

Re: DOD:S Class Manager

Posted: Sat Feb 06, 2016 12:53 am
by MihailM
Why reinvent the wheel is, with the change of classes. I've made through the admin panel via adminmenu_custom.txt.
And then, as you can for each card to make your config. Of course there is a long and difficult.
And each card has its own "highlight" if you're interested, I can throw in a personal or an example here.
ps and it is not necessary to load the plug-in server.

Re: DOD:S Class Manager

Posted: Wed Feb 10, 2016 11:07 am
by vintage
Sure MihailM,
But Ben as done a nice job with this, and it remains a very useful plugins !
I use it in place of the "restrict class addon" from dod TMS.
So, don't have to manage in live "by hand" what's allowed on the server, it's made automatically ! :)
For some little map with a special cfg, I just add : dod_class_manager_enable 0
Yeepee Yaaaaaay ! ;)

But yes, you can post your adminmenu if some are interessed !!
Every thing that can help servers admins is cool !
Because every one do the way he like (most important is to have fun to play with good friends and good servers)

Have a nice day !

Re: DOD:S Class Manager

Posted: Wed Feb 10, 2016 6:30 pm
by MihailM
But yes, you can post your adminmenu if some are interessed !!
Of course I will lay out the question where?
in this topic, or can do what some of experimental. With their experience and so on. Useful for Dod:s
P.s. Added to the attachment, the text in Russian

I agree that Ben, has done such a good job with the plugin. But there are some flaws in it that can ruin the game on some maps. There are rigid adherence to the change of number of the classrooms. At this the man I did not like.
Especially MG(machinegun) for the class.

Sorry for the bad english (Google Translate)

p.s vintage , edit my post then, if something - wrong etc ..

Re: DOD:S Class Manager

Posted: Tue Feb 16, 2016 6:01 am
by vintage
Hi MihailM !

No need to change your google translate ! even with some little errors everybody can understand what you've done !

Hey ! Good idea to change while ingame via adminmenu_custom 'on the fly' !!!

Thks for sharing !