Skip to content

Commit

Permalink
Dual addon mounting (#188)
Browse files Browse the repository at this point in the history
* yip

* More WIP

* Update build scripts to use hl2sdk-manifests

Now using the proto files included in the sdk, except for the cs ones which are broken for some reason

* Dockerize build process

* mount source instead of copying

* Use a different detour to mount addons

* Only add extra addons when changing levels

* More WIP

Now without the silly timer!
serversideclient.h was taken from Wend4r's sdk fork and edited, it should be cleaned up in the future

* Use a Steam ID/IP pair to check for reconnect

Also fix a crash when changing maps

* Remove the Notify detours

Valve has gracefully fixed the auth issue so now we just need to use Hook_ClientConnect for our setup

* Update CServerSideClient layout

* Use a timestamp when checking for addon

* Update build script

* Update sdk

* Removed unused sig

* Fix saving infractions

It broke for some cursed reason that I haven't figured out so I'm settling with this

* fix 2 heap overflows

* Use a different method to get pending clients

It's ugly but it ensures that we won't run into issues with clients sharing an IP

* Some cleanup

* Amend the heap overflow fixes

GameConfig will need a bit of a rework but that doesn't belong in this branch, we've bloated it too much already.

---------

Co-authored-by: Poggu <poggu@seznam.cz>
  • Loading branch information
xen-000 and Poggicek committed Feb 21, 2024
1 parent d9944a3 commit 98cc65a
Show file tree
Hide file tree
Showing 29 changed files with 576 additions and 461 deletions.
18 changes: 18 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/[Dd]ebug/
[Dd]ebugPublic/
/[Rr]elease/
[Rr]eleases/
[Pp]ublish/
[Pp]roperties/
[Pp]ackage/
x64/
x86/
build/
winbuild/
bld/
[Bb]in/
[Oo]bj/
.vs/
*.vcxproj.user
.vscode
.git/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ bld/
.vs/
*.vcxproj.user
.vscode
/dockerbuild
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@
path = vendor/protobuf-3.21.8
url = https://github.com/protocolbuffers/protobuf/
branch = v3.21.8
[submodule "hl2sdk-manifests"]
path = hl2sdk-manifests
url = https://github.com/alliedmodders/hl2sdk-manifests

0 comments on commit 98cc65a

Please sign in to comment.