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

DOD:S Simple Team Balancer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silent_Water
Member
Join Date: Sep 2008
Plugin ID:
655
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    DOD:S Port of Simple Team Balancer
    Unapprover:
    Reason for Unapproving:
    Copy of an existing plugin and same cvars.
    Old 12-01-2008 , 16:15   DOD:S Simple Team Balancer
    Reply With Quote #1

    Port of
    Simple Team Balancer 0.0.0 for DOD:S
    (Original version 1.4.0 by Antithasys)

    Hello,

    I've found this great plugin for TF2 for controlling Team Balance.

    So I've ported it to DOD:S because I never could make it better by myself. It is coded very clean and transparent and works stable on our servers.

    That's all - if you want it, change it yourself. Its so easy that everyone can do it.

    Last edited by Silent_Water; 12-02-2008 at 05:41.
    Silent_Water is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Location: The Netherlands
    Old 12-01-2008 , 17:00   Re: DOD:S Simple Team Balancer
    Reply With Quote #2

    Well you could've at least asked the original author
    __________________
    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
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 12-01-2008 , 18:27   Re: DOD:S Simple Team Balancer
    Reply With Quote #3

    Not really sure how to respond to this. You clearly didn't ask and just copied 99.9% of the code; although you do give me credit throughtout. If you would have asked, I mite have even helped.

    From looking the only thing you changed was the events hooked. Not really sure if that is good enough to make it work in DOD without other modifications since I don't really know the game.

    I do know that it won't get approved for the simple reason that you didn't change the public cvar and you can't use one already in use.
    Antithasys is offline
    madmonkey
    Junior Member
    Join Date: Nov 2008
    Old 12-01-2008 , 18:31   Re: DOD:S Simple Team Balancer
    Reply With Quote #4

    Nice one,
    but can you make a cvar for the time :
    A player will not be switched more than once in 5 (default) minutes.

    or can i self change the time in the .sp ?
    madmonkey is offline
    ThatGuy
    Senior Member
    Join Date: Nov 2007
    Old 12-01-2008 , 20:17   Re: DOD:S Simple Team Balancer
    Reply With Quote #5

    Quote:
    Originally Posted by Silent_Water View Post
    P

    The following console variables do NOT work in DOD:S
    • stb_uberlevel - Min level medic must have to have priority over other players. Setting to 0 will rarely switch a living medic
    • stb_mp_autoteambalance
    • stb_mp_teams_unbalance_limit

    Why not remove them if they don't work?
    __________________
    ThatGuy is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 12-02-2008 , 03:29   Re: DOD:S Simple Team Balancer
    Reply With Quote #6

    You dont need to know how to code to edit an existing plugin, you just need the events changed for DOD. He didnt know how to take them out.
    __________________

    DontWannaName is offline
    Silent_Water
    Member
    Join Date: Sep 2008
    Old 12-02-2008 , 05:21   Re: DOD:S Simple Team Balancer
    Reply With Quote #7

    Quote:
    Originally Posted by Antithasys View Post
    Not really sure how to respond to this. You clearly didn't ask and just copied 99.9% of the code; although you do give me credit throughtout. If you would have asked, I mite have even helped.

    From looking the only thing you changed was the events hooked. Not really sure if that is good enough to make it work in DOD without other modifications since I don't really know the game.

    I do know that it won't get approved for the simple reason that you didn't change the public cvar and you can't use one already in use.
    Sorry Antithasys, yes you are right. I better had to contact you BEFORE I published this. And you are right, I have just modified your code a bit to work with DOD:S. I noted this above.

    What should I do? Your plugin thread is clearly marked as to be ONLY for TF2. And you noted that your project is finished. When I post there, no one who is interested in DOD:S plugins will notice this. So I've started a new thread.

    Please could you add a simple game type check to your plugin to make it work with DOD:S as well? My thread can be removed then...

    I could contribute what is needed with DOD:S to make it work. Hint:

    Code:
    #define TF2 0
    #define DODS 1
    new gameType = TF2;
    /*... */
    decl String:gameName[80];
    GetGameFolderName(gameName, sizeof(gameName));
    if(StrEqual(gameName, "tf2"))
        gameType = TF2;
    else if(StrEqual(gameName, "dod"))
       gameType = DODS;
    /* ... */
    if (gameType == TF2) {
    /*... */
    } else if(gameType == DODS) {
       HookEvent("player_death", HookPlayerDeath, EventHookMode_Post);
       HookEvent("player_team", HookPlayerChangeTeam, EventHookMode_Pre);
       HookEvent("dod_round_start", HookRoundStart, EventHookMode_PostNoCopy);
       HookEvent("dod_round_win", HookRoundEnd, EventHookMode_Post);
       HookEvent("dod_point_captured", HookControlPointCapture, EventHookMode_PostNoCopy);
    }
    Thank you!
    Silent_Water is offline
    Silent_Water
    Member
    Join Date: Sep 2008
    Old 12-02-2008 , 05:37   Re: DOD:S Simple Team Balancer
    Reply With Quote #8

    Quote:
    Originally Posted by DontWannaName View Post
    You dont need to know how to code to edit an existing plugin, you just need the events changed for DOD. He didnt know how to take them out.
    I did know and I took out some handlers. The two convars mp_autoteambalance and mp_teams_unbalance_limit are specified for the new source engine, but actually do not work with DOD:S - Look here

    I left them just for compatibility reasons and because I would not change to much of the original code. But you are right - I have could take them out.

    There will be no further releases of my modification. I'm glad it works on our servers and I just would have some people to participate. Therefore I published this.

    I DID NOT PUBLISH IT AS MY PLUGIN - IT'S JUST A MODIFICATION TO WORK WITH DOD:S.

    over and out.
    Silent_Water 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 07:18.


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