sourcemod/tools/buildbot
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
..
bootstrap.pl Use env vars to find MySQL src on Linux, macOS. 2018-06-07 20:40:14 -04:00
BreakpadSymbols Fix BreakpadSymbols script for 64-bit builds. 2017-12-20 02:07:30 -06:00
build_type Central place to mark releases so buildbot symbols aren't scrapped by purge script (bug 3809, r=me, a12=NPOTB). 2009-05-12 19:06:57 -04:00
generate_headers.py Fix build when product.version is mangled (#679) 2017-09-10 01:17:35 +01:00
helpers.pm Fix spacing. 2014-05-25 12:10:25 -07:00
package.pl Ignore SM site certificate when downloading GeoIP 2019-01-19 12:34:23 +00:00
PackageScript 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
startbuild.pl Switch buildbot scripts to AMBuild 2 (bug 5997 part 15, r=ds). 2013-12-30 17:51:01 -05:00
symstore.pl Switch packaging scripts to Git. 2014-05-25 12:05:24 -07:00
upload_symbols.py And the last piece of the puzzle... normalise the slashes. 2015-11-05 17:45:26 +00:00
Versioning Fix build. 2014-05-28 21:10:40 -04:00