Raised This Month: $12 Target: $400
 3% 

TF2 Class limit


Post New Thread Reply   
 
Thread Tools Display Modes
Automicbomb
AlliedModders Donor
Join Date: Nov 2012
Old 09-04-2013 , 18:09   Re: TF2 Class limit
Reply With Quote #451

I try to add map based class limit (only heavy) but still i get all the classes. Im trying to do melee only map with just heavys but only problem is the plugin
Automicbomb is offline
igotfits
Senior Member
Join Date: May 2009
Old 03-30-2014 , 15:30   Re: TF2 Class limit
Reply With Quote #452

I have but 2 questions............................

1: Is there anyway to fix it to where to the player whom is being switched from one team to another not to take a slot of the team hes being switched to? for (ex: I have 4 snipers on red, a blue sniper dies and gets switched over to red, When he is switched over from blue to red he knocks a red sniper off sniper and he takes his spot.) i want the player whos being switched to lose his spot not the one who isnt being switched.

2: sometimes it is a bit buggy sometimes the limit doesnt work sometimes it does, has it been updated to correct that?
igotfits is offline
robotortoise
Senior Member
Join Date: Nov 2013
Old 07-15-2014 , 23:53   Re: TF2 Class limit
Reply With Quote #453

Oh jeez. Yeah, this doesn't function anymore since Love and War. What happened?
__________________
-Robotortoise [Palutena's Bro]

If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

Contact me via Steam

I don't bite.


How to loop and compress .wav files

Me and my friends' server
robotortoise is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 06-20-2015 , 10:13   Re: TF2 Class limit
Reply With Quote #454

This plugin still works for me although it has been causing a slight problem lately. It tries to download files which are not on the server when you connect. Examples:

sound/vo/soldier_no01.wav
sound/vo/medic_no03.wav

Anyone have an idea why?
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
MyWarthog
Senior Member
Join Date: Feb 2013
Old 08-07-2015 , 02:26   Re: TF2 Class limit
Reply With Quote #455

Quote:
Originally Posted by eraserhead View Post
This plugin still works for me although it has been causing a slight problem lately. It tries to download files which are not on the server when you connect. Examples:

sound/vo/soldier_no01.wav
sound/vo/medic_no03.wav

Anyone have an idea why?
I fixed this. No more downloading. It was caused by the mod looking for the old .wav files as opposed to the new Valve method of using .mp3 files. The version is now 4.9. Enjoy.

Code:
 *		4.9 : by mywarthog
 *		  Fixed the voice files downloading. Caused by using the outdated extensions of .wav - They should now be .mp3.
Attached Files
File Type: sp Get Plugin or Get Source (MaxClass.sp - 619 views - 16.1 KB)

Last edited by MyWarthog; 08-07-2015 at 02:28.
MyWarthog is offline
MyWarthog
Senior Member
Join Date: Feb 2013
Old 08-07-2015 , 16:15   Re: TF2 Class limit
Reply With Quote #456

Released another update, 4.9a.

This fixed an issue where the version number change/update got overridden by the config files.... and thus caused an error on Player Join. The fix was to add the flag FCVAR_DONTRECORD to the sm_tf_maxclass CVar in order to prevent the auto-genned configuration file from having this written to it. If anyone else has this issue on a plugin with this sort of a thing, check for that. You will also need to remove that CVar from your config file, or delete it completely and regen it.



NOTE: BEFORE INSTALLING THIS PLUGIN, YOU WILL HAVE TO EITHER DELETE AND RECREATE YOUR cfg/sourcemod/maxclass.cfg FILE AND HAVE IT AUTO-REGENNED, OR JUST SIMPLY REMOVE THIS PART OF IT:

Code:
// TF2 max class
// -
// Default: "4.8"
sm_tf_maxclass "4.8"
YOU WILL ONLY HAVE TO DO THIS ONCE. FUTURE UPDATES FROM THIS VERSION (4.9a) WILL NO LONGER REQUIRE THIS.


Also... can this page (http://www.sourcemod.net/stats.php?m...0&addon_id=231) be fixred to track the right CVars now as well?

Sorry for the Double Post, hopefully this is OK in this case.

Code:
 *		4.9a : by mywarthog
 *		  Fixed the error on player join that was occuring: 'ConVarRef sm_tf_maxclass doesn't point to an existing ConVar'
 *		  I added my list to the names of the authors since it appears to be a list of anyone that's fixed a bug. Hopefully this is ok.
Attached Files
File Type: sp Get Plugin or Get Source (MaxClass.sp - 881 views - 16.4 KB)

Last edited by MyWarthog; 08-07-2015 at 19:06.
MyWarthog is offline
DIA666
Junior Member
Join Date: Sep 2016
Old 11-08-2016 , 03:00   Re: TF2 Class limit
Reply With Quote #457

Nice but can be better...
DIA666 is offline
matthewboy2000
New Member
Join Date: Mar 2017
Old 03-27-2017 , 12:14   Re: TF2 Class limit
Reply With Quote #458

the .txt config file isn't contained in the download.
matthewboy2000 is offline
DoctorSamsy
New Member
Join Date: Nov 2017
Old 11-19-2017 , 04:26   Re: TF2 Class limit
Reply With Quote #459

Where is the MaxClass.txt?
DoctorSamsy is offline
SSJG Goku
Junior Member
Join Date: Apr 2016
Old 02-04-2022 , 08:36   Re: TF2 Class limit
Reply With Quote #460

Works great to this day, I will post the links to the posts that has the files needed.

Latest version of the plugin that works.
https://forums.alliedmods.net/showpo...&postcount=456

The required MaxClass.txt file
https://forums.alliedmods.net/showpo...&postcount=393

Phrases found attached in the first post
https://forums.alliedmods.net/showpo...07&postcount=1

Installation;
  • Put MaxClass.smx into tf\addons\sourcemod\plugins
  • Put MaxClass.txt into tf\addons\sourcemod\configs
  • Put maxclass.phrases into tf\addons\sourcemod\translations
  • To edit the limits of each class, look into MaxClass.txt and it should be fairly easy to understand
SSJG Goku is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode