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

Mapchooser (AMXX port)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Plugin ID:
32
Plugin Version:
1.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Before the map ends, automatically runs a vote for the next map. Required Nextmap plugin with sm_nextmap.
    Unapprover:
    Reason for Unapproving:
    Obsolete
    Old 06-19-2007 , 15:54   Mapchooser (AMXX port)
    Reply With Quote #1

    MapChooser
    Version 1.3

    By: ferret!

    Description

    Faithful port of MapChooser from AMXX, with one addition: It now extends winlimit and maxrounds.

    MapChooser will automatically begin a vote for the next map when the time is almost up. For mods with mp_maxrounds and mp_winlimit, they will trigger the vote when only 2 rounds remain. The vote is random. The list comes from addons/sourcemod/configs/maps.ini if it exists. If it doesn't, your mapcycle is used.

    Cvars
    • sm_extendmap_max
      • Maximum time a map can be extended
      • Default 90 minutes
    • sm_extendmap_step
      • How much longer does each extension make the map?
      • Default 15 minutes
    • sm_extendmap_rmax
      • Maximum rounds a map can be extended?
      • Default 12 rounds
    • sm_extendmap_rstep
      • How many more rounds does each extension make the map?
      • Default 2 rounds
    • sm_lastmap
      • Provided for fun or convience. The last map played will be contained in this cvar.
    • sm_startvotetime
      • When to start the map vote, based on timeleft.
      • Default is 180 seconds. Remember to use seconds, not minutes.
    • sm_mapchooser_file
      • Specify a map list to use for MapChooser. This is relative to the Sourcemod folder
      • Default is "configs/maps.ini" (That is, addons/sourcemod/configs/maps.ini)
    Change Log:
    • Version 1.3 (June 29th)
      • Conform to plugin submission standards
      • Add version cvar sm_mapchooser_version
      • Add sm_mapchooser_file cvar for specifying map list.
    • Version 1.2 (June 26th)
      • Now grab a new starting time from GetEngineTime on Round_Commence.
      • Updated to use new filenames and standard for translations
      • Reverted to TIMER_REPEAT timer, due to fixes in Sourcemod
      • Reset the map counter when reloading maps (Whoops)
      • Add CVAR sm_startvotetime (See above)
      • YOU MUST DOWNLOAD PLUGIN.MAPCHOOSER.TXT!!! You may delete the old .cfg version.
    • June 24th
      • lol another update: Added round_end/RC=16 check for g_fStartTime
      • Secondary update: Moved g_fStartTime to OnMapStart.
      • Only check mp_winlimit and mp_maxrounds for Cstrike now (Hidden: Source should work now)
      • Removed use of TIMER_REPEAT, due to issues with KillTimer().
      • Winlimit and maxrounds will not be extended when they are 0.
      • German translations by Isias (Redownload plugin.mapchooser.cfg)
      • French translations by magicyan (Get the file!)
    Bugs, Requests, Translations, or Other Issues

    Please use my project area on the Allied Modders Bug Tracker to report any issues or make requests. Your login for the bug tracker is the same as your forum login. Set the category to this plugin's name.
    Attached Files
    File Type: txt plugin.mapchooser.txt (871 Bytes, 7767 views)
    File Type: sp Get Plugin or Get Source (mapchooser.sp - 14443 views - 9.0 KB)
    __________________
    I'm a blast from the past!

    Last edited by ferret; 07-27-2007 at 09:22.
    ferret is offline
    yester64
    Senior Member
    Join Date: May 2007
    Old 06-19-2007 , 16:36   Re: [PLUGIN] Mapchooser (AMXX port)
    Reply With Quote #2

    which nextmap does it need. there are two right now. the one for the users who type nextmap and the one for admin to set the nextmap.
    yester64 is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-19-2007 , 17:59   Re: [PLUGIN] Mapchooser (AMXX port)
    Reply With Quote #3

    The one for admin to set next map... Which is why I linked it...
    __________________
    I'm a blast from the past!

    Last edited by ferret; 06-19-2007 at 18:01.
    ferret is offline
    yester64
    Senior Member
    Join Date: May 2007
    Old 06-19-2007 , 18:09   Re: [PLUGIN] Mapchooser (AMXX port)
    Reply With Quote #4

    and how could i keep the other nextmap plugin? i mean so that users could check which is the nextmap, or does the new nextmap the same thing?
    kinda confused now.

    Quote:
    Originally Posted by ferret View Post
    The one for admin to set next map... Which is why I linked it...
    yester64 is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-19-2007 , 18:12   Re: [PLUGIN] Mapchooser (AMXX port)
    Reply With Quote #5

    pRed is adding all the other stuff to his, so soon it won't matter. If you need the other though, just rename the smx file to "saynextmap.smx"

    That should work.

    The other one will NOT cause map changes like pRed's will.
    __________________
    I'm a blast from the past!
    ferret is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-20-2007 , 09:34   Re: [PLUGIN] Mapchooser (AMXX port)
    Reply With Quote #6

    Quote:
    Originally Posted by Fisch.666 View Post
    Hi!

    I get this error in my serverconsole:



    with the enabled mapchooser at my hidden: source server with the latest sourcemod (rev. 990). Can i ignore this message or how can i fix this?
    Thanks in advance for an reply.
    Can you check if Hidden: Source has all of these?

    mp_timelimit
    mp_winlimit
    mp_maxrounds

    Looks like one of those isn't there, and is causing problems.
    __________________
    I'm a blast from the past!
    ferret is offline
    Isias
    Senior Member
    Join Date: Apr 2006
    Old 06-20-2007 , 14:13   Re: [PLUGIN] Mapchooser (AMXX port)
    Reply With Quote #7

    Translated into german.
    Attached Files
    File Type: cfg plugin.mapchooser.cfg (648 Bytes, 1116 views)

    Last edited by Isias; 06-22-2007 at 02:30.
    Isias is offline
    pRED*
    Join Date: Dec 2006
    Old 06-20-2007 , 23:24   Re: [PLUGIN] Mapchooser (AMXX port)
    Reply With Quote #8

    Can you add a if != 0 check for the extending of max rounds and winlimit..

    Otherwise for servers running on a timelimit they end up with a winlimit and maxrounds of 5 if the map gets extended.
    pRED* is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-20-2007 , 23:33   Re: [PLUGIN] Mapchooser (AMXX port)
    Reply With Quote #9

    It should already be checking if its not 0.

    if(mp_winlimit) does that (0 is false, so if its 0, the default, it doesn't do anything)
    __________________
    I'm a blast from the past!
    ferret is offline
    pRED*
    Join Date: Dec 2006
    Old 06-20-2007 , 23:40   Re: [PLUGIN] Mapchooser (AMXX port)
    Reply With Quote #10

    Code:
        if(iMaxRounds < iRoundExtendMax) {     iMaxRounds += iRoundExtendStep;     SetConVarInt(g_hMpMaxrounds, iMaxRounds); }

    My server ended up with a mp_winlimit of 5 and mp_maxrounds of 5..

    if((iMaxRounds < iRoundExtendMax) && (iMaxRound))
    pRED* 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 05:40.


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