sourcemod/tools
BotoX a0b8153f4b 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-10-20 12:28:44 +02:00
..
batchtool Move batchtool out of sourcepawn. 2015-03-07 10:52:13 -08:00
buildbot Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2019-10-20 12:28:44 +02:00
crc32 SourceMod can now be somewhat compiled on OS X for patch sanity testing (bug 3516, r=ds). 2008-12-23 01:33:37 -05:00
gamedata_md5 Fixed various memory issues. (bug 5766, r=asherkin) 2013-08-12 00:44:22 +01:00
gdc Static gamedata checker (NPOTB) 2010-10-01 12:15:43 -07:00
gdc-psyfork A couple of fixups to last commit (NPOTB). 2017-12-29 04:55:56 -08:00
ida_scripts Fixup types can include additional flags in the high bytes 2017-07-27 19:31:20 +01:00
incparser Fixed incparser for new functag format and added a sample Crimson Editor template 2009-08-09 14:03:50 +12:00
pcre Updated PCRE source to version 8.32 (bug 5593). 2013-03-17 11:32:03 -04:00
profiler Fixed duplicated entries and unnecessary file locking in ProfViewer (bug 4510, r=dvander) 2010-07-18 21:39:15 -04:00
vtable_scanner Let vtablecheck take class names instead of just vtable symbols (also fix line endings) 2009-03-21 18:17:43 -07:00
checkout-deps.ps1 Add PowerShell version of checkout-deps script for Windows (NPOTB). 2016-06-11 11:17:29 -04:00
checkout-deps.sh Use MySQL 5.5 for MySQL extension. (#786) 2018-03-20 17:12:30 -04:00