sourcemod/core/logic
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
..
thread Update to the latest SourcePawn and AMTL. 2016-03-13 16:29:11 -07:00
AdminCache.cpp Move sm_dump_admcache to AdminCache. 2015-09-20 14:33:02 -07:00
AdminCache.h Individualize NameHashSet Hashing & Revisit #709 (#740) (1.9-dev) (#866) 2018-08-11 13:37:05 +01:00
ADTFactory.cpp Move ADTFactory from core to logic (bug 5953, r=fyren). 2013-10-09 08:43:08 -04:00
ADTFactory.h Move ADTFactory from core to logic (bug 5953, r=fyren). 2013-10-09 08:43:08 -04:00
AMBuilder Add FrameIterator to SourceMod (#716). 2017-11-16 18:55:37 -08:00
CDataPack.cpp Allow seeking to end of datapack (#687) 2017-09-19 23:27:35 +01:00
CDataPack.h Move CDataPack from core to logic. 2015-09-06 11:02:52 -07:00
CellArray.h Fix crash in CloneArray for too large arrays (#566) 2016-12-11 20:55:11 -08:00
common_logic.cpp Add ICellArray and create/free in ISourceMod 2016-08-21 21:32:23 +02:00
common_logic.h Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
Database.cpp Update to the latest SourcePawn and AMTL. 2016-09-24 16:45:04 -07:00
Database.h Update to the latest SourcePawn and AMTL. 2016-03-13 16:29:11 -07:00
DebugReporter.cpp Suppress logging of "Plugin not runnable" errors 2016-10-26 23:48:56 -06:00
DebugReporter.h Implement a new stack and error handling model for the SourcePawn VM. 2015-03-04 23:45:30 -08:00
ExtensionSys.cpp Merge pull request #744 from alliedmodders/show-required-exts 2017-12-31 11:17:44 -05:00
ExtensionSys.h Only show extensions that failed to load if the extension is required. 2017-11-30 12:57:12 -05:00
ForwardSys.cpp Don't break backwards compatibility with unmanaged forwards 2017-08-25 23:23:50 +02:00
ForwardSys.h Don't break backwards compatibility with unmanaged forwards 2017-08-25 23:23:50 +02:00
frame_tasks.cpp Don't use server commands to flush plugin unloads. 2015-09-15 19:43:41 -07:00
frame_tasks.h Don't use server commands to flush plugin unloads. 2015-09-15 19:43:41 -07:00
FrameIterator.cpp Prevent FrameIterator OOB Errors (#949) 2019-01-13 13:37:41 -08:00
FrameIterator.h Add FrameIterator to SourceMod (#716). 2017-11-16 18:55:37 -08:00
GameConfigs.cpp Add convenience logic for "offset" to Address definitions in GameConf (#580) 2017-10-28 12:11:32 +01:00
GameConfigs.h Individualize NameHashSet Hashing & Revisit #709 (#740) (1.9-dev) (#866) 2018-08-11 13:37:05 +01:00
handle_helpers.h Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
HandleSys.cpp Move sm_dump_handles to core/logic. 2015-09-20 14:33:10 -07:00
HandleSys.h Individualize NameHashSet Hashing & Revisit #709 (#740) (1.9-dev) (#866) 2018-08-11 13:37:05 +01:00
LibrarySys.cpp Update to the latest AMTL - Rename Ref to RefPtr. 2015-11-08 13:14:57 -08:00
LibrarySys.h Update to the latest AMTL - Rename Ref to RefPtr. 2015-11-08 13:14:57 -08:00
Logger.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
Logger.h Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
MemoryUtils.cpp Fixed potential for reading out of library bounds in MemoryUtils;:FindPattern (r=asherkin). 2013-01-23 14:05:35 -05:00
MemoryUtils.h Fixed crash in MemoryUtils::ResolveSymbol() on OS X Lion (10.7) (bug 4951, r=dvander). 2011-06-15 16:02:05 -05:00
MersenneTwister.h Added better random number generator (bug 3831, r=fyren). 2009-10-26 23:59:59 -07:00
Native.h Individualize NameHashSet Hashing & Revisit #709 (#740) (1.9-dev) (#866) 2018-08-11 13:37:05 +01:00
NativeOwner.cpp Keep optional natives optional after reloading 2016-07-21 01:52:47 +02:00
NativeOwner.h Update to the latest AMTL - Rename Ref to RefPtr. 2015-11-08 13:14:57 -08:00
PhraseCollection.cpp Add Translation Natives (#669) 2017-11-20 21:24:01 -08:00
PhraseCollection.h Add Translation Natives (#669) 2017-11-20 21:24:01 -08:00
PluginSys.cpp Individualize NameHashSet Hashing & Revisit #709 (#740) (1.9-dev) (#866) 2018-08-11 13:37:05 +01:00
PluginSys.h Fix Mac build. 2018-12-30 19:56:19 -05:00
ProfileTools.cpp Replace the AddRootConsoleCommand API to not expose internal structures. 2015-08-30 21:01:03 -07:00
ProfileTools.h Replace the AddRootConsoleCommand API to not expose internal structures. 2015-08-30 21:01:03 -07:00
RootConsoleMenu.cpp Move the "sm" command to core/logic. 2015-09-20 14:33:17 -07:00
RootConsoleMenu.h Individualize NameHashSet Hashing & Revisit #709 (#740) (1.9-dev) (#866) 2018-08-11 13:37:05 +01:00
ShareSys.cpp Keep optional natives optional after reloading 2016-07-21 01:52:47 +02:00
ShareSys.h Update to the latest AMTL: remove PassRef. 2015-11-08 13:51:22 -08:00
sm_crc32.cpp Mercurial queues... oh, how terrible. 2010-01-18 03:20:44 -08:00
sm_crc32.h Mercurial queues... oh, how terrible. 2010-01-18 03:20:44 -08:00
sm_simple_prioqueue.h Move DBManager and DB natives from core to logic (bug 5953, r=fyren). 2013-10-09 08:43:08 -04:00
sm_symtable.h Move memutils from core to logic (bug 4406, r=ds). 2010-05-14 16:14:59 -07:00
sm_trie.cpp Move adminsys and more natives from core to logic. 2014-05-29 13:31:12 -04:00
sm_trie.h Move adminsys and more natives from core to logic. 2014-05-29 13:31:12 -04:00
smn_admin.cpp Purge Purge. 2015-03-05 10:56:36 -08:00
smn_adt_array.cpp Add ADT array blocksize getter (#578) 2017-02-09 19:26:14 +00:00
smn_adt_stack.cpp Add ADT array blocksize getter (#578) 2017-02-09 19:26:14 +00:00
smn_adt_trie.cpp Update to the latest SourcePawn and AMTL. 2016-09-24 16:45:04 -07:00
smn_banning.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
smn_console.cpp Don't double-format in ReplyToCommand. 2018-12-12 23:30:55 -08:00
smn_core.cpp Add FrameIterator to SourceMod (#716). 2017-11-16 18:55:37 -08:00
smn_database.cpp Fix crash when a database transaction fails (bug 6531) (#577) 2017-01-22 22:27:31 -08:00
smn_datapacks.cpp Move CDataPack from core to logic. 2015-09-06 11:02:52 -07:00
smn_fakenatives.cpp Add IsNativeParamNullVector and IsNativeParamNullString natives 2017-08-25 23:23:07 +02:00
smn_filesystem.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
smn_float.cpp Switch C header & Fix warnings (#702) 2017-10-15 10:32:01 +01:00
smn_functions.cpp Don't break backwards compatibility with unmanaged forwards 2017-08-25 23:23:50 +02:00
smn_gameconfigs.cpp Moved gameconf code from core to logic (bug 4406 part 11, r=ds). 2010-05-14 23:35:42 -07:00
smn_halflife.cpp Add support for retrieving game server Steam Id (bug 6404). (#495) 2016-04-26 23:17:08 -04:00
smn_handles.cpp Allow CloseHandle() on nulls. 2014-07-05 13:52:44 -07:00
smn_lang.cpp Add Translation Natives (#669) 2017-11-20 21:24:01 -08:00
smn_maplists.cpp Individualize NameHashSet Hashing & Revisit #709 (#740) (1.9-dev) (#866) 2018-08-11 13:37:05 +01:00
smn_menus.cpp Fix Panel.Style getter not being bound. 2016-12-12 08:52:26 -05:00
smn_players.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_profiler.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
smn_sorting.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
smn_string.cpp Move the guts of Format to a helper function 2016-02-15 12:49:22 +00:00
smn_textparse.cpp Port SMC parsing API to transitional syntax. 2014-11-09 12:33:07 -08:00
smn_timers.cpp Split intercom.h into separate headers and reduce shared header inclusion. 2015-08-31 10:00:49 -07:00
sprintf.cpp Implement an auto-escaping Format native for SQL query construction 2016-02-15 15:05:16 +00:00
sprintf.h Implement an auto-escaping Format native for SQL query construction 2016-02-15 15:05:16 +00:00
stringutil.cpp Merge pull request #476 from alliedmodders/query-format 2016-10-03 16:20:01 +01:00
stringutil.h Move the guts of Format to a helper function 2016-02-15 12:49:22 +00:00
TextParsers.cpp Remove Format/FormatArgs from the core/logic bridge. 2015-08-30 18:03:31 -07:00
TextParsers.h Import of core modularization plan (bug 3599). 2009-05-13 21:55:50 -04:00
ThreadSupport.cpp Import of core modularization plan (bug 3599). 2009-05-13 21:55:50 -04:00
ThreadSupport.h Rename ke_* headers to am-* 2013-08-22 17:10:59 -07:00
Translator.cpp Add Translation Natives (#669) 2017-11-20 21:24:01 -08:00
Translator.h Add Translation Natives (#669) 2017-11-20 21:24:01 -08:00
version.rc Overhauled versioning information (bug 5453, r=dvander). 2012-08-26 01:33:54 +01:00