sourcemod/public
Your Name d099dbb659 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.

# Conflicts:
#	tools/buildbot/PackageScript
2023-08-30 22:08:46 +02:00
..
amtl@ef79d8d86a Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2023-08-30 22:08:46 +02:00
asm Update dhooks.inc documentation for consistency (#1658) 2023-08-30 22:08:45 +02:00
CDetour Add more macros to CDetour. 2023-08-30 22:08:46 +02:00
doxygen Spring Cleaning, Part Ichi (1) 2008-03-30 07:00:22 +00:00
extensions Remove OnEntitySpawned C++ listener (#1342) 2020-08-26 12:53:31 +01:00
jit 64-bit support for CSGO on Linux and macOS (#705) 2017-12-20 01:56:23 -06:00
libudis86 64-bit support for CSGO on Linux and macOS (#705) 2017-12-20 01:56:23 -06:00
mms_sample_ext Fixed build error in mms_sample_ext from cset d17aed3d46bf (r=psychonic). 2013-03-16 23:02:36 -04:00
sample_ext Add sdk'less sample_ext and update -std to 14 (#1456) 2021-03-29 22:12:45 +01:00
sample_ext_nosdk Add sdk'less sample_ext and update -std to 14 (#1456) 2021-03-29 22:12:45 +01:00
AutoHandleRooter.h Move scared guts of core into logic (bug 5680, r=fyren). 2013-03-29 11:37:29 -07:00
compat_wrappers.h Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04:00
IAdminSystem.h Move adminsys and more natives from core to logic. 2014-05-29 13:31:12 -04:00
IADTFactory.h Switch ADTFactory/IBasicTrie off KTrie (bug 5884 part 17, r=ds). 2013-08-25 12:21:15 -07:00
ICellArray.h Add ICellArray and create/free in ISourceMod 2016-08-21 21:32:23 +02:00
IDBDriver.h Add atomic reference counting and port DBI (bug 5876 part 3, r=ds). 2013-08-23 00:18:13 -07:00
IExtensionSys.h Fix Miscellaneous Regressions and UBs (#1022) 2019-05-28 18:04:08 -07:00
IForwardSys.h Don't break backwards compatibility with unmanaged forwards 2017-08-25 23:23:50 +02:00
IGameConfigs.h Update dhooks.inc documentation for consistency (#1658) 2023-08-30 22:08:45 +02:00
IGameHelpers.h Update dhooks.inc documentation for consistency (#1658) 2023-08-30 22:08:45 +02:00
IHandleSys.h Move scared guts of core into logic (bug 5680, r=fyren). 2013-03-29 11:37:29 -07:00
ILibrarySys.h Move scared guts of core into logic (bug 5680, r=fyren). 2013-03-29 11:37:29 -07:00
IMemoryUtils.h Add support for Mac OS X to ResolveSymbol() and FindPattern() in IMemUtils (bug 4392, r=dvander). 2010-05-13 04:20:41 -05:00
IMenuManager.h menusys: add MenuShufflePerClient native (#1073) 2020-08-06 20:31:00 -07:00
IPlayerHelpers.h Add OnClientLanguageChanged() forward (#1597) 2023-08-30 22:08:45 +02:00
IPluginSys.h Add an OnPluginWillUnload callback that precedes OnPluginEnd(). 2015-11-01 00:30:37 -07:00
IRootConsoleMenu.h Replace the AddRootConsoleCommand API to not expose internal structures. 2015-08-30 21:01:03 -07:00
IShareSys.h Remove native override API (bug 5852 part 1, r=ds). 2013-08-30 10:10:57 -07:00
ISourceMod.h Burninate IDataPack (#864) 2018-08-13 23:03:48 +01:00
ITextParsers.h Added an SMC stream reader to ITextParser (bug 3530, r=pred). 2009-02-01 20:31:27 -05:00
IThreader.h Pare down ThreadSupport and remove ancient thread code. 2020-05-13 00:35:29 -07:00
ITimerSystem.h Move timer natives into logic binary (bug 4402, r=ds). 2010-05-13 01:47:12 -07:00
ITranslator.h Add Translation Natives (#669) 2017-11-20 21:24:01 -08:00
IUserMessages.h Added initial support for protobuf usermessages on CS:GO (bug 5579, r=asherkin). 2013-01-22 21:43:12 -05:00
metamod_wrappers.h Spring Cleaning, Part Ichi (1) 2008-03-30 07:00:22 +00:00
ReentrantList.h Replace ke::LinkedList with std::list. 2020-05-31 23:19:41 -07:00
sm_argbuffer.h Fix ArgBuffer String Serialization (#999) 2019-05-04 01:46:55 -07:00
sm_invalidparamhandler.h handlesys: Output allocation timestamp during panic (#1110) 2020-07-09 18:21:45 -07:00
sm_memtable.h Deduplicate a number of files used by extensions by moving them to the public directory (bug 5341, r=psychonic). 2014-04-23 21:19:28 -05:00
sm_namehashset.h Make all command lookups case-insensitive (#1542) 2021-07-18 19:05:06 +01:00
sm_platform.h handlesys: Output allocation timestamp during panic (#1110) 2020-07-09 18:21:45 -07:00
sm_queue.h Move DBManager and DB natives from core to logic (bug 5953, r=fyren). 2013-10-09 08:43:08 -04:00
sm_stringhashmap.h Replace AString with std::string. 2020-05-20 17:57:18 -07:00
sm_trie_tpl.h trie: implement clone() method (#852) 2020-07-14 20:11:23 -07:00
smsdk_ext.cpp Migrate extensions to common AMTL string funcs (#785) 2018-03-25 13:00:53 -07:00
smsdk_ext.h Migrate extensions to common AMTL string funcs (#785) 2018-03-25 13:00:53 -07:00
sourcemod_version.h Bump version for non-VCS builds (#1243) 2020-04-27 15:50:03 +01:00
vtable_hook_helper.h Change SDKHooks to VTable Hooks (bug 6070, r=psychonic). 2014-03-23 22:11:06 -06:00