Commit Graph
7156 Commits
Author SHA1 Message Date
zer0.k ef7d3abefd Add missing null pointer check to protobuf messages (#1883) 2022-12-20 21:50:57 +00:00
Nicholas Hastings b77e8c50ac Add support for Military Conflict: Vietnam (#1887) 2022-12-20 21:46:18 +00:00
clague 0d6179299c Fix ReadMapList ignoring file's last modified time (#1891) 2022-12-20 21:26:57 +00:00
Nicholas Hastings 515df38b72 Throw error in ShowHudText or ShowSyncHudText if HudText params not yet set (#1890) 2022-12-20 01:26:38 +00:00
Nicholas Hastings c5e69900f9 Add "sm_dsay" command to basechat for sending HUD messages (#1889)
* Add "sm_dsay" command to basechat for sending HUD messages

* Add missing SetHudTextParams call
2022-12-20 00:00:43 +00:00
Nicholas Hastings 2d5bc4007f Add clarification to documentation for hud messages and engine dialogs (#1888)
with regard to game support.
2022-12-19 23:49:48 +00:00
zer0.k 3a315e88c2 Update MM:S version in CI, dependency checkout scripts and sample extensions (#1885)
* Update MM:S version in CI, dependency checkout scripts and sample extensions

* Update MM:S version in CI, dependency checkout scripts and sample extensions

* Fix EOL problems
2022-12-19 18:15:45 +01:00
nosoop 6c5a3fdaf2 entitylump: Output separator as spaces instead of tabs (#1873)
On NMRiH and possibly other games that use the Maphacks system,
entries that are modified using that system are rendered with tab
characters stripped out - see CNMRiHMapHackManager::GetEntDataString.

That results in there being no separators at all between keys and
values, as Maphacks receives the serialized string from Entity Lump
Manager.

This commit changes the key / value separator character to use
spaces instead.

This discovery upsets me greatly.

Fixes #1833.
2022-12-05 13:14:54 +01:00
peace-maker 02f188899e Add CommandIterator.ConVarFlags property (#1869)
* Add CommandIterator.ConVarFlags property

Allow to access the convar flags `FCVAR_*` value from the iterator.
The CommandIterator.Flags property should have been called `AdminFlags`,
but it's too late to change that now.

* Switch admin help menu to use CommandIterator.ConVarFlags

No need to lookup the convar again.

* Deprecate CommandIterator.Flags

Rename it to .AdminFlags now that we have two kinds of flags exposed
on the iterator.
2022-12-04 12:24:56 +01:00
peace-maker aab8c6ac9f Fix SDKHook_[Use|Spawn|GetMaxHealth] callback result value handling (#1872)
* Fix SDKHook_Use callback result handling

The returned result of the last callback in the list was used instead
of the highest value. This differs from the behavior of the other hooks.

* Fix SDKHook_Spawn callback result handling

The returned result of the last callback in the list was used instead
of the highest value. This differs from the behavior of the other hooks.

* Fix SDKHook_GetMaxHealth callback result handling

The returned result of the last callback in the list was used instead
of the highest value. This differs from the behavior of the other hooks.
The returned health is only changed if no other plugin wants to block the callback.
2022-12-04 12:12:42 +01:00
Corey D 5d391fda07 Add SMCParser.ParseString (#1817) 2022-12-02 16:55:08 +01:00
vanz666 8538233985 Expose custom sdktools trace types from hl2sdk (#1822)
* Update trnatives.cpp

* Update sdktools_trace.inc

* Update trnatives.cpp
2022-12-02 14:11:05 +01:00
Corey D 3b4a343274 Add natives to get chat triggers (#1816) 2022-12-02 13:55:32 +01:00
Erin f90b7ade76 Trigger build for TF2 SDK update 2022-12-02 08:50:18 +00:00
Nick Hastings 83a29cf82b Trigger build against SDK update 2022-12-01 22:37:50 -05:00
Nick Hastings 89bd4d7329 Update TF2 gamedata. 2022-12-01 19:33:09 -05:00
Batfoxkid ed662dc8cf Block Hidden Commands from Help Command (#1831)
Allows using `FCVAR_HIDDEN` to block commands from appearing in `sm_help` and `sm_searchcmd` which helps with creating alias to commands without filling up the list with those aliases.

For example:
```sourcepawn
RegAdminCmd("sm_setmyperk", MyCommand, ADMFLAG_CHEATS);
RegAdminCmd("sm_setmyperks", MyCommand, ADMFLAG_CHEATS, _, FCVAR_HIDDEN);

RegConsoleCmd("ff2_boss", MyCommand);
RegConsoleCmd("ff2boss", MyCommand, _, FCVAR_HIDDEN);
```
2022-12-01 22:04:59 +01:00
Spirrwell 6574dd8273 Update PVKII FireOutput Linux Signature (#1866) 2022-11-27 03:18:19 +00:00
zer0.k 63f8ea89ca Return the full list of exts/plugins with "sm exts/plugins" client commands (#1862) 2022-11-25 19:00:48 +00:00
nosoop 34c8220e5d Ensure gameconfig file uniqueness when reading master.games (#1859)
The extended gameconfig format reads the master gameconf file twice;
once each for the base engine and actual engine.  The file list
isn't checked for duplicates, so 'common.games.txt' is loaded in
twice, resulting in any 'common' file values potentially overriding
values listed under '#default' in other files due to
bShouldBeReadingDefault.  This happens in the case when matching
game versions by CRC (such as public game branches).

Required for #1857.
2022-11-25 16:47:11 +00:00
peace-maker 3595525f12 Update Github Action workflow versions (#1858)
The currently used versions use deprecated features and Node 12 which is EOL. Switch to newer versions as adviced.

https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-11-07 15:09:54 +01:00
Maxime Leroy 4989666d72 Add logging to all basevote vote results (#1794) 2022-10-30 23:26:17 +01:00
Erin f7fda0023c Enable CI on release branches (#1854) 2022-10-29 17:36:04 +01:00
Erin 13be211e9a Bump minimum MM:S version for build to 1.12 (#1855)
PVKII changes require at least MM:S 1.12 to build SM.
2022-10-29 15:48:38 +01:00
Spirrwell f6b39720ec Make sure 'pvkii' gets 'GetDataDescMap' offset (#1852) 2022-10-27 21:57:21 +00:00
Maxim Telezhenko 764e38a58f Fix DHooks jit code stack memory alignment (#1849) 2022-10-26 20:41:40 +02:00
Spirrwell e34e9b9869 Split PVKII into its own engine branch (#1847)
* Initial PVKII branch support

* Change PVKII code to 23, DOTA uses 22 in MM

* Bunch more SE_PVKII preprocessor that was missed

* Add some missing SOURCE_ENGINE_PVKII cases

* Update PVKII FireOutput signature for Linux

* Update checkout-deps with 'pvkii'

* Fix FireOutput signature for PVKII, accidentally used one from newer build

* Change PVKII code to 10, and bump others by 1

* Only check against SE_SDK2013 here, like Metamod

* More SE_PVKII preprocessor cleanup
2022-10-24 19:27:32 +00:00
Nick Hastings 721f348684 Trigger build for hl2sdk-csgo update 2022-10-23 18:24:24 -04:00
Vauff 9ddcd335af Correct missed team offsets in CheckRestartRound (#1844) 2022-10-22 09:30:33 -05:00
Nick Hastings eda9a42ee2 Trigger build for hl2sdk-csgo update 2022-10-21 22:28:35 -04:00
Vauff 22a964d89a Update gamedata for 2022/10/21 CS:GO update (#1842) 2022-10-21 20:13:57 -05:00
nosoop 855ece1d3b entitylump: Fix behavior of append (#1836)
This change ensures that the iterator values used by `std::distance`
is correct.  Having the emplace within leads to the possibility of
`m_Entities.begin()` being invalidated due to reallocations.
2022-09-20 16:24:08 +02:00
Vauff 568da23c96 Allow gamedata to use vscript binary (#1826) 2022-09-20 09:46:03 +02:00
Bara 4015f9c1c9 Replace old link with newer working one (#1837) 2022-09-19 22:35:49 +02:00
nosoop 21740d9a26 Add functions for working with entity lumps (#1673) 2022-09-05 15:44:58 -07:00
Impact 05aa3fd39d Update CreateDirectory (#1813)
* Update CreateDirectory docs

Add default arguments and a note about deep paths.

* Update note

* Add note about use_valve_fs
2022-08-27 01:59:43 +02:00
Vladimir 3100e23b87 Add support for gamedata lookups from soundemittersystem library (#1787)
* Add `soundemittersystem` library to game config signatures

* Remove `GAMEBIN` by `soundemittersystem` module load
2022-08-04 16:32:26 +02:00
David Anderson da3e868df5 Merge pull request #1812 from alliedmodders/revert-pbproxy
Revert "Introduce a pbproxy library to solve macOS linker issues."
2022-07-31 11:50:56 -07:00
David Anderson 63e0e2bc82 Fix build. 2022-07-31 11:22:10 -07:00
David Anderson a35ecde538 Revert "Introduce a pbproxy library to solve macOS linker issues."
This reverts commit e5ddbd9886.
2022-07-31 11:17:42 -07:00
David Anderson 81ad870def Revert "Fix use-after-free when creating custom user messages"
This reverts commit 15450a6d0c.
2022-07-31 11:16:50 -07:00
eyal282 24f1c89b96 Add Clientprefs helpers for integers and strings (#1727)
* Update clientprefs.inc

* Update clientprefs.inc

* Update clientprefs.inc

* Update clientprefs.inc

* Update clientprefs.inc

* Update clientprefs.inc

* Update clientprefs.inc

* Update clientprefs.inc

* Update clientprefs.inc

* Update clientprefs.inc

* Update clientprefs.inc
2022-07-31 11:59:25 +02:00
Kevin Yonan a761194917 Update operator% forwards to newdecls (#1763) 2022-07-28 18:12:00 -07:00
Corey D 9321229321 Add GetClientOriginalLanguage (#1810)
Creates a native which will return the language the client connected with.
2022-07-28 18:10:51 -07:00
Accelerator e5ebd65176 Exposed SDKCall_Engine call type to use CVEngineServer methods (#1648)
* Update vdecoder.h

* Update vcaller.cpp

* Update sdktools.inc
2022-07-26 22:14:49 +02:00
Dysphie 5f7b22d2a4 Allow using sm_nominate without args from console (#1803) 2022-07-26 22:09:48 +02:00
David Anderson 52da989762 Update SourcePawn on master. 2022-07-09 18:32:51 -07:00
42 625c7a98f2 Fix support for SDKCall returning non-networked entity (#1797) 2022-07-08 14:33:43 +00:00
Mikusch 278998f7d0 SDKTools: Add explode parameter to ForcePlayerSuicide native (#1782)
* Expose CommitSuicide params

* A single space

* Validate param count

* Set force param to true by default
2022-07-07 14:14:50 +02:00
peace-maker c29e185d2a Bump version to 1.12 for manual builds (#1795) 2022-07-05 15:13:52 +02:00