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

Nextmap (port from amxx)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author
pRED*
Join Date: Dec 2006
Plugin ID:
31
Plugin Version:
1.2
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Sets a nextmap for the server
    Unapprover:
    Reason for Unapproving:
    Obsolete
    Old 06-18-2007 , 22:38   Nextmap (port from amxx)
    #1

    Simplified port of AMXX nextmap.amxx

    Creates a cvar called sm_nextmap.
    Hooks intermission and does a delayed server command changelevel to the specified map.

    Good for admins to set a nextmap and for other plugins (like mapchooser) to set the cvar and therefore choose the next map.

    say nextmap or say /nextmap
    say currentmap or say /currentmap
    say ff or say /ff

    Automatically finds a next map from your defined mapcyclefolder (usually mapcycle.txt)

    Now includes 'listmap' console command to print a console list of the mapcycle file (very similar the standard cs1.6 command of the same name)

    Update: The automatic selection of next map entirely re-written by ferret. Yay.

    1.0 : More ferret changes. Pro.
    1.2 : Missed a version somewhere.. Hm. Anway fixed that bfreadstring error and add INS support thanks to bl4nk
    Attached Files
    File Type: txt plugin.nextmap.txt (458 Bytes, 3203 views)
    File Type: sp Get Plugin or Get Source (nextmap.sp - 2740 views - 7.5 KB)

    Last edited by pRED*; 07-21-2007 at 19:47.
    pRED* is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-18-2007 , 22:44   Re: [PLUGIN] Nextmap (port from amxx)
    #2

    Cool. Been pondering this this weekend between other plugin stuff.
    __________________
    I'm a blast from the past!
    ferret is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-18-2007 , 22:56   Re: [PLUGIN] Nextmap (port from amxx)
    #3

    Do you plan to expand this? If not, I'm going to use it as a base and finish porting the rest of AMXX's nextmap.
    __________________
    I'm a blast from the past!
    ferret is offline
    pRED*
    Join Date: Dec 2006
    Old 06-18-2007 , 23:10   Re: [PLUGIN] Nextmap (port from amxx)
    #4

    Yeah I was planning on adding the rest of the nextmap features (say nextmap, ff, currentmap and reading in of mapcycle files to get standard nextmap).

    A port of mapchooser would be awesome IMO.. Probably over my head at the moment, which is why I did this as my first plugin.

    Then I wanna have a go at amx_gag..
    pRED* is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-18-2007 , 23:17   Re: [PLUGIN] Nextmap (port from amxx)
    #5

    Alright. I was gonna finish this and mapchooser. This is the peice mapchooser needs.

    I'll do mapchooser, you finish this guy
    __________________
    I'm a blast from the past!
    ferret is offline
    pRED*
    Join Date: Dec 2006
    Old 06-18-2007 , 23:20   Re: [PLUGIN] Nextmap (port from amxx)
    #6

    You planning on doing a direct port or adding some stuff?

    I reckon rock the vote and nominations are worth adding. Was the main reason people used deagles map management instead of the default one. (I wouldn't recommend trying to port deags tho. The code is a mission to understand.)
    pRED* is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-18-2007 , 23:22   Re: [PLUGIN] Nextmap (port from amxx)
    #7

    Direct port. I added my own rockthevote and nominations to AMXX's mapchooser before. I believe BAIL wants the basic plugin to be simple and stripped down, and let other people build the more advanced systems.
    __________________
    I'm a blast from the past!
    ferret is offline
    pRED*
    Join Date: Dec 2006
    Old 06-19-2007 , 03:43   Re: [PLUGIN] Nextmap (port from amxx)
    #8

    Ok point taken.

    I've ported the three chat commands, just need to do the mapcycle file reading to find the nextmap in the list.
    Theres a plugin on here that already does this, so I'll probably borrow code from that.

    Do you know if theres an equivalent command to amxx's get_localinfo and set_localinfo?
    pRED* is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-19-2007 , 11:52   Re: [PLUGIN] Nextmap (port from amxx)
    #9

    Not that I know of. But unlike AMXX, plugin cvars survive map change. So you can set a cvar and it'll still be there on the next map.
    __________________
    I'm a blast from the past!
    ferret is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-19-2007 , 12:21   Re: [PLUGIN] Nextmap (port from amxx)
    #10

    mapchooser done, just testing now.
    __________________
    I'm a blast from the past!
    ferret is offline
    Closed Thread



    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 03:09.


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