AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [EXTENSION] CSS Team Balancer (https://forums.alliedmods.net/showthread.php?t=105984)

CrimsonGT 10-10-2009 12:19

[EXTENSION] CSS Team Balancer
 
2 Attachment(s)
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;
}


Chris-_- 10-10-2009 13:13

Re: [EXTENSION] CSS Team Balancer
 
Is something like this possible for TF2 aswell?

Forgive me if that's a stupid question :p

CrimsonGT 10-10-2009 13:22

Re: [EXTENSION] CSS Team Balancer
 
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.

DJ Tsunami 10-11-2009 13:27

Re: [EXTENSION] CSS Team Balancer
 
It's the same function :)

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

And yes, source code please :o

pheadxdll 10-11-2009 15:55

Re: [EXTENSION] CSS Team Balancer
 
Sourcecode would be amazing, how do you get the client index and team from that function? :o

Chris-_- 10-15-2009 13:58

Re: [EXTENSION] CSS Team Balancer
 
Welcome to the bump train. >_>

pheadxdll 10-15-2009 15:01

Re: [EXTENSION] CSS Team Balancer
 
Chris, if I get the source code, I'll make a tf2 version. Unless crimson wants to do it himself. :P

CrimsonGT 10-15-2009 15:11

Re: [EXTENSION] CSS Team Balancer
 
Ill post it today, I forgot about it, and goodluck with that, its not the same in TF2, I looked a few days ago.

DJ Tsunami 10-19-2009 19:53

Re: [EXTENSION] CSS Team Balancer
 
Hump de bump doop bodu
Hump de bump doop bop
Bump de hump doop bodu

Bump bump

DontWannaName 10-20-2009 03:26

Re: [EXTENSION] CSS Team Balancer
 
http://i207.photobucket.com/albums/b...9818525352.gif

:D


All times are GMT -4. The time now is 22:08.

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