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

[ANY]Team Frag Limit (1.4.1) 4/22/13


Post New Thread Reply   
 
Thread Tools Display Modes
Author
htcarnage
Senior Member
Join Date: Oct 2009
Plugin ID:
3548
Plugin Version:
1.4.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Changes the map when a team reaches the frag limit
    Unapprover:
    Reason for Unapproving:
    Failed to correct errors within almost one month
    Old 02-25-2013 , 19:11   [ANY]Team Frag Limit (1.4.1) 4/22/13
    Reply With Quote #1

    Description
    Plugin idea comes from Franc1scos Frag Battle plugin, but with several additions and changes.

    Admin Commands:
    sm_tfl_reset Resets team scores. Requires Generic Admin (b) flag

    Features:
    - Now has support for non-DM servers
    - Ends the game when a team reaches a set frag limit
    - Announces the frags remaining for the winning team every XX frags
    - Three different announce types: Center Text, Hint Text, Chat Text
    - Starts a map vote when a team is within XX frags of the limit
    - CVar to change the frag limit to a lower value if there are no players on the server. This speeds up map changes on unpopular maps.
    - CVar that places users who select "Auto-Assign" onto the losing team. Does not effect regular joins
    - Both the minimum players and lower frag limit are configurable
    - Makes use of translation files for multi language compatibility
    - Generates a config file for easy CVar changes

    Requirements
    mapchooser.smx is required for voting when a team is near the frag limit

    Upgrading
    Delete the old teamfraglimit.cfg as new ones were created for update 1.4.0
    Restart the server

    ConVars
    Code:
    sm_tfl_limit 500 
    The frag limit a team must reach to change the map.
     
    sm_tfl_announce 100
    Announce how many frags a team is from the frag limit every 100 frags.
    0 to disable announcing.
     
    sm_tfl_announce_type 1
    Changes the way the plugin announces frags remaining.
    1 = Center Text, 2 = Hint Text, 3 = Chat Text
     
    sm_tfl_minplayers 4
    Minimum players for full frag limit. Checks every 5 minutes to see if player count has dropped below frag limit.
     
    sm_tfl_minplayers_kill_limit 50
    Frag limit if players is less than minplayers
    
    sm_tfl_team_autoselect 0
    If 1, then users who select "Auto-Assign" will be placed on the losing team. Does not effect regular team joining
     
    sm_tfl_vote 30
    Start a map vote when a team is this many frags from the limit. Only has an effect is mapchooser.smx is loaded.
    
    sm_tfl_bomb_bonus 3
    Team score bonus for successfully detonating the bomb
    
    sm_tfl_defuse_bonus 3
    Team score bonus for successfully defusing the bomb
    
    sm_tfl_gametype 1
    Is the game deathmatch or normal gameplay? 0 = Normal, 1 = Deathmatch


    Credits

    Franc1sco for the original idea
    strontiumdog and DJ Tsunami for the map change code
    Mirandor for the French translation

    Changelog
    Spoiler
    Attached Files
    File Type: txt teamfraglimit.phrases.txt (888 Bytes, 233 views)
    File Type: cfg teamfraglimit.cfg (1.1 KB, 203 views)
    File Type: sp Get Plugin or Get Source (teamfraglimit.sp - 531 views - 9.2 KB)

    Last edited by htcarnage; 04-22-2013 at 16:38.
    htcarnage is offline
    Mirandor
    Senior Member
    Join Date: Jun 2006
    Location: Ile de France
    Old 02-26-2013 , 02:38   Re: [ANY]Team Frag Limit
    Reply With Quote #2

    hi,

    you could add a different frag limit for bots so if there are no players but bots because of a not popular map, server won't need to reach 500 frags (and waste few hours) to perform a changelevel.

    And please add translation file.

    I can give you french sentences if you will...

    edit: IMO you should replace center text by hint text (a lot of players don't like center text and hint text stay longer ; better for announces...)

    Last edited by Mirandor; 02-26-2013 at 02:44. Reason: Hint
    Mirandor is offline
    htcarnage
    Senior Member
    Join Date: Oct 2009
    Old 02-26-2013 , 15:53   Re: [ANY]Team Frag Limit
    Reply With Quote #3

    Working on update with your suggestions
    htcarnage is offline
    htcarnage
    Senior Member
    Join Date: Oct 2009
    Old 02-27-2013 , 13:00   Re: [ANY]Team Frag Limit
    Reply With Quote #4

    Update


    - 1.1.0: Added translation compatibility, Added minplayers Cvar, Added different announce types, Added AutoConfig functionality

    @Mirandor, a french translation would be lovely

    Last edited by htcarnage; 02-27-2013 at 13:01.
    htcarnage is offline
    htcarnage
    Senior Member
    Join Date: Oct 2009
    Old 03-02-2013 , 16:59   Re: [ANY]Team Frag Limit (1.1.1) 3/01/13
    Reply With Quote #5

    Update

    - 1.1.1: Fixed a bug that kept displaying the frags remaining if a team had settled on the announce value and the other team got a frag.

    and

    - 1.1.2: Fixed a bug that did not change the frag limit to the FULL frag limit if the minimum players had been reached

    Last edited by htcarnage; 03-02-2013 at 18:31.
    htcarnage is offline
    htcarnage
    Senior Member
    Join Date: Oct 2009
    Old 03-11-2013 , 15:36   Re: [ANY]Team Frag Limit (1.2.0) 3/11/13
    Reply With Quote #6

    Update

    - 1.2.0: Added Cvar that places users who select "Auto-Assign" onto losing team. Doesnt affect regular team joins.
    - 1.2.1: Plugin now respects mp_limitteams when using sm_tfl_team_autoselect 1, and other silly bug fixes

    Last edited by htcarnage; 03-11-2013 at 21:07.
    htcarnage is offline
    Mirandor
    Senior Member
    Join Date: Jun 2006
    Location: Ile de France
    Old 03-12-2013 , 07:51   Re: [ANY]Team Frag Limit (1.2.1) 3/11/13
    Reply With Quote #7

    French translation:
    Code:
    "Phrases"
    {
        "CT_Win"
        {
            "en"        "Counter Terrorists have reached the frag limit"
            "fr"        "Les contre-terroristes ont atteint la limite des frags"
        }
        "T_Win"
        {
            "en"        "Terrorists have reached the frag limit"
            "fr"        "Les terroristes ont atteint la limite des frags"
        }
        "T_Frags_Remaining"
        {
            "#format"    "{1:i}"
            "en"        "Terrorists are {1} kills away from the frag limit"
            "fr"        "Les terroristes sont à {1} frags de la limite à atteindre"
        }
        "CT_Frags_Remaining"
        {
            "#format"    "{1:i}"
            "en"        "Counter Terrorists are {1} kills away from the frag limit"
            "fr"        "Les contre-terroristes sont à {1} frags de la limite à atteindre"
        }
    }

    Last edited by Mirandor; 03-12-2013 at 07:52.
    Mirandor is offline
    htcarnage
    Senior Member
    Join Date: Oct 2009
    Old 03-12-2013 , 12:47   Re: [ANY]Team Frag Limit (1.2.1) 3/11/13
    Reply With Quote #8

    Thanks! Updated translation file with French translation!
    htcarnage is offline
    htcarnage
    Senior Member
    Join Date: Oct 2009
    Old 03-13-2013 , 00:46   Re: [ANY]Team Frag Limit (1.2.2) 3/12/13
    Reply With Quote #9

    Update
    - 1.2.2: Fixed bug regarding map votes
    htcarnage is offline
    htcarnage
    Senior Member
    Join Date: Oct 2009
    Old 03-16-2013 , 00:47   Re: [ANY]Team Frag Limit (1.3.0) 3/15/13
    Reply With Quote #10

    Update
    - 1.3.0: Added admin command (sm_tfl_reset) to reset team scores. Requires "b" flag. Updated the translation file
    htcarnage 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 19:46.


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