Commit Graph
6286 Commits
Author SHA1 Message Date
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
BotoX 6fae1811d9 Added client id to MultiTargetFilter forward. 2019-09-21 20:29:27 +02:00
BotoX 7b476e4532 Add more macros to CDetour. 2019-09-21 20:20:37 +02:00
BotoX ba7fedca6e Remove -Werror, does not compile on GCC due to warning in source SDK. 2019-09-21 20:20:21 +02:00
Asher Baker b2b29cb33f Fix build with latest hl2sdk-csgo 2019-09-02 21:45:47 +01:00
Bruno Ronning c5efe48aa3 Update CS:GO "Reload" offset. (#1011)
(cherry picked from commit d7990596f9)
2019-05-14 19:01:14 -04:00
PerfectLaugh c2d4643204 Remove unneeded paramter in CS_DropWeapon (#988)
Updated in 4/30/2019 csgo update
2019-05-01 15:11:22 -07:00
Nick Hastings 328fbf3f19 Update Linux CSWeaponDropBB signature. 2019-05-01 15:07:06 -07:00
Michael Flaherty b5119201ff Revert "Update CS:GO CSWeaponDrop Signature (#985)"
This reverts commit fe2a488f30.
2019-05-01 15:05:11 -07:00
Anthony fe2a488f30 Update CS:GO CSWeaponDrop Signature (#985) 2019-04-30 23:49:00 -07:00
Nicholas Hastings 2bfc349952 Trigger build for hl2sdk-csgo update. 2019-03-28 20:00:32 -04:00
Asher Baker eb6a39ecde Get GeoIP data from SM site for now 2019-01-19 12:27:23 +00:00
Michael Flaherty 266532f18c Prevent FrameIterator OOB Errors (#949) 2019-01-13 13:37:41 -08:00
Nick Hastings 95027e0ae8 Fix BfRead.BytesLeft not being able to be optional. (fixes #945). 2019-01-01 15:37:01 -05:00
Nicholas Hastings b5a0332181 Fix Mac build. 2018-12-30 19:56:19 -05:00
Asher Baker ff935b4707 Backport #764 (#942)
Backport #764 to 1.9-dev, to fix build on updated versions of VS 2017.
2018-12-29 15:43:59 +00:00
Deathreus 793c603826 Bump non-critical versioning to 1.9 (#938) 2018-12-27 20:27:47 -05:00
David Anderson 03b270cf18 Don't double-format in ReplyToCommand. 2018-12-12 23:30:55 -08:00
Ruben Gonzalez 3c1c6f6c79 Add new CSGO weapon id's/itemdefs. (#929) 2018-12-12 11:39:30 -08:00
Nick Hastings 81766d31f7 Typo fix for CS:GO POSIX Extinguish gamedata. 2018-12-08 09:10:28 -05:00
Nick Hastings cb886d4524 Update CS:GO contribution score offset. 2018-12-07 07:26:20 -05:00
Nick Hastings 31836d2667 Hmm... 2018-12-06 20:50:47 -05:00
Nick Hastings 5dcd01801c Add new GiveNamedItem param for CS:GO. 2018-12-06 20:50:40 -05:00
Nick Hastings 5215abe5c5 Update CS:GO SDKTools and SDKHooks offsets. 2018-12-06 20:50:14 -05:00
Ruben Gonzalez d34d232682 Update csgo gamedata part 1 2018-12-06 20:44:47 -05:00
Dr!fter a084b3295e Update CS:GO SetClanTag. 2018-11-07 18:14:52 -05:00
Asher Baker 48f7e6bcd5 Update game.empires.txt 2018-10-14 13:07:10 +01:00
Asher Baker 74195870e2 Add a note about FormatTime platform dependence (#908)
This has been another constant source of confusion since the C99 ones were added to the strftime documentation we link.

It'd be nice to have a consistent implementation inside SM in the future.
2018-10-11 11:07:58 +01:00
Asher Baker e27e75b197 Handle NULLs in SDKCall string return (Fixes #874) (#906)
`SDKCall` has existing semantics that a `-1` retval indicates null, so use that and writes an empty string to the buffer.

Consumers can tell the difference between `""` and `NULL` by checking if the return value is `0` or `-1`.
2018-10-11 00:19:08 +01:00
Ruben Gonzalez 0cdc3616f2 Update CS:GO gamedata. (#904) 2018-10-09 20:21:11 -04:00
Nick Hastings 92e9ca7153 Merge branch '1.9-dev' of https://github.com/alliedmodders/sourcemod into 1.9-dev 2018-10-05 07:12:14 -04:00
Michael Flaherty ff727d537a [NMRiH] Gamedata update (Fixes #898) (#899) 2018-10-05 07:11:55 -04:00
Michael Flaherty 8803219dd5 Fix regression in vstk size (#894)
* Fix regression in vstk size

* Fix macro comment mistake

* More macro comment removals
2018-10-04 11:14:56 -07:00
Michael Flaherty ada56b06bb Fix CS_TerminateRound calls & detour (#893) 2018-10-04 11:14:41 -07:00
Ruben Gonzalez 14eaa097cb Add new weapons to CSWeaponID enum. (#869) 2018-09-12 10:34:50 -04:00
Michael Flaherty 98be188cbe Fix SetClanTag CS:GO Windows Signature (#868) 2018-08-15 18:06:49 -07:00
Asher Baker 3a61446626 Update blacklist.plugins.txt 2018-08-12 22:33:19 +01:00
Michael Flaherty dd456dcb19 Individualize NameHashSet Hashing & Revisit #709 (#740) (1.9-dev) (#866)
This is a clone of #740, but without the amtl ke::AString lowercase which was implemented in a new version of amtl that 1.9-dev isn't pinned to. Updating this pin and moving fixes is beyond what should go in 1.9, and this fixes a annoying and user-impactful bug with reload/unloading plugins on windows.

Currently in 1.9, once a plugin is loaded into the pluginsys, they must be used with lowercase characters *only*, since pr #709 ignorantly modified their names. 

```
// test.smx exists in /plugins/
sm plugins load TEST.smx // successful
sm plugins unload TEST.smx // TEST.smx not found, it's actually test.smx
```

This pr fixes that error by converting *all* lookups, not just loads.
2018-08-11 13:37:05 +01:00
Nick Hastings c6303d1ec3 Trigger build against hl2sdk-tf2 update. 2018-08-02 17:30:20 -04:00
Michael Flaherty ece57df986 Revert "Individualize NameHashSet Hashing & Revisit #709 (#740)"
This reverts commit 3803fbfe20.
2018-07-27 20:36:16 -07:00
Michael Flaherty 3803fbfe20 Individualize NameHashSet Hashing & Revisit #709 (#740)
* Make mac/win lookups lowercase'd

* Revert #709 & 81042cc

* Adjust HashPolicy implementation across sourcemod

Basically, in order to implement our own (actual) hash policy in
`PluginSys.h`, we needed to remove the blanket implementation of `hash`
that was used before. Now, each policy must implement `hash` along with
`matches` in order to be used with `NameHashSet`. While this does force
us to change every implementation of policies across the entirety of
sourcemod, it allows core to use flexible implementations of `hash`.

* Remove logic duplication

* Improve lowercase checks
2018-07-27 18:59:50 -07:00
Dr!fter 50b5bb1970 Fix CS:GO weaponPrice offset. 2018-07-13 07:47:28 -04:00
Nick Hastings 047e0280ca Enable radio menus for IOSoccer. 2018-07-10 20:19:54 -04:00
Mr. Silence afc493394d Updated some offsets and all signatures for ZPS. (#839)
Signed-off-by: Mr.Silence <[email protected]>
2018-07-10 20:16:05 -04:00
Joël Troch 54a32e979f [ZPS] Update gamedata and engine migration (#782)
* Migrate ZPS from EP2 to SDK 2013 engine

* Update ZPS gamedata (for version 3.0.7-Hotfix3)
2018-07-10 20:15:41 -04:00
Nick Hastings 07f8043bce Update SDKTools sound functionality for hl2sdk-csgo changes. 2018-07-07 09:07:38 -04:00
Nick Hastings 0a7a01e617 Trigger build for hl2sdk-csgo update. 2018-07-06 21:06:44 -04:00
Ruben Gonzalez a68b21369c Update SetClanTag signature 2018-07-06 19:22:03 -04:00
Nick Hastings 9a53fc4425 Update SDKTools gamedata for IOSoccer (fixes #833). 2018-06-22 16:31:42 -04:00
Nick Hastings ab68d046c8 Fix oops with SetConVarBounds. 2018-06-03 12:37:32 -04:00