Commit Graph

6818 Commits

Author SHA1 Message Date
Peace-Maker
c72736dcfa Use SourceMod's version number 2023-08-30 22:08:45 +02:00
Peace-Maker
d16f45c4b6 Print OS errors if mprotect fails
This helped catch a bug in DHooks before, so it's worth adding it in here as well.
2023-08-30 22:08:45 +02:00
Peace-Maker
e280d33a28 Use JMP patching of CDetour 2023-08-30 22:08:45 +02:00
Peace-Maker
fb1d501c24 Add copyright headers 2023-08-30 22:08:45 +02:00
Peace-Maker
3c0f700a6b Import DHooks + Dynamic Detouring
This is the latest DHooks version from 1314f2d1b4
2023-08-30 22:08:45 +02:00
Adrián
45e9da90fc Fix translations getting truncated prematurely (#1640) 2023-08-30 22:08:45 +02:00
Nick Hastings
a60c443b29 Update Contagion SDKHooks gamedata. 2023-08-30 22:08:45 +02:00
Nick Hastings
b064366169 Disable Reserved Slots plugin on Contagion.
(It doesn't have sv_visiblemaxplayers).
2023-08-30 22:08:45 +02:00
Nick Hastings
a06a903989 Make separate copy of makesig script for IDA 7.x. 2023-08-30 22:08:45 +02:00
Mikusch
e67fdf2331 Update Team Fortress 2 gamedata
Shift virtual offsets up by 3
2023-08-30 22:08:45 +02:00
Nick Hastings
e2ca3a9493 Update Contagion SDKTools gamedata. 2023-08-30 22:08:45 +02:00
dysphie
9099634b95 Fix "ForcePlayerSuicide" linux offset in NMRiH (#1627) 2023-08-30 22:08:45 +02:00
David Anderson
f182feed9d Add support for ASAN. 2023-08-30 22:08:45 +02:00
David Anderson
02dd6a9c00 Update SourcePawn.
This fixes a few more regressions found in the new compiler.
2023-08-30 22:08:45 +02:00
David Anderson
b421a0c594 Update SourcePawn.
This fixes a recent stability regression.
2023-08-30 22:08:45 +02:00
Nick Hastings
9ec5cb819c Fix server binary name for CRC lookups. 2023-08-30 22:08:45 +02:00
Nick Hastings
f8e664b797 Invert CRC to match most popular implementations. 2023-08-30 22:08:45 +02:00
dysphie
42575f7cc3 Update gamedata for NMRiH 1.12 (#1623)
* Fix NMRiH's sdktools gamedata

* Fix NMRiH's sdkhooks gamedata

* Fix GroundEntChanged linux offset
2023-08-30 22:08:45 +02:00
David Anderson
aa98f60ca3 Update SourcePawn. 2023-08-30 22:08:45 +02:00
David Anderson
d5f47a88e6 Switch to clang-8.
This is the new minimum supported Clang version going forward.
2023-08-30 22:08:45 +02:00
FortyTwoFortyTwo
62f08a31fc Fix compiling with tf2_stocks 2023-08-30 22:08:45 +02:00
David Anderson
e565c83494 Fix build. 2023-08-30 22:08:45 +02:00
David Anderson
a68ff2a587 Fix error return of FormatNativeString. (#1613) 2023-08-30 22:08:45 +02:00
David Anderson
377888276e Update to the new SourcePawn compiler.
This imports the brand new SourcePawn compiler. The new compiler is much
faster to compile and generates significantly improved code around
array generation and array access.

There are a number of compatibility changes in the new compiler. Most of
these are due to improved type checking and error detection. The full
list of notes can be found here:

https://github.com/alliedmodders/sourcepawn/blob/master/docs/upgrading-1.11.md

Additionally, .smx files generated by the new compiler will NOT load on
earlier versions of SourceMod, including earlier versions of 1.11. Old
plugins will continue to load as normal.
2023-08-30 22:08:45 +02:00
Nick Hastings
52b8e95aae Throw error if unknown SDK call type specified. 2023-08-30 22:08:45 +02:00
Nick Hastings
bb6e6fd3b6 Reorder SDKCallType enum for better compatibility with existing plugins. 2023-08-30 22:08:45 +02:00
dragokas
0449342bb0 Exposed SDKCall_Server call type to use CBaseServer methods 2023-08-30 22:08:45 +02:00
David Anderson
3171d4fb7b Bump handle limit to 1MB.
This bumps the handle bits to 20 and reduces the serial/cookie bits to
12. A warning is emitted if a single owner creates more than 100k
handles.

Tested on mock srcds with sm_dump_handles.
2023-08-30 22:08:45 +02:00
Kyle
066818fbec Update TerminateRound signature for CSGO 2023-08-30 22:08:45 +02:00
Vladimir
255f5ea745 Add OnClientLanguageChanged() forward (#1597) 2023-08-30 22:08:45 +02:00
Asher Baker
2e763c287c Fix build against released MM:S branches (#1607)
`SOURCE_ENGINE_MOCK` is part of the MM:S API and only available in 1.12
which is the dev branch of MM:S. We can build the mock SM build without
it anyway, but this is still a little gross as it is just missing loader
support which could be confusing.

This also changes AMBuildScript to first look for a checkout of MM:S
1.11 which has been the stable branch for a while, 1.10 is still allowed
as a fallback as that seems to still build without issue.
2023-08-30 22:08:45 +02:00
Nick Hastings
29c33bfcc9 Fix up OnClientSettingsChange logic order.
- Fixes bot name cache not getting updated (see #1579)
- Fixes IClientListener::OnClientSettingsChanged not being called for bots.
2023-08-30 22:08:45 +02:00
Nick Hastings
88bdbf4866 Add support for other Steam ID formats to admin-sql-threaded (#1520). 2023-08-30 22:08:45 +02:00
Nick Hastings
1559b75ae7 Don't cache replay_enable value when evaling whether to use FileExists hook.
Speculative fix for #1581
2023-08-30 22:08:45 +02:00
Nick Hastings
ff00e3d036 Mark unloaded extensions as not fully loaded (fixes #1574). 2023-08-30 22:08:45 +02:00
Charles
daa1a4df14 Removed incorrect parameter RemoveChangeHook desc 2023-08-30 22:08:45 +02:00
Charles
4e2ace9d2f Removed incorrect parameter in description 2023-08-30 22:08:45 +02:00
Corey D
ee722d778f Use words instead of quotes for better clarity
As suggested by sneak-it
2023-08-30 22:08:45 +02:00
Corey D
e82f0acdb8 Missed Database.Escape 2023-08-30 22:08:45 +02:00
Corey D
383cd81be6 Clarify SQL_EscapeString usage
It's hard to see the difference between 2 single-quotes and 1 double-quote unless you highlight it.
2023-08-30 22:08:45 +02:00
Nick Hastings
6250db7dba Add missing parameters for CSWeaponDrop. 2023-08-30 22:08:45 +02:00
GAMMACASE
8ae3be7185 Fix CS_OnCSWeaponDrop after latest CSGO update (21/10/21) (#1602) 2023-08-30 22:08:45 +02:00
Vauff
64b897822f Update HandleCommand_Buy_Internal sig and related offsets for CS:GO Win 2023-08-30 22:08:45 +02:00
Vauff
0ad0d839a0 Update CSWeaponDropBB signature for CS:GO Linux 2023-08-30 22:08:45 +02:00
Nick Hastings
55382e0a0f Add option to not bypass hooks with TakeDamage and DropWeapon natives. 2023-08-30 22:08:45 +02:00
Nick Hastings
d8b00675d6 Remove obsolete core-legacy checks. 2023-08-30 22:08:45 +02:00
Nick Hastings
633298b6a9 Fix attempting to link win32 libprotobuf on win64. 2023-08-30 22:08:45 +02:00
Nick Hastings
656a9fa94f Use MM:S master for Windows builds (already doing for Linux/Mac). 2023-08-30 22:08:45 +02:00
Nicholas Hastings
bb7929594d Typo fix. 2023-08-30 22:08:45 +02:00
Nick Hastings
d4545a105e Fix incorrect param types in CS:GO GNI (otherwise broken for x64). 2023-08-30 22:08:45 +02:00