Commit Graph
7141 Commits
Author SHA1 Message Date
B3none 6507d947cc Updated sourcepawn.php to latest array syntax 2023-11-30 21:58:49 -08:00
B3none 30415e299e Updated ProfFileParser.class.php to PSR-12 2023-11-30 21:58:49 -08:00
Mart 8eeea2aba1 Update funcommands.games.txt (#2085)
Changes for Nuclear Dawn

*Correct beacon team colors (Consortium = blue / Empire = red)
*Change beacon .vmt sprite to an existing one similar to the usual "laser.vmt" (white and 32x64 size)
2023-11-28 21:59:54 +00:00
Nick Hastings bb1431cd3b Fix Windows FireOutput signature for Nuclear Dawn (fixes #2084) 2023-11-27 09:53:25 -05:00
rop_rop a2aec9b42e Update Hebrew translation phrases (#2050)
* Update basebans.phrases.txt

added all the missing Phrase

* Update basebans.phrases.txt

update of the missing phrase as a parameter
2023-11-24 16:56:14 +01:00
Nick Hastings ef74b51c8b Probably fix build 2023-11-20 19:54:41 -05:00
Nick Hastings e74aa099bc Add debugging to bootstrap script 2023-11-20 19:40:09 -05:00
Nick Hastings 8140cb2d6b Tweak build script 🐍 2023-11-20 19:37:22 -05:00
Nick Hastings d981e252d2 Fix regression that breaks loading on mcv, blade, and csgo (fixes #2082) 2023-11-20 09:23:02 -05:00
Nick Hastings e6a04abc9e Remove unused var 2023-11-20 09:21:00 -05:00
Nick Hastings c90477a720 Fix warning in build script 2023-11-20 09:20:38 -05:00
11c8084ccd Deprecate CreateInterface (#2001)
* Deprecate CreateInterface

Co-authored-by: KitRifty <[email protected]>

* Expose the 'newer' data

* Update smsdk_ext.cpp

---------

Co-authored-by: Kenzzer <[email protected]>
Co-authored-by: KitRifty <[email protected]>
2023-11-11 16:59:22 +00:00
Nick Hastings 7747beb4cf Add remaining SDKHooks gamedata for Dystopia 2023-11-07 19:35:34 -05:00
Rain 9fa7421122 Update gamedata for Dystopia (#2080)
Add the offsets for OnTakeDamage and OnTakeDamage_Alive for the game Dystopia, for Linux and Windows platforms. This change adds game support for the SDKHook_OnTakeDamage, and its variants.
2023-11-07 13:20:45 +00:00
bauxite f2ca671d1f Update basetriggers.sp for Dystopia compatibility (#2075)
* Update basetriggers.sp for Dystopia compatibility

Dystopia has a built-in command called nextmap which breaks due to the Sourcemod nextmap command. This modification is intended to restore Dystopia compatibility.

* Update basetriggers.sp

* Update basetriggers.sp

* Update basetriggers.sp

* Update basetriggers.sp
2023-11-06 16:10:46 +00:00
sappho d4da21b07f Add more context to Format etc documentation (#2079) 2023-11-06 16:07:00 +00:00
David Anderson 4b2d8b53fa Fix macOS scripting SDK build.
This also enables universal spcomp binaries with arm64 support.
2023-11-04 23:01:44 -07:00
David Anderson 7bfd5e521e Update SourcePawn.
This updates float.inc and smn_float.cpp to compensate for alias
removal.
2023-11-03 17:46:48 -10:00
David Anderson 060c832f89 Update SourcePawn.
This brings in a few breaking changes.

One, INVALID_FUNCTION is now 0 instead of -1. This is long overdue.
Plugins should transparently work except in two cases:

  1. Third-party extensions that have a hardcoded test for -1 will no
     longer work. A new API has been provided for this,
     GetFunctionByIdOrNull.
  2. If a plugin "framework" uses INVALID_FUNCTION anywhere in its
     exported API, then all plugins using that framework need to be
     recompiled together, so they agree on the value of
     INVALID_FUNCTION.

Hopefully the damage here is minimal. The core plugin version has been
bumped to 7 to try and limit conflicts.

Second, braceless functions are no longer supported. There wasn't really
any way around this and it's better to bite the bullet now. This affects
source compatibility, but not binary compatibility.

Third, the "using" keyword is no longer implemented. SourceMod now has a
Handle methodmap again. Plugins compiled against this new methodmap will
require a "Handle.~Handle" native, which 1.12 now provides.
2023-11-02 18:38:30 -10:00
PlayBoy31 8c9fd3746b Fix missing submodules (#2074)
* add --recursive for missing submodules
2023-11-02 21:02:15 -07:00
Nick Hastings 314184beea Merge branch 'master' of https://github.com/alliedmodders/sourcemod 2023-10-21 19:03:09 -04:00
Nicholas Hastings 17462cbe5a Fix build using wrong dir in bootstrapping 2023-10-21 19:02:51 -04:00
David Anderson ae4e043c3e Enable C++17. 2023-10-21 19:02:51 -04:00
David Anderson 6def79ff23 Merge pull request #2063 from alliedmodders/cxx17
Enable C++17.
2023-10-19 20:33:14 -07:00
Jonathan 1ba7024a3a Fix Japanese translations (#2053) 2023-10-17 12:50:55 +02:00
rop_rop 44aaaf8b10 Update Hebrew playercommands.phrases.txt (#2051)
added the missing Phrase
2023-10-17 12:35:36 +02:00
XeroX 62754333cd Increase lastMap buffer (#2062)
Fixes #2061
2023-10-17 12:31:04 +02:00
Rain 8938a29904 Ignore chat triggers for interactive ban reason (#2067)
* Ignore chat triggers for interactive ban reason

If the admin types a chat trigger for a command while BaseBans is
waiting for them to type a ban reason, don't treat that message as the
ban reason.

This fixes a problem where the admin decides to cancel their ban with
"!abortban", "/abortban" etc, but ends up accidentally banning the
player with the ban reason "!abortban" (or by attempting to access any
other command via a chat trigger before typing the ban reason).

* Optimize

Check if we're actually waiting for chat reason before calling the native
2023-10-16 19:43:00 +02:00
Nick Hastings 2c6ef5825f Update from Clang 13 to Clang 14 for Linux build 2023-10-16 13:21:02 -04:00
sappho b090aa36bf Add support for open fortress (#2057)
* Run timers every tick instead of arbitrarily on 100ms thinks, adding a significantly higher amount of precision

* undo force push

* add open fortress support

* undo leftover timersys changes

* Add fireoutput sig and remove engine gamedata

* Update master.games.txt

* Update master.games.txt
2023-10-16 00:29:44 +00:00
David Anderson cb1dae5aab Fix minimal rebuilds on buildbot. 2023-10-13 21:28:33 -07:00
David Anderson c9e824632f Enable C++17. 2023-10-13 21:25:24 -07:00
David Anderson 0436fb0ab3 Fix linkage. 2023-10-13 20:59:55 -07:00
David Anderson 767c5cf468 Fix build. 2023-10-13 15:32:45 -07:00
David Anderson f01ad5317a Fix linker issues on Linux. 2023-10-13 15:26:05 -07:00
David Anderson fac3138ff5 Fix typo. 2023-10-13 14:14:47 -07:00
David Anderson ab9e86910c Switch bootstrap.pl to Python. 2023-10-13 14:04:56 -07:00
peace-maker e88e9342ef Update SourcePawn (#2052)
* Update SourcePawn

* Fix using SourceMod version as SourcePawn version
2023-10-06 22:47:11 +02:00
dysphie e3a01b0e1a Update game.nmrih.txt (#2056) 2023-10-02 23:24:09 +00:00
Kit o' Rifty 07d928dbad Fix sound flags enumeration (#2040)
* Fix sound flags

* Change to bit shifts like in SDK
2023-09-27 17:03:03 +02:00
BoinkandFyren a402b3cceb Prevent commands from being run on the client with sm_play (#1832)
* Prevent command injection

* Empty to commit to try to kick CI.

* Improve filename sanitisation

---------

Co-authored-by: Fyren <[email protected]>
2023-09-27 16:51:07 +02:00
幸運心andpeace-maker 99dbe06d8a Japanese translations (#2042)
* Japanese translations

Japanese translation corrections.

* Fix phrase format parameter index off-by-one

---------

Co-authored-by: peace-maker <[email protected]>
2023-09-27 16:36:11 +02:00
Mikusch 29694ec13b Add block parameter to various ArrayList functions (#1656)
* Add block parameter to FindString

* Add block parameter for GetString & GetArray

* Fix buffer overflow issues

* Fix wrong return

* Add size parameter to SetArrayString
2023-09-27 16:05:43 +02:00
Mikusch 1e8db957bf Add more functions to ArrayStack (#2019)
* Add more functions to ArrayStack

* Make formatting consistent with other functions

* Don't remove the element for TopArray

* Replace 4 with sizeof(cell_t)
2023-09-27 15:43:04 +02:00
Rain 0656696251 Neotokyo: Add gamedata for LookupEntityAttachment & GetEntityAttachment (#2049)
Add the "LookupAttachment" and "GetAttachment" signature and offsets for
Neotokyo, which adds game support for the SM LookupEntityAttachment and
GetEntityAttachment natives.
2023-09-25 22:19:47 +00:00
dependabot[bot] af04c964fe Bump tibdex/github-app-token from 1.8.0 to 2.1.0 (#2048)
Bumps [tibdex/github-app-token](https://github.com/tibdex/github-app-token) from 1.8.0 to 2.1.0.
- [Release notes](https://github.com/tibdex/github-app-token/releases)
- [Commits](https://github.com/tibdex/github-app-token/compare/b62528385c34dbc9f38e5f4225ac829252d1ea92...3beb63f4bd073e61482598c45c71c1019b59b73a)

---
updated-dependencies:
- dependency-name: tibdex/github-app-token
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 17:35:50 +02:00
Nick Hastings bc81361319 MCV: fix Linux tier0/vstdlib bin names 2023-09-24 13:31:55 -04:00
Nicholas Hastings 853bcf703a Update MCV platform support. (#2046) 2023-09-24 16:23:10 +00:00
dependabot[bot] c81248004a Bump actions/checkout from 3 to 4 (#2045)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 18:29:18 +02:00
throwaway47777 79787cb868 Fix admin-flatfile.sp includes (#2043)
* Move admin-flatfile to plugins dir

* Fix admin-flatfile sp includes
2023-09-13 18:28:35 +02:00