Commit Graph

6977 Commits

Author SHA1 Message Date
El Diablo
2dcee81f22
Linux [SDKTOOLS] Sigscan for FireOutput FIX (#1923)
Addie said:
test the signatures:
\x55\x89\xE5\x57\x56\x53\x81\xEC\x8C\x01\x00\x00\x8B\x55\x08
or
digby's \x55\x89\xE5\x57\x56\x53\x81\xEC\x8C\x01\x00\x00\x8B\x55\x2A\x65\xA1

\x55\x89\xE5\x57\x56\x53\x81\xEC\x8C\x01\x00\x00\x8B\x55\x08 fixed the issue for linux server.
2023-02-04 14:46:57 +00:00
GAMMACASE
a253d35bcd
Gamedata update after 2/2/2023 CSGO update (#1921) 2023-02-03 17:38:37 +00:00
Poggu
02e9d214b4
Update Military Conflict: Vietnam gamedata (#1915)
Revert whitespace removal


Revert ignite offset
2023-01-30 23:04:53 +00:00
Nicholas Hastings
30a2160839
Fix gamedata library search order in some cases. (#1914) 2023-01-29 20:24:34 +00:00
rtldg
d57d7e7401
Enable math functions in sqlite (#1886) 2023-01-29 17:30:15 +00:00
Impact
1f5b735dbd
Add note about automatic unhook (#1910) 2023-01-22 10:23:40 +01:00
Nick Hastings
d5a26adc49 Regression fix for CS:GO GivePlayerItem.
Regressed in https://github.com/alliedmodders/sourcemod/pull/1887
2023-01-20 10:09:22 -05:00
Rushaway
221d34f809
fix: Print full map name in Log instead of args (#1907) 2023-01-15 13:32:41 -05:00
Nicholas Hastings
8922ed0c5d
Add TE_WriteEnt and TE_ReadEnt natives to SDKTools. (#1905) 2023-01-14 14:48:05 +00:00
nosoop
27b1817b10
Update TF2 gamedata for version 7757534 (2023-01-05) (#1901) 2023-01-05 23:54:37 +00:00
Nick Hastings
3a488f7041 Fix typo in b77e8c50 causing regression in loading on some games.
Fixes #1898
2023-01-01 20:04:56 -05:00
ambaca
8f7a1641fc
Friendly Fire support L4D(2) games. (#1530)
Support L4D(2) Friendly Fire In Basetriggers.sp #1522

- Games have cvar mp_friendlyfire min. and max. bounds set to 1
- Removing mp_friendlyfire lower bound and set to 0, cvar have no purpose on friendly fire damage.
- FF works from z_difficulty and each difficult level have FF damage ration cvars:
survivor_friendly_fire_factor_easy
survivor_friendly_fire_factor_normal
survivor_friendly_fire_factor_hard
survivor_friendly_fire_factor_expert

Update added PRINT_TO_ things from previous update.

Co-authored-by: Bacardi <>
2022-12-29 14:00:58 +00:00
Nicholas Hastings
b0799d3336
Move menu sound selection from core config to gamedata. (#1896) 2022-12-29 04:10:51 +00:00
nosoop
2130c60fd9
Implement raw entity handle accessors (#1830)
* Implement raw entity handle accessors

* Fix FromPseudoAddress calls on 64-bit

* fixup: Remove unnecessary ent deref

* fixup: Correct param index in thrown error
2022-12-29 03:57:47 +00:00
Nicholas Hastings
ecb707e38d
Add support for other engine binaries in game configs (#1414). (#1626)
* Add support for other engine binaries in game configs (#1414).

* Add engine bin path for CRC bin lookup and filter out addons from GAMEBIN.

* MAX_PATH -> PLATFORM_MAX_PATH.

* Fix library lookup on Linux.

Before this, there was a bad assumption that, like on Windows, POSIX module
handle pointers were within the module's address space (and thus usable
with dladdr). That's not true!

Instead, to get a usable address on all platforms, we'll do a lookup of the
CreateInterface function that exists in all modules. This also has the
(arguable) benefit of further locking this implementation to modules owned
by the game.

To get a valid address inside the module now on both p
2022-12-28 22:58:30 +00:00
Nicholas Hastings
7e94bfb307
Fix asm.c compiler warnings on Windows. (#1897) 2022-12-28 22:50:51 +00:00
Rain
51bba0b894
Fix incorrect behaviour in SDKHooks_DropWeapon's "bypassHooks" parameter (#1877) 2022-12-27 19:31:02 +00:00
Nicholas Hastings
775d4f04f2
Add missing set of CBaseEntity::Teleport param on newer games (#1894)
* Add setting of missing CBaseEntity::Teleport param on newer games

* Rearrange SOURCE_ENGINE defines of games between Portal 2 and CS:GO.
2022-12-27 19:29:22 +00:00
peace-maker
4320d7b17a
Get sdktools and sdkhooks/dhooks to load on hl2sdk-mock (#1892)
* Build SDKTools for hl2sdk-mock

* Fix loading of extensions using advanced naming scheme for hl2sdk-mock

* Fix error on missing sv_visiblemaxplayers convar

* Build SDKHooks for hl2sdk-mock

* Fix x86_64 SourcePawn VM filename

* SDKHooks: Ignore missing IEntityListeners list in hl2sdk-mock
2022-12-22 18:39:12 +01:00
TrueProfesional
174bf307a2
Add weapon_bayonet to the list of blocked knives (#1758) 2022-12-20 22:17:22 +00:00
Benoist
f8349e846a
Fix SetEntityHealth to support 'any' entities (#1846)
Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2022-12-20 22:07:57 +00:00
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