Raised This Month: $32 Target: $400
 8% 

TF2 Class Restrictions 0.6 (Updated 08/13/09)


Post New Thread Reply   
 
Thread Tools Display Modes
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-23-2008 , 14:43   Re: TF2 Class Restrictions
Reply With Quote #11

Did you compile it on 1.1?
bl4nk is offline
fattitj
Member
Join Date: Nov 2006
Old 06-23-2008 , 15:15   Re: TF2 Class Restrictions
Reply With Quote #12

i recompiled it in 1.2 now, and no errors this time
fattitj is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-23-2008 , 16:00   Re: TF2 Class Restrictions
Reply With Quote #13

I believe you mean 1.0.2.
bl4nk is offline
r3dh3adkid
Senior Member
Join Date: Apr 2008
Location: Georgia
Old 06-23-2008 , 16:29   Re: TF2 Class Restrictions
Reply With Quote #14

Any way you could add random?
__________________
r3dh3adkid is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 06-23-2008 , 18:04   Re: TF2 Class Restrictions
Reply With Quote #15

You mean make it choose a random team and class for a player that just connected?
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
r3dh3adkid
Senior Member
Join Date: Apr 2008
Location: Georgia
Old 06-23-2008 , 18:34   Re: TF2 Class Restrictions
Reply With Quote #16

No No like if I wanted 5 maps where each team is set to a random class each time u go to the map...

Like...the cvar would be like

sm_classrestrict_red_random
sm_classrestrict_blue_random

It would do exactly the same as the other cvars except randomly choose a class.

Er...hope that makes sense?
__________________
r3dh3adkid is offline
Freelancer
Senior Member
Join Date: Jun 2007
Location: Bristol , uk
Old 06-23-2008 , 20:11   Re: TF2 Class Restrictions
Reply With Quote #17

Quote:
Originally Posted by DJ Tsunami View Post
You mean make it choose a random team and class for a player that just connected?
Good idea, would it still be possable to make them join even with restrictions? and still be random team and random class?
Freelancer is offline
ratty
SourceMod Donor
Join Date: Jan 2006
Old 06-23-2008 , 20:39   Re: TF2 Class Restrictions
Reply With Quote #18

Thanks for this plugin, its awesome.

However, my error logs are filling with
Native "GetClientTeam" reported: Client 16 is not in game
possibly due to the bots on my server

One thing you should do is call IsFakeClient(client) with your other error checks to filter out bots, such as SourceTV. I'll fix up my own copy, but I just wanted to suggest it.

Last edited by ratty; 06-23-2008 at 21:01.
ratty is offline
chundo
Senior Member
Join Date: May 2008
Old 06-24-2008 , 02:08   Re: TF2 Class Restrictions
Reply With Quote #19

Works great, thanks. Will be nice to have around when the next TF2 unlockables come out.

Any chance you can add a cvar that lets me specify I want the limits interpreted as percentages rather than hard numbers? If I have 12 players on the team, I might want to limit it to 3 pyros, but for 6 on 6, 3 is still too many.
__________________
chundo is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 06-24-2008 , 04:17   Re: TF2 Class Restrictions
Reply With Quote #20

@r3dh3adkid: yeah, that kind of makes sense I'll look into it.

@Freelancer: well, I would have them join a team that's not restricted, right?

@ratty: you're right, I don't check for bots yet. Will add that.

@chundo: sounds like a sexy idea Will add.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami 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 17:00.


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