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

[EXTENSION] CSS Team Balancer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 10-10-2009 , 12:19   [EXTENSION] CSS Team Balancer
Reply With Quote #1

This is a simple extension I made for a client so that I could give his donators immunity to the built in team balancer.

I included a sample plugin to help with setup. I will try and get the Linux version compiled, and release the source code today or tommorow.

Example:

Code:
public Action:OnBalancePlayer(client, team)
{
    if(GetUserFlagBits(client) & ADMFLAG_RESERVATION)
    {
        LogMessage("Team Balancer blocked switch of player: %N reason: Immunity", client);
        return Plugin_Handled;
    }

    return Plugin_Continue;
}
Attached Files
File Type: zip css_teambalance.zip (44.1 KB, 271 views)
File Type: zip css_teambalance_source.zip (1.84 MB, 331 views)
__________________

Last edited by CrimsonGT; 10-20-2009 at 11:17.
CrimsonGT is offline
Chris-_-
SourceMod Donor
Join Date: Oct 2008
Old 10-10-2009 , 13:13   Re: [EXTENSION] CSS Team Balancer
Reply With Quote #2

Is something like this possible for TF2 aswell?

Forgive me if that's a stupid question :p
Chris-_- is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 10-10-2009 , 13:22   Re: [EXTENSION] CSS Team Balancer
Reply With Quote #3

Should be, I dont really have the time right now to do it as I am getting more jobs on here than I know what to do with. (this was for a paid job, the client just didnt mind this part being released) but if I get time in the near future I could try and find some time to do it for TF2.
__________________
CrimsonGT is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 10-11-2009 , 13:27   Re: [EXTENSION] CSS Team Balancer
Reply With Quote #4

It's the same function

CCSGameRules::BalanceTeams(void)
CTeamplayRoundBasedRules::BalanceTeams(bool)

And yes, source code please
__________________
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
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 10-11-2009 , 15:55   Re: [EXTENSION] CSS Team Balancer
Reply With Quote #5

Sourcecode would be amazing, how do you get the client index and team from that function?
pheadxdll is offline
Chris-_-
SourceMod Donor
Join Date: Oct 2008
Old 10-15-2009 , 13:58   Re: [EXTENSION] CSS Team Balancer
Reply With Quote #6

Welcome to the bump train. >_>
Chris-_- is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 10-15-2009 , 15:01   Re: [EXTENSION] CSS Team Balancer
Reply With Quote #7

Chris, if I get the source code, I'll make a tf2 version. Unless crimson wants to do it himself.
pheadxdll is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 10-15-2009 , 15:11   Re: [EXTENSION] CSS Team Balancer
Reply With Quote #8

Ill post it today, I forgot about it, and goodluck with that, its not the same in TF2, I looked a few days ago.
__________________
CrimsonGT is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 10-19-2009 , 19:53   Re: [EXTENSION] CSS Team Balancer
Reply With Quote #9

Hump de bump doop bodu
Hump de bump doop bop
Bump de hump doop bodu

Bump bump
__________________
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
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 10-20-2009 , 03:26   Re: [EXTENSION] CSS Team Balancer
Reply With Quote #10



__________________

DontWannaName 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 20:10.


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