sourcemod/core
Ross Bemrose 10a95cfdce Add new function: GetMapDisplayName.
This function will resolve the name of a map using FindMap, then (if applicable), will turn a workshop map name into a nicely formatted name.

Currently only TF2 and CS:GO Map Workshops are supported.  More can be added at a later date.

This function returns false if a map was not found, but true in any other instance even if FindMap could not resolve the map name.

This patch also updates the following core plugins to use this GetMapDisplayName:

BaseTriggers
BaseVotes
MapChooser
NextMap
Nominations
RandomCycle
RockTheVote
2015-09-15 16:16:58 -04:00
..
logic Move CDataPack from core to logic. 2015-09-06 11:02:52 -07:00
AMBuilder Move CDataPack from core to logic. 2015-09-06 11:02:52 -07:00
CellRecipientFilter.h Fixed regression in CellFilter GetRecipientIndex reading oob (bug 5826, r=psychonic). 2013-08-03 19:20:03 -04:00
ChatTriggers.cpp Move the SetCommandClient hook into GameHooks. 2015-09-09 20:03:23 -07:00
ChatTriggers.h Move the SetCommandClient hook into GameHooks. 2015-09-09 20:03:23 -07:00
command_args.h Move CCommandArgs into its own header. 2015-08-31 00:07:37 -07:00
concmd_cleaner.cpp Remove strncopy(). 2015-09-09 14:57:47 -07:00
concmd_cleaner.h Added generic command hooking mechanism, to replace Reg*Cmd which is intended for command creation (bug 4015, r=pred). 2009-09-26 17:12:23 -04:00
ConCmdManager.cpp Move the SetCommandClient hook into GameHooks. 2015-09-09 20:03:23 -07:00
ConCmdManager.h Move the SetCommandClient hook into GameHooks. 2015-09-09 20:03:23 -07:00
ConCommandBaseIterator.h Added support for Alien Swarm (bug 4530, r=dvander). 2010-07-27 17:32:32 -05:00
ConsoleDetours.cpp Move the SetCommandClient hook into GameHooks. 2015-09-09 20:03:23 -07:00
ConsoleDetours.h Move ConCommand hooks into GameHooks and switch callbacks to ICommandArgs. 2015-09-09 18:40:04 -07:00
convar_sm_dota.h Updated for latest hl2sdk-dota changes. 2013-07-12 02:31:41 -04:00
convar_sm_l4d.h Split TF2, DoD:S, HL2:DM, and ND to separate binaries (bug 5813, r=asherkin). 2013-07-21 11:53:56 -04:00
convar_sm_ob.h Compile and link fixes for Mac OS X (bug 4392, r=dvander). 2010-05-13 04:22:31 -05:00
convar_sm_swarm.h Added engine support for Insurgency (bug 5951, r=asherkin). 2013-10-13 14:16:08 -04:00
convar_sm.h Spring Cleaning, Part Ichi (1) 2008-03-30 07:00:22 +00:00
ConVarManager.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
ConVarManager.h Move OnQueryCvarValueFinished into the global hook manager. 2015-08-31 09:22:08 -07:00
CoreConfig.cpp Remove UTIL_Format() and UTIL_FormatArgs(). 2015-09-09 15:18:17 -07:00
CoreConfig.h Replace the AddRootConsoleCommand API to not expose internal structures. 2015-08-30 21:01:03 -07:00
EventManager.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
EventManager.h Update for hl2sdk-dota changes 2014-08-29 09:53:43 -07:00
frame_hooks.cpp Move DBManager and DB natives from core to logic (bug 5953, r=fyren). 2013-10-09 08:43:08 -04:00
frame_hooks.h Initial import of updater extension, currently incomplete - just getting it in the tree (bug 3530). 2009-02-02 15:41:25 -05:00
GameHooks.cpp Move the SetCommandClient hook into GameHooks. 2015-09-09 20:03:23 -07:00
GameHooks.h Move the SetCommandClient hook into GameHooks. 2015-09-09 20:03:23 -07:00
HalfLife2.cpp Add new function: GetMapDisplayName. 2015-09-15 16:16:58 -04:00
HalfLife2.h Add new function: GetMapDisplayName. 2015-09-15 16:16:58 -04:00
Logger.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
Logger.h Move Logger and Core natives to Logic 2014-08-13 14:24:35 -07:00
logic_bridge.cpp Move ConCommand hooks into GameHooks and switch callbacks to ICommandArgs. 2015-09-09 18:40:04 -07:00
logic_bridge.h Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
MenuManager.cpp Remove UTIL_Format() and UTIL_FormatArgs(). 2015-09-09 15:18:17 -07:00
MenuManager.h Remove MenuManager use of memtables (bug 5899 part 2, r=fyren). 2013-08-31 11:50:28 -07:00
MenuStyle_Base.cpp Add basic support for Black Mesa. 2015-05-06 21:12:13 -04:00
MenuStyle_Base.h Update to the latest AMTL version. 2015-08-27 01:01:18 -04:00
MenuStyle_Radio.cpp Remove UTIL_Format() and UTIL_FormatArgs(). 2015-09-09 15:18:17 -07:00
MenuStyle_Radio.h Root Menu Handles during Display. 2015-02-21 17:10:26 -08:00
MenuStyle_Valve.cpp Remove UTIL_Format() and UTIL_FormatArgs(). 2015-09-09 15:18:17 -07:00
MenuStyle_Valve.h Root Menu Handles during Display. 2015-02-21 17:10:26 -08:00
MenuVoting.cpp Fixed client console vote output missing newlines (bug 5205, r=psychonic). 2012-05-26 18:25:28 -04:00
MenuVoting.h Added voting output (bug 1997, r=dvander) 2009-09-17 18:54:40 +12:00
NextMap.cpp Remove UTIL_Format() and UTIL_FormatArgs(). 2015-09-09 15:18:17 -07:00
NextMap.h Remove UTIL_Format() and UTIL_FormatArgs(). 2015-09-09 15:18:17 -07:00
PlayerManager.cpp Move ConCommand hooks into GameHooks and switch callbacks to ICommandArgs. 2015-09-09 18:40:04 -07:00
PlayerManager.h Move OnQueryCvarValueFinished into the global hook manager. 2015-08-31 09:22:08 -07:00
provider.h Move the SetCommandClient hook into GameHooks. 2015-09-09 20:03:23 -07:00
sm_autonatives.cpp Move scared guts of core into logic (bug 5680, r=fyren). 2013-03-29 11:37:29 -07:00
sm_autonatives.h Move scared guts of core into logic (bug 5680, r=fyren). 2013-03-29 11:37:29 -07:00
sm_fastlink.h Added detection for clang compiler and fixed various warnings triggered by it (bug 4878, r=dvander). 2011-04-23 21:53:53 -05:00
sm_globals.h Move OnQueryCvarValueFinished into the global hook manager. 2015-08-31 09:22:08 -07:00
sm_memtable.h Refactor Trie natives to use HashMap instead of KTrie; add iteration API (bug 5892, r=ds). 2013-08-29 10:09:02 -07:00
sm_srvcmds.cpp Move CCommandArgs into its own header. 2015-08-31 00:07:37 -07:00
sm_stringutil.cpp Remove blanket includes from sm_stringutil. 2015-09-09 15:18:24 -07:00
sm_stringutil.h Remove blanket includes from sm_stringutil. 2015-09-09 15:18:24 -07:00
smn_bitbuffer.cpp Implement a new stack and error handling model for the SourcePawn VM. 2015-03-04 23:45:30 -08:00
smn_commandline.cpp Number -> Int, per recommendation. 2014-10-08 21:47:15 -05:00
smn_console.cpp Move ConCommand hooks into GameHooks and switch callbacks to ICommandArgs. 2015-09-09 18:40:04 -07:00
smn_entities.cpp Remove strncopy(). 2015-09-09 14:57:47 -07:00
smn_events.cpp Port events to transitional syntax. 2014-12-13 12:51:16 -08:00
smn_halflife.cpp Add new function: GetMapDisplayName. 2015-09-15 16:16:58 -04:00
smn_hudtext.cpp Implement a new stack and error handling model for the SourcePawn VM. 2015-03-04 23:45:30 -08:00
smn_keyvalues.cpp Remove UTIL_Format() and UTIL_FormatArgs(). 2015-09-09 15:18:17 -07:00
smn_keyvalues.h Add support for listening to, blocking, changing, and faking ClientCommandKeyValues. 2015-07-12 13:14:46 -04:00
smn_nextmap.cpp - Added ForceChangeLevel and Map History to nextmap api 2008-07-13 05:13:37 +00:00
smn_player.cpp Move adminsys and more natives from core to logic. 2014-05-29 13:31:12 -04:00
smn_protobuf.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
smn_usermsgs.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
smn_usermsgs.h Added initial support for protobuf usermessages on CS:GO (bug 5579, r=asherkin). 2013-01-22 21:43:12 -05:00
smn_vector.cpp Added preliminary support for Left 4 Dead; some things may not yet work. 2008-11-14 09:18:30 -06:00
sourcemm_api.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
sourcemm_api.h Don't looks for IServerTools on ep1 games. 2015-01-01 14:56:37 -05:00
sourcemod.cpp Remove UTIL_Format() and UTIL_FormatArgs(). 2015-09-09 15:18:17 -07:00
sourcemod.h Move CDataPack from core to logic. 2015-09-06 11:02:52 -07:00
TimerSys.cpp Move ForwardSys from core to logic (bug 5953, r=fyren). 2013-10-09 08:43:08 -04:00
TimerSys.h Move scared guts of core into logic (bug 5680, r=fyren). 2013-03-29 11:37:29 -07:00
UserMessagePBHelpers.h Remove strncopy(). 2015-09-09 14:57:47 -07:00
UserMessages.cpp Remove strncopy(). 2015-09-09 14:57:47 -07:00
UserMessages.h Switch UserMessages off KTrie (bug 5884 part 11, r=ds). 2013-08-25 12:16:07 -07:00
version.rc Overhauled versioning information (bug 5453, r=dvander). 2012-08-26 01:33:54 +01:00
vprof_tool.cpp Add a command to dump profiling output. 2014-08-09 13:32:05 -05:00
vprof_tool.h Update to the latest AMTL version. 2015-08-27 01:01:18 -04:00