Raised This Month: $ Target: $400
 0% 

[ANY] Quick Map Changer (v1.3.2, 2017-04-28)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
hahiserw
New Member
Join Date: May 2017
Plugin ID:
5616
Plugin Version:
1.3.2
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Command for sourcemod to quickly change map (with fuzzy search)
    Old 05-01-2017 , 17:52   [ANY] Quick Map Changer (v1.3.2, 2017-04-28)
    Reply With Quote #1

    Quick Map Changer

    Tired of typing full map name to change it (!map map_name)? Don't like setting up aliases for maps (!cm map_shortcut)?

    I've got you covered! Quick map changer is what you're looking for.


    Usage
    1. Just type in chat: !qmc lkn
    2. ???
    3. Profit, you are now playing on dm_lockdown and you've saved 8 keystrokes!

    Note: You might have to type more letters if you have a lot of maps with similar names.

    ...So you've noticed you'd save 9 keystrokes with !cm ld? Yep, that's true, but if you have some (exotic?) map you don't have shortcut for in pms.cfg you'd have to type the whole map name (or just set up a shortcut). If that suits you, then just use !cm. (!cm is a command from Public Match Server Pack from http://hl2dm.net)

    There's also a mode parameter you can use to see what map matches or to set
    cvars and call commands.

    Usage: qmc <few_letters_of_mapname> [mode]
    Usage: qmca <few_letters_of_mapname> [mode]
    where qmc is for maps from mapcycyle file and qmca is for all the maps from
    maps folder, and mode might be:
    • ? - don't change current map, just return the matching name
    • votemap or sm_votemap - call sm_votemap with the matching map as a first argument
    • nextmap or sm_nextamp - set sm_nextmap cvar to the matching map
    • other cvars or commands

    There are abbreviations for votemap and nextmap, since they
    might be used a lot, vm and nm respectively. If you want to use sourcemod
    cvar or command you don't have to type the heading sm_ - it will be
    prepended to test if there's such cvar or command.

    There's another thing. If you changed mapcycle file and you want to get new
    maps in qmc matches (without changing the current map) just type !qmc !, and
    the maplist will get refreshed.

    More info
    • No configuration needed
    • It's case sensitive

    More here: https://github.com/hahiserw/sourcemod-qmc

    Changelog
    • v1.1 - Use first map if it's name is substring of other matching ones
      In case of first matching map's name is substring of another matching maps' names the first one is selected. !qmc bhz would match dm_biohazard even if there's dm_biohazard_cal, and to match the former you'd !qmc bhzc
    • v1.2 - Add mode argument
    • v1.3.2 - Add qmca command that matches all maps from maps folder, add maplist reloading feature, add info cvar
    Attached Files
    File Type: sp Get Plugin or Get Source (qmc.sp - 773 views - 7.6 KB)
    File Type: txt qmc.phrases.txt (439 Bytes, 327 views)

    Last edited by hahiserw; 09-27-2017 at 15:15. Reason: update
    hahiserw is offline
    Neidermeyer
    Junior Member
    Join Date: Jul 2017
    Old 07-03-2017 , 06:32   Re: [HL2DM] Quick Map Changer (v1.1, 2017-04-28)
    Reply With Quote #2

    This is a really handy plugin, the only problem is that it works only for maps listed in mapcycle.txt
    Neidermeyer is offline
    hahiserw
    New Member
    Join Date: May 2017
    Old 09-25-2017 , 16:42   Re: [HL2DM] Quick Map Changer (v1.1, 2017-04-28)
    Reply With Quote #3

    Quote:
    Originally Posted by Neidermeyer View Post
    This is a really handy plugin, the only problem is that it works only for maps listed in mapcycle.txt
    Got you covered, Neid. Just use qmca.
    hahiserw is offline
    Jezis
    AlliedModders Donor
    Join Date: Jul 2016
    Location: Czech Republic
    Old 09-26-2017 , 08:51   Re: [ANY] Quick Map Changer (v1.2, 2017-04-28)
    Reply With Quote #4

    Well, doesnt UMC do something similiar? When i type for example "!map t2" and only map that has t2 in mappool is dust2, it changes without any need to write full name.
    __________________

    Jezis is offline
    Send a message via ICQ to Jezis
    8guawong
    AlliedModders Donor
    Join Date: Dec 2013
    Location: BlackMarke7
    Old 09-26-2017 , 10:52   Re: [ANY] Quick Map Changer (v1.2, 2017-04-28)
    Reply With Quote #5

    thought this was built-in sourcemod as well xd
    8guawong is offline
    hahiserw
    New Member
    Join Date: May 2017
    Old 09-27-2017 , 15:20   Re: [ANY] Quick Map Changer (v1.3.2, 2017-04-28)
    Reply With Quote #6

    Quote:
    Originally Posted by Jezis View Post
    Well, doesnt UMC do something similiar? When i type for example "!map t2" and only map that has t2 in mappool is dust2, it changes without any need to write full name.
    Haven't used it, but my plugin is just for changing maps, no nominations nor rtv, nor the rest.

    Would UMC also change map to dm_lockdown with "!map lkn"?

    Last edited by hahiserw; 09-27-2017 at 15:22.
    hahiserw is offline
    Reply


    Thread Tools
    Display Modes

    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 04:35.


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