Go to file
BotoX 1d999c3984 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.
2024-06-09 17:33:16 +02:00
.github Bump actions/cache from 3 to 4 (#2103) 2024-02-12 14:01:26 +01:00
bridge/include Implement File.Size (#2131) 2024-04-13 18:14:52 +00:00
configs fix: sorted alphabetically, remove duplicate 'ko' (#2121) 2024-03-05 01:20:40 +00:00
core Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2024-06-09 17:33:16 +02:00
editor Updated sourcepawn.php to latest array syntax 2023-11-30 21:58:49 -08:00
extensions Reconcile the concept of Edict & Networkable across the codebase (#1903) 2024-06-01 14:07:55 +00:00
gamedata 64bit gamedata fixes (#2141) 2024-05-05 16:13:39 +00:00
hl2sdk-manifests@a57b3095a6 Update HL2SDK Manifests Submodule (#2150) 2024-05-05 17:14:15 +00:00
licenses Fix quote mismatch (#1092) 2019-09-30 22:43:18 -07:00
loader Add support for Military Conflict: Vietnam (#1887) 2022-12-20 21:46:18 +00:00
plugins Added hack to make plugins open a menu with all possible targets on ReplyToTargetError COMMAND_TARGET_AMBIGUOUS. 2024-06-09 17:33:16 +02:00
public Add more macros to CDetour. 2024-06-09 17:32:32 +02:00
sourcepawn@d59a51b574 Revert "Update sourcepawn submodule (#2146)" 2024-06-08 09:26:13 -04:00
tools Update checkout-deps files to install hl2sdk-mock (#2102) 2024-01-22 15:30:15 +00:00
translations i18n: Czech Translations (#2120) 2024-05-05 21:19:11 +00: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 Convert AMBuild scripts to use hl2sdk-manifests (#2096) 2023-12-18 23:15:44 +00:00
.gitmodules Move Safetyhook mess into a mirror repo (#2163) 2024-06-08 20:05:29 +00:00
.travis.yml Prefer python3 over python(2) in checkout-deps (#1424) 2021-03-07 13:50:15 +01:00
AMBuildScript Move Safetyhook mess into a mirror repo (#2163) 2024-06-08 20:05:29 +00:00
appveyor.yml Add support for hl2sdk-mock. 2021-09-22 12:36:44 -07:00
changelog.txt Triggering a build. 2011-04-13 19:05:41 -05:00
configure.py Add support for ASAN. 2021-11-11 23:41:42 -08:00
product.version Bump master to 1.12. 2022-07-02 17:02:08 -07:00
pushbuild.txt Trigger build for hl2sdk-l4d2 changes 2024-05-15 09:36:23 -04:00
README.md Bring languages into the tree (#1625) 2023-03-29 16:23:05 +02: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.