Go to file
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
.github Enable CI on release branches (#1854) 2023-08-30 22:08:45 +02:00
bridge/include Add functions for working with entity lumps (#1673) 2023-08-30 22:08:45 +02:00
configs Removing old GeoIP.dat (#1533) 2021-07-17 11:32:02 +01:00
core 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
editor Added AMXX Pawn geshi generation script. 2010-08-23 13:53:44 -04:00
extensions Fix DHooks jit code stack memory alignment (#1849) 2023-08-30 22:08:45 +02:00
gamedata TF2: Update StunPlayer signature (#2024) (fixes #2022) 2023-08-30 22:08:46 +02:00
licenses Fix quote mismatch (#1092) 2019-09-30 22:43:18 -07:00
loader Fix build against released MM:S branches (#1607) 2023-08-30 22:08:45 +02:00
plugins 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
public 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
sourcepawn@f31a11eb06 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
tools Add functions for working with entity lumps (#1673) 2023-08-30 22:08:45 +02:00
translations Standardize some spacing in translation phrases (#1254) 2020-05-08 14:55:05 -07:00
versionlib Update to AMBuild 2.2. 2020-08-18 23:09:43 -07:00
.arcconfig Add a .arcconfig file so that arc works 2013-10-15 22:57:59 +01:00
.gitattributes NPOTB: Correct GitHub's Linguist inaccuracies (#1096) 2019-10-07 19:14:09 +01:00
.gitignore Ignore all build* folders in .gitignore 2023-08-30 22:08:45 +02:00
.gitmodules .gitmodules: Make submodules shallow (#1769) 2023-08-30 22:08:45 +02:00
.travis.yml Prefer python3 over python(2) in checkout-deps (#1424) 2021-03-07 13:50:15 +01:00
AMBuildScript Fix build. 2023-08-30 22:08:45 +02:00
appveyor.yml Add support for hl2sdk-mock. 2023-08-30 22:08:44 +02:00
changelog.txt Triggering a build. 2011-04-13 19:05:41 -05:00
configure.py Add support for ASAN. 2023-08-30 22:08:45 +02:00
product.version Bump version to 1.11. 2019-10-18 21:07:36 -07:00
pushbuild.txt Trigger build for TF2 SDK update 2023-08-30 22:08:46 +02:00
README.md Incorperate Licensing Into Project Tree (#961) 2019-04-12 12:10:13 -07:00

SourceMod

General

Development

Contact

  • Connect with us on GameSurge IRC in #sourcemod
  • Alternatively feel free to join our Discord server

License

SourceMod is licensed under the GNU General Public License version 3. Special exceptions are outlined in the LICENSE.txt file inside of the licenses folder.