sourcemod/core
BotoX 865fa37ed9 Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS.
Explanation:
There are two clients in the server, one named gene, the other one "Ene ~special characters~".
An admin issues "sm_slay Ene" and gets following error message: More than one client matched the given pattern.
What this hack will do is: Use GetCmdArg(0, ...); to get the command name "sm_slay".
Use GetCmdArgString(...); to get the arguments supplied to the command.
Use GetLastProcessTargetString(...); (which was implemented in this commit) to retrieve the arguments that were passed to the last ProcessTargetString call.
It will then pass this data to the DynamicTargeting plugin through its AmbiguousMenu native.
The plugin will open up a menu on the client and list all targets which match the pattern that was supplied to ProcessTargetString.
If the client selects a menu entry, FakeClientCommand will be used to re-execute the command with the correct target.
2019-09-21 20:29:53 +02:00
..
logic Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-09-21 20:29:53 +02:00
AMBuilder Backport #764 (#942) 2018-12-29 15:43:59 +00:00
CellRecipientFilter.h Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04:00
ChatTriggers.cpp Allow setting multiple chat trigger characters (PR #449, bug 4341, bug 5668) 2016-10-04 16:34:42 +01:00
ChatTriggers.h Allow setting multiple chat trigger characters (PR #449, bug 4341, bug 5668) 2016-10-04 16:34:42 +01:00
command_args.h Move CCommandArgs into its own header. 2015-08-31 00:07:37 -07:00
concmd_cleaner.cpp Fix build with latest hl2sdk-csgo 2019-09-02 21:45:47 +01:00
concmd_cleaner.h Remove bad-console-read protection logic for Metamod:Source 1.7 and earlier. 2015-09-09 18:59:31 -07:00
ConCmdManager.cpp Update to the latest AMTL - Rename Ref to RefPtr. 2015-11-08 13:14:57 -08:00
ConCmdManager.h Update to the latest AMTL - Rename Ref to RefPtr. 2015-11-08 13:14:57 -08:00
ConCommandBaseIterator.h Added support for Alien Swarm (bug 4530, r=dvander). 2010-07-27 17:32:32 -05:00
ConsoleDetours.cpp Use newer MM:S api for Ep1/Original engine. (#548) 2017-01-11 21:25:00 -05:00
ConsoleDetours.h Move ConCommand hooks into GameHooks and switch callbacks to ICommandArgs. 2015-09-09 18:40:04 -07:00
ConVarManager.cpp Remove bad-console-read protection logic for Metamod:Source 1.7 and earlier. 2015-09-09 18:59:31 -07:00
ConVarManager.h Individualize NameHashSet Hashing & Revisit #709 (#740) (1.9-dev) (#866) 2018-08-11 13:37:05 +01:00
CoreConfig.cpp Out with the old ConVar accessibility hacks, in with the new. 2018-05-20 19:50:33 -04:00
CoreConfig.h Replace the AddRootConsoleCommand API to not expose internal structures. 2015-08-30 21:01:03 -07:00
EventManager.cpp Add support for sending gameevent to specific client. (#505) 2016-05-12 22:15:23 -04:00
EventManager.h Individualize NameHashSet Hashing & Revisit #709 (#740) (1.9-dev) (#866) 2018-08-11 13:37:05 +01: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 Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04:00
GameHooks.h Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04:00
HalfLife2.cpp Fix wrong matchmaking_ds bin path being used in some instances. 2018-05-06 10:31:25 -04:00
HalfLife2.h Individualize NameHashSet Hashing & Revisit #709 (#740) (1.9-dev) (#866) 2018-08-11 13:37:05 +01: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 Out with the old ConVar accessibility hacks, in with the new. 2018-05-20 19:50:33 -04: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 Fix typo in menu manager drawing no spacer (#581) 2017-02-04 08:16:27 -05: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 support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04:00
MenuStyle_Radio.h Root Menu Handles during Display. 2015-02-21 17:10:26 -08:00
MenuStyle_Valve.cpp Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04: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 Use newer MM:S api for Ep1/Original engine. (#548) 2017-01-11 21:25:00 -05:00
NextMap.h Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04:00
PlayerManager.cpp Separate out DOI build. (#718) 2017-11-03 15:45:16 -04:00
PlayerManager.h Cache player IClient pointer on connect. 2017-06-23 14:43:39 -04:00
provider.h Update to the latest AMTL: remove PassRef. 2015-11-08 13:51:22 -08: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_convar.h Out with the old ConVar accessibility hacks, in with the new. 2018-05-20 19:50:33 -04: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 Add support for retrieving game server Steam Id (bug 6404). (#495) 2016-04-26 23:17:08 -04: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_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 Fix default value always being when calling ParmValue(string,string). 2017-04-22 21:28:44 -04:00
smn_console.cpp Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-09-21 20:29:53 +02:00
smn_entities.cpp Add RemoveEntity native. (bug 5714) (#745) 2018-01-07 13:56:30 -05:00
smn_events.cpp Allow direct event FireToClient if broadcast disabled. 2017-01-03 20:31:40 -05:00
smn_halflife.cpp Add native to get gpGlobals->frametime (#629) 2017-06-26 11:18:12 +01:00
smn_hudtext.cpp Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04:00
smn_keyvalues.cpp Add KeyValues.ExportToString (#706) 2017-10-28 12:47:00 +01:00
smn_keyvalues.h Add KeyValues.ExportToString (#706) 2017-10-28 12:47:00 +01: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 Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04: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 Remove replicated flag from sourcemod_version (#667) 2017-08-22 20:53:25 +01:00
sourcemm_api.h Out with the old ConVar accessibility hacks, in with the new. 2018-05-20 19:50:33 -04:00
sourcemod.cpp Don't expose CellArrays in ISourceMod to extensions 2016-08-26 15:09:18 -07:00
sourcemod.h Don't expose CellArrays in ISourceMod to extensions 2016-08-26 15:09:18 -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 support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04:00
UserMessages.h Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04: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