Commit Graph
7156 Commits
Author SHA1 Message Date
David Anderson 257535daf2 Update SourcePawn.
This fixes a few more regressions found in the new compiler.
2021-11-07 18:16:20 -08:00
David Anderson eb0878be2b Update SourcePawn.
This fixes a recent stability regression.
2021-11-02 10:51:00 -07:00
Nick Hastings f229badbfc Fix server binary name for CRC lookups. 2021-11-01 13:04:23 -04:00
Nick Hastings 9a6866d14a Invert CRC to match most popular implementations. 2021-11-01 13:04:23 -04:00
dysphie 8991b557ab Update gamedata for NMRiH 1.12 (#1623)
* Fix NMRiH's sdktools gamedata

* Fix NMRiH's sdkhooks gamedata

* Fix GroundEntChanged linux offset
2021-11-01 01:42:45 +00:00
David Anderson be60a55aa3 Update SourcePawn. 2021-10-31 12:30:51 -10:00
David Anderson 10795fbed5 Switch to clang-8.
This is the new minimum supported Clang version going forward.
2021-10-27 09:44:19 -10:00
FortyTwoFortyTwo 9d7e720f33 Fix compiling with tf2_stocks 2021-10-27 07:51:33 -04:00
David Anderson 7605940994 Fix build. 2021-10-26 23:33:00 -07:00
David Anderson 94ff26bdf1 Fix error return of FormatNativeString. (#1613) 2021-10-26 22:31:58 -07:00
David Anderson 2a06680252 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.
2021-10-26 17:45:48 -10:00
Nick Hastings 38a069b97a Throw error if unknown SDK call type specified. 2021-10-26 17:32:25 -04:00
Nick Hastings 4b58b9f673 Reorder SDKCallType enum for better compatibility with existing plugins. 2021-10-26 17:32:02 -04:00
dragokas ffc23a1a1e Exposed SDKCall_Server call type to use CBaseServer methods 2021-10-26 17:18:16 -04:00
David Anderson cab60f7385 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.
2021-10-26 07:05:34 -10:00
Kyle 92ce0fe814 Update TerminateRound signature for CSGO 2021-10-26 09:46:21 -04:00
Vladimir 79d594aca3 Add OnClientLanguageChanged() forward (#1597) 2021-10-25 19:45:24 +01:00
Asher Baker a343410793 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.
2021-10-25 19:42:51 +01:00
Nick Hastings 3332da3489 Fix up OnClientSettingsChange logic order.
- Fixes bot name cache not getting updated (see #1579)
- Fixes IClientListener::OnClientSettingsChanged not being called for bots.
2021-10-24 10:07:55 -04:00
Nick Hastings 1a65b308d1 Add support for other Steam ID formats to admin-sql-threaded (#1520). 2021-10-24 09:57:03 -04:00
Nick Hastings f9309c83d2 Don't cache replay_enable value when evaling whether to use FileExists hook.
Speculative fix for #1581
2021-10-24 08:54:15 -05:00
Nick Hastings 636161e183 Mark unloaded extensions as not fully loaded (fixes #1574). 2021-10-24 08:52:32 -05:00
Charles 897878f8ae Removed incorrect parameter RemoveChangeHook desc 2021-10-23 11:28:23 -05:00
Charles 7650cee459 Removed incorrect parameter in description 2021-10-23 11:28:23 -05:00
Corey D 30c764e4b3 Use words instead of quotes for better clarity
As suggested by sneak-it
2021-10-23 11:25:10 -05:00
Corey D dc92335fbe Missed Database.Escape 2021-10-23 11:25:10 -05:00
Corey D 8c625ca87d Clarify SQL_EscapeString usage
It's hard to see the difference between 2 single-quotes and 1 double-quote unless you highlight it.
2021-10-23 11:25:10 -05:00
Nick Hastings 536750b428 Add missing parameters for CSWeaponDrop. 2021-10-22 23:42:45 -04:00
GAMMACASE 11e7bb10f1 Fix CS_OnCSWeaponDrop after latest CSGO update (21/10/21) (#1602) 2021-10-22 16:20:54 +01:00
Vauff f7cd28cfd3 Update HandleCommand_Buy_Internal sig and related offsets for CS:GO Win 2021-10-21 21:21:36 -05:00
Vauff 83c7bdf872 Update CSWeaponDropBB signature for CS:GO Linux 2021-10-21 19:46:20 -05:00
Nick Hastings 97383028e5 Add option to not bypass hooks with TakeDamage and DropWeapon natives. 2021-10-13 12:56:26 -04:00
Nick Hastings 4a6d263dad Remove obsolete core-legacy checks. 2021-10-13 12:56:26 -04:00
Nick Hastings 549e881ba4 Fix attempting to link win32 libprotobuf on win64. 2021-10-13 12:05:51 -04:00
Nick Hastings c72ea03a86 Use MM:S master for Windows builds (already doing for Linux/Mac). 2021-10-13 10:36:36 -04:00
Nicholas Hastings 9fed0724f7 Typo fix. 2021-10-13 09:57:09 -04:00
Nick Hastings ed96da1afc Fix incorrect param types in CS:GO GNI (otherwise broken for x64). 2021-10-12 20:56:51 -04:00
Nick Hastings da3146e294 Remove manual ptr math in vnatives for params not mapped to cell params. 2021-10-12 20:56:51 -04:00
Nick Hastings 5aa0cdfd45 Fix Blade Symphony GiveNamedItem call on x64. 2021-10-12 20:56:51 -04:00
Nick Hastings 0be7813398 Add ValveType_Object type.
This is for the few cases where we have function parameters to objects that
don't fit our other predefined types (CBaseEntity, CBasePlayer, string).

Most calls currently pass those as POD (which is incorrect, but works on
x86), or one of the other pointer types (which is also incorrect, and can
lead to confusion, but works on x86 and x86-64).

This type only works when manually buffering the parameter for calls, and
is not supported for return types.
2021-10-12 20:56:51 -04:00
Nick Hastings de84f47503 On Linux, link against server libs instead of client (fixes META_CONPRINT). 2021-10-12 20:56:51 -04:00
Nick Hastings 115e3d4392 Update multiple SDKTools calls to be x64-safe [sizeof(void*) != sizeof(int)] 2021-10-12 20:56:51 -04:00
Nick Hastings 9f101ce67f Add missing WriteBaselines signatures for Blade Symphony. 2021-10-12 20:56:51 -04:00
Nick Hastings 9295bc4fbb Fix crash with IBinTools calls on x64 for functions with void return. 2021-10-12 20:56:51 -04:00
Nick Hastings 9e083ec668 Use new GetIServer call and updated IServerTools calls on Blade Symphony. 2021-10-12 20:56:51 -04:00
Nick Hastings 68c8857410 Enable more CS:GO engine logic for Blade Symphony. 2021-10-12 20:56:51 -04:00
Nick Hastings 9323d1094f Blade Symphony gamedata updates, round 1. 2021-10-12 20:56:51 -04:00
Nick Hastings dc2967b2e7 Fix CS:GO transposing of GiveNamedItem last param and return. 2021-10-12 20:56:51 -04:00
Nick Hastings 6d85c09e69 Enable 64-bit builds for Blade Symphony. 2021-10-12 20:56:51 -04:00
Nick Hastings 6a8177145d Add .vs and .vscode dirs to .gitignore. 2021-10-12 20:38:44 -04:00