Commit Graph

6144 Commits

Author SHA1 Message Date
WildCard65
90b3df1181 Add 2 CSGO gamerules netprops to CSGO blocklist if FollowCSGOServerGuidelines is enabled. (#514)
* Add m_bIsValveDS and m_bIsQuestEligible

* Fix compile
2017-02-04 08:18:58 -05:00
peace-maker
9e27a867dd Fix typo in menu manager drawing no spacer (#581)
The "Back" slot was hidden even if the page had a "Next" button. Draw
the spacer correctly!
2017-02-04 08:16:27 -05:00
David Anderson
7239f1d00a Merge pull request #582 from alliedmodders/update-sp
Update to the latest SourcePawn.
2017-02-03 23:12:58 -08:00
David Anderson
613838626e Update to the latest SourcePawn. 2017-02-03 22:45:47 -08:00
Nicholas Hastings
5118ea621d Update Linux CS:GO TerminateRound gamedata. 2017-02-03 23:37:02 -05:00
peace-maker
ea8fdd8fbb Fix crash when a database transaction fails (bug 6531) (#577)
If one of the queries fails in a transaction, the DBI system would only allocate an array of the size of the amount of all the successful queries before the failed one. It writes data for all the queries though effectively writing past the array bounds leading to heap corruption.

Create the right sized array!
2017-01-22 22:27:31 -08:00
Kyle Sanderson
f9ec1484f8 Update SourcePawn Module to c687974f5451b9d312141bfa020f465bd8bf96aa . 2017-01-21 18:05:54 -08:00
Nicholas Hastings
c7f413f1b0 Sanitize servercfgfile and lservercfgfile values with sm_cvar (bug 6579). 2017-01-20 15:29:25 -05:00
GoD-Tony
3fd7b29d64 Fix GDC's Linux sigscanning (#576)
The pointer returned by dlopen is not inside the loaded librarys memory region.
2017-01-20 10:13:31 -05:00
GoD-Tony
a0f060f000 Update CS:GO TerminateRound gamedata (#575) 2017-01-20 07:33:42 -05:00
WildCard65
fd399b9b4b Fix memory leak in Regex extension. (#572)
* Fix memory leak in Regex extension.

"x" is never deleted when compile fails.

* Handle handle allocation failures.

Handle allocation failures also result in memory leaks.

* Fix typo.
2017-01-11 21:25:46 -05:00
Nicholas Hastings
ad3588d0aa Use newer MM:S api for Ep1/Original engine. (#548)
* Use newer MM:S api for Ep1/Original engine.

* Remove doubled FILENAME_1_6_EP1 define.
2017-01-11 21:25:00 -05:00
Nicholas Hastings
d9312799c3 Allow direct event FireToClient if broadcast disabled.
Event.FireToClient should not care whether or not broadcasting
is enabled for the event since we're already intentionally not
broadcasting.
2017-01-03 20:31:40 -05:00
Nicholas Hastings
cb39030cce Don't check handle ownership on Event.FireToClient
The handle does not get mutated here, so it is safe. Since we
don't currently support cloning event handles or copying events,
this also facilitates the only easy way of firing an existing game-
created event to a client.
2017-01-03 20:31:40 -05:00
Nicholas Hastings
0aa11374d8 Fix some gamedata issues.
"engine" and "game" were in the same #supported key in places, where
we wanted either to match, rather than both match.
2016-12-26 16:13:38 -05:00
Max Maton
0b7d99f03d Send the complete TextMsg usermsg (#571)
The source 2013 handler for TextMsg expects five strings in the message here: https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/client/hud_chat.cpp#L124

Because sourcemod doesn't send the last four strings along each message sent from sourcemod triggers an assert if the game is not built with RELEASE.
2016-12-25 17:33:18 -08:00
Nicholas Hastings
47d22a3051 Allow CStrike ext to load on CS:GO "mods".
They theoretically cannot have any binary changes since there is no
real SDK, so it should be compatible.
2016-12-25 08:31:39 -05:00
Nicholas Hastings
600f7e2342 Fix gamedata for CS:GO "mods". 2016-12-24 23:28:08 -05:00
Nicholas Hastings
fbe377a53d Limit Black Mesa to 6 max radio menu items. (7+ not bound) 2016-12-13 13:30:18 -05:00
Nicholas Hastings
8a7262afd5 Enable Radio menus for Black Mesa. 2016-12-13 13:23:24 -05:00
iNilo
02fcf37088 Use method-map .Style instead of GetMaxPageItems. (sm_msay patch) (#569) 2016-12-12 10:18:59 -05:00
iNilo
ec455394b4 Change sm_msay behavior to use GetMaxPageItems instead of hardcoded values (#568)
* Fix for CS:GO not showing the sm_msay exit button

Fix for CS:GO not showing the sm_msay exit button

![mSayPanel.CurrentKey = 9](http://i.imgur.com/t8079No.png)

![mSayPanel.CurrentKey = 10](http://i.imgur.com/qxgVoUM.png)

* Someone ate the semicolon

Made a new one

* Uses gamedata to determine the exit button

Uses gamedata to determine the exit button

* GetMenuStyle -> GetPanelStyle
2016-12-12 08:57:29 -05:00
Nicholas Hastings
ee501058fb Fix Panel.Style getter not being bound. 2016-12-12 08:52:26 -05:00
peace-maker
b74573fa12 Fix crash in CloneArray for too large arrays (#566)
If there is not enough memory to clone an array, throw an error instead
of crashing the server.
2016-12-11 20:55:11 -08:00
peace-maker
d3d16a93cf Fix threaded query's result handle access rights (#567)
Plugins were able to close the results handle in the threaded query
callback causing a double free crash. The access rights are setup right
before the handle is created, but weren't used.
2016-12-11 16:35:53 -08:00
Asher Baker
71788e2325 Update blacklist.plugins.txt 2016-12-09 18:36:35 +00:00
Nicholas Hastings
70d81430f8 Add support for more SQLite database open options. (#565)
* Add support for in-memory SQLite databases.

* Add support for opening SQLite databases via file URI.
2016-12-04 11:23:08 -05:00
ErikMinekus
19db7aef46 Fixed description for CharToLower and CharToUpper (#564) 2016-12-04 09:08:13 -05:00
peace-maker
151834a948 Fix case of not calling OnMapTimeLeftChanged in CS:GO (#563)
Round end reasons in CS:GO are +1 from the ones in CS:S. The
CSRoundEnd_GameStart reason for when the OnMapTimeLeftChanged forward
should be called should be one higher than in CS:S.
2016-12-01 17:09:48 -08:00
GoD-Tony
ec9af8feb6 Fix null check when generating signature. (#562) 2016-12-01 08:44:23 +00:00
peace-maker
3e201dd521 Add DETOUR_DECL_* marcos for more parameter counts (#561)
Add more macros for up to 8 parameters, because DETOUR_DECL_MEMBER8 is
the highest one yet.
2016-11-29 14:55:39 -08:00
Nicholas Hastings
152a86f6f4 Fix CS:GO OnGetWeaponPrice forward on Linux. 2016-11-29 11:05:39 -05:00
Nicholas Hastings
93da058dbd Fix innocuous copy/paste error. 2016-11-29 11:05:18 -05:00
Nicholas Hastings
7885d62f03 Add gamedata missing from last commit. 2016-11-29 10:53:04 -05:00
Nicholas Hastings
c4487b74ee Semi-tested fix for CS:GO GetWeaponPrice on Linux. 2016-11-29 10:42:05 -05:00
Nicholas Hastings
90cefa9daf Revert "Update CS:GO GetWeaponPrice gamedata."
This reverts commit f3994ce6dc.
2016-11-29 09:01:33 -05:00
Nicholas Hastings
f3994ce6dc Update CS:GO GetWeaponPrice gamedata. 2016-11-29 08:52:38 -05:00
Nicholas Hastings
2f82ef5ec6 Add CS:GO FindEntityByClassname signature for Linux. 2016-11-29 07:56:48 -05:00
Nicholas Hastings
e2ac0a085e Update Linux IServer gamedata. 2016-11-28 22:20:23 -05:00
Ruben Gonzalez
6290834e2b Update cstrike extension gamedata. 2016-11-28 21:54:24 -05:00
Nicholas Hastings
efa98f6b7f Untested Core, SDKTools, SDKHooks fixes. (CStrike ext fixes pending) 2016-11-28 21:27:53 -05:00
Asher Baker
87b0a8533f Update blacklist.plugins.txt 2016-11-17 23:21:50 +00:00
Nicholas Hastings
7a4a0271ef Trigger build for hl2sdk-bms changes. 2016-11-07 21:03:22 -05:00
Nicholas Hastings
990b45a273 Update TF2 gamedata. 2016-11-02 20:08:26 -04:00
David Anderson
1ff7b72bb0 Merge pull request #558 from peace-maker/suppress_not_runnable
Suppress logging of "Plugin not runnable" errors
2016-10-27 02:57:47 -04:00
Peace-Maker
7907a07686 Update to latest SourcePawn 2016-10-27 00:42:20 -06:00
Peace-Maker
4a8068d1c4 Suppress logging of "Plugin not runnable" errors
SourceMod itself and thirdparty extensions call functions in plugins
without making sure it is runnable. The plugin pausing feature isn't
supported anymore and is set to get nuked #438 which will reduce the
amount of not-runnable error reports.

We can't fix every third party extension, so suppressing the error from
the logs will stop the spam until pausing is removed.

#489 can be reverted after this.
2016-10-26 23:48:56 -06:00
Wliu
6a4500733d Add spacing to compile.sh (#53) 2016-10-24 14:50:24 +01:00
Luki
482a2f2eb5 Add AutoExecConfig native call to basevotes.sp (#535) 2016-10-14 13:17:23 -07:00
Luki
e74b5807a9 Add AutoExecConfig native call to basevotes.sp (#534)
Basevotes convars are missing from sourcemod.cfg and there is no config file for this, so I added AutoExecConfig.
2016-10-14 13:16:45 -07:00