With the help of :
Image

Great Service, Support, Prices ! THE place to rent a good server ! Created by some from ex "mysTix" well known DoD:S Team
IMPORTANT !!!!
Need volonteer to store the website and keep the good job !!!!
I cannot maintain the website anymore.. Thanks !!
Contact by Steam please !

Je cherche un volontaire pour héberger le site et conserver le travail énorme fait par tous !
Je n'ai plus le temps de faire ça ! Merci !!!
Contactez-moi par Steam !

DOD:S Class Manager

The place to give server admins powerful help
Post Reply
User avatar
Ben
Posts: 34
Joined: Sat Nov 21, 2015 4:27 pm
Contact:

DOD:S Class Manager

Post by Ben » Sun Nov 22, 2015 7:50 pm

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
Attachments
dods_classmanager.zip
source and compiled file inside
(7.24 KiB) Downloaded 513 times
dods_classmanager.zip
source and compiled file inside
(7.24 KiB) Downloaded 513 times
User avatar
vintage
Site Admin
Posts: 125
Joined: Thu Nov 19, 2015 7:47 am
Location: France

Re: DOD:S Class Manager

Post by vintage » Fri Nov 27, 2015 10:08 pm

Ben ?

Is this causing problem with dod TMS class restrict ?

Because your idea is quite good ! even VERY good !!!) !
Right behind you ! ^^
User avatar
Ben
Posts: 34
Joined: Sat Nov 21, 2015 4:27 pm
Contact:

Re: DOD:S Class Manager

Post by Ben » Sat Nov 28, 2015 11:56 am

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 ...
User avatar
1400gsx
Posts: 13
Joined: Fri Jan 29, 2016 2:52 am
Location: Hello Moscow ;)

Re: DOD:S Class Manager

Post by 1400gsx » Fri Jan 29, 2016 8:17 pm

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?
Sorry do not speak English.
Google's translate.
User avatar
Ben
Posts: 34
Joined: Sat Nov 21, 2015 4:27 pm
Contact:

Re: DOD:S Class Manager

Post by Ben » Sat Jan 30, 2016 5:03 pm

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)
User avatar
1400gsx
Posts: 13
Joined: Fri Jan 29, 2016 2:52 am
Location: Hello Moscow ;)

Re: DOD:S Class Manager

Post by 1400gsx » Sat Jan 30, 2016 6:01 pm

Thanks BEN, it works)))
Sorry do not speak English.
Google's translate.
User avatar
MihailM
Posts: 49
Joined: Mon Dec 28, 2015 1:39 pm
Location: Russia
Contact:

Re: DOD:S Class Manager

Post by MihailM » Sat Feb 06, 2016 12:53 am

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.
https://dayofdefeat.ucoz.net/ - Russian DOD:s site
User avatar
vintage
Site Admin
Posts: 125
Joined: Thu Nov 19, 2015 7:47 am
Location: France

Re: DOD:S Class Manager

Post by vintage » Wed Feb 10, 2016 11:07 am

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 !
Right behind you ! ^^
User avatar
MihailM
Posts: 49
Joined: Mon Dec 28, 2015 1:39 pm
Location: Russia
Contact:

Re: DOD:S Class Manager

Post by MihailM » Wed Feb 10, 2016 6:30 pm

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 ..
Attachments
changeclass(add adminmenu-ru) fix.zip
add the adminmenu.txt Russian text.
(699 Bytes) Downloaded 358 times
changeclass(add adminmenu-ru) fix.zip
add the adminmenu.txt Russian text.
(699 Bytes) Downloaded 358 times
Last edited by MihailM on Sun Aug 21, 2016 9:00 pm, edited 1 time in total.
https://dayofdefeat.ucoz.net/ - Russian DOD:s site
User avatar
vintage
Site Admin
Posts: 125
Joined: Thu Nov 19, 2015 7:47 am
Location: France

Re: DOD:S Class Manager

Post by vintage » Tue Feb 16, 2016 6:01 am

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 !
Right behind you ! ^^
Post Reply