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

TF2 Class limit


Post New Thread Reply   
 
Thread Tools Display Modes
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 12-29-2007 , 04:16   Re: TF2 Class limit
Reply With Quote #81

I love how you post this, and then two more people make comments about it not working.

THIS PLUGIN IS CURRENTLY BROKEN DUE TO AN UPDATE!!!

Maybe that will get their attention? I dunno, I don't think they know how to read.

Quote:
Originally Posted by joev View Post
The problems with this plugin are caused by a change VALVE made to the joinclass command in the last update. Consequently it's messed up this plugin which uses the old version of joinclass commands. (I know this because the same changes have caused me headaches with the suddendeath melee plugin)

I'm sure Nican will fix it (it's not a major rewrite) but keep in mind it's Christmas. He, like the rest of us, is probably busy doing other things right now

We'll just have to have a little patience

joev
CrimsonGT is offline
joev
Member
Join Date: Dec 2007
Old 12-29-2007 , 05:27   Re: TF2 Class limit
Reply With Quote #82

Quote:
Originally Posted by CrimsonGT View Post
I love how you post this, and then two more people make comments about it not working.

THIS PLUGIN IS CURRENTLY BROKEN DUE TO AN UPDATE!!!

Maybe that will get their attention? I dunno, I don't think they know how to read.
Heh. True. People rarely actually read the content of a message unless it's a big, bold one liner... so perhaps you'll grab their attention!

However, the MaxClassBETA2.sp, which mysteriously appeared on the attachment list with no actual comment from Nican appears to work for me...

Instead of using "joinclass 0" to block a change of class, it switches the player trying to use a "full" class into the next available non-full class... which bypasses the problem (not the most elegant solution but probably the only one that would work with the changes VALVE made to joinclass)

I think basically Nican added the attachment lately to deal with this issue and forgot to do an update message...

Nican? Comment?

joev
joev is offline
Mosalar
Senior Member
Join Date: Jul 2004
Location: Tampa Fl
Old 12-29-2007 , 08:21   Re: TF2 Class limit
Reply With Quote #83

Thanks Joev, I was basically replying to you about the beta2 version, but in the proper thread this time.

Crimson, ass much?

Last edited by Mosalar; 12-29-2007 at 08:33.
Mosalar is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 12-29-2007 , 17:32   Re: TF2 Class limit
Reply With Quote #84

I did an updated and tested with "tm| ScФpe[-SL-]"

Try it, he says it is working perfectly.
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
cspotcode
New Member
Join Date: Dec 2007
Old 12-30-2007 , 12:19   Re: TF2 Class limit
Reply With Quote #85

Nican, I think you have to re-add the part of your player_changeclass hook that says "if(class == oldclass) {return;}" Otherwise, some of the chat messages that are displayed don't make sense.

I blocked heavys. I was a pyro and I switched to heavy. It changed me back to a pyro and displayed two chat messages. The first said heavys were blocked and the second said pyros were blocked.

It's because, when the script changes the class back to pyro, it ends up invoking the player_changeclass hook again.

Anyway, thanks for the plugin! I recompiled with the "if" code re-added, and it works really well.

Last edited by cspotcode; 12-30-2007 at 12:33.
cspotcode is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 12-30-2007 , 13:00   Re: TF2 Class limit
Reply With Quote #86

I see, the function is re-calling it self...

ok, wait just a sec.
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
Neo_Bahamut_19
Senior Member
Join Date: Dec 2007
Old 12-30-2007 , 18:00   Re: TF2 Class limit
Reply With Quote #87

On another note, being as you have a way of restricting the classes, do you think you could set up a way to force everyone on the server to the same class? (sorry if this is spam, but just a thought, would be kind of fun to be able to force everyone heavy or something)
__________________
Neo_Bahamut_19 is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 12-30-2007 , 21:18   Re: TF2 Class limit
Reply With Quote #88

Try this:

Only snipers:
PHP Code:
"MaxClassPlayers"
{
    
//Default config if the map tree is not found
    
"default"
    
{
            
//When there is 6 players in the server
            
"1-32"
            
{
                 
//Team2 = red AND team3 = blue
                 //set to 0 if you want this to only work on one team
                 
"red"        "1"
                 "blue"        "1"
                 
                
//Put -1 for no limit, 0 for disalowed, and any other number to set the limit
                
"scout"        "0"
                "sniper"    "-1"
                "soldier"    "0"
                "demoman"    "0"
                "medic"        "0"
                "heavy"        "0"
                "pyro"        "0"
                "spy"        "0"
                "engineer"    "0"
            
}
    }

__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
Neo_Bahamut_19
Senior Member
Join Date: Dec 2007
Old 12-30-2007 , 21:50   Re: TF2 Class limit
Reply With Quote #89

I am talking about a possible way to set it up in the menu so that we can choose something like:

Server Commands>Force Players>Pyros Only
Server Commands>Force Players>Heavies Only
Server Commands>Force Players>Force Players Off
ect.

mainly to make maps like ctf_hallofdeath a little more interesting
__________________
Neo_Bahamut_19 is offline
flubber
Senior Member
Join Date: Oct 2007
Old 12-31-2007 , 08:16   Re: TF2 Class limit
Reply With Quote #90

Don't know if thats related but since i recall, the plug in is the only one i update those last days :
happened twice with player i'm sure of. Log from TF2, nothing in the sourcemod log
Code:
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "sniper"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "scout"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "sniper"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "scout"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "sniper"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "scout"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "sniper"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "scout"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "sniper"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "scout"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "sniper"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "scout"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "sniper"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "scout"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "sniper"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "scout"
L 12/31/2007 - 13:42:27: "[Llama] Rob<25><STEAM_0:1:4937134><Blue>" changed role to "sniper"
After that server keep doing those change roles, til I ctrl+C it and relaunch it.

Last edited by flubber; 12-31-2007 at 08:21.
flubber is offline
Reply



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 14:35.


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