Commit Graph

6298 Commits

Author SHA1 Message Date
BotoX
078e754a82 fix AMTL for dhooks2 2019-09-21 22:15:03 +02:00
BotoX
a776c14cf8 fix rare crash bug in SDKTools GetGameRulesProxyEnt 2019-09-21 21:39:35 +02:00
BotoX
bd296a27f8 Add OnEntitySpawned to SDKHooks. 2019-09-21 21:38:56 +02:00
BotoX
2e9619ff67 Implement per-client randomized menus with MenuShufflePerClient native.
Add MenuSetClientMapping native.

fix remaining issues
2019-09-21 21:20:53 +02:00
BotoX
67a0d18ce7 Changes on sm_*say 2019-09-21 21:16:43 +02:00
BotoX
c5428a8726 Fix HookEntityOutput/HookSingleEntityOutput bugs in sdktools. 2019-09-21 21:15:57 +02:00
BotoX
8db2132856 cstrike: Fix wrong timeleft calculation (#1072)
* Fix wrong timeleft calculation

* reorder function calls
2019-09-21 21:15:44 +02:00
BotoX
2e28df3dc6 Add GetClientIClient native. 2019-09-21 21:14:14 +02:00
Obuss
b362abf4b2 Logging changes to various base plugins. 2019-09-21 21:13:15 +02:00
BotoX
da1cd9eb11 Extend function calling API for natives and allow catching exceptions.
Change sourcepawn url.
2019-09-21 21:12:29 +02:00
BotoX
82628cfc5a Avoid losing console messages.
Buffers up to 16k bytes of SVC_Print if buffer would overflow, then sends chunks every frame.
Sends up to 2048 bytes per frame and does not split messages.
2019-09-21 20:38:53 +02:00
BotoX
690b3c5a28 Fix @spec not targeting clients in unassigned team. 2019-09-21 20:30:04 +02:00
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