683 Commits

Author SHA1 Message Date
Kawe Mazidjatari
6feb41c285 Partial CNetChan class rebuild and implementation (see description)
* Adapt codebase to new class to reduce rune-like code.
* Fixed several bugs where the global CClient pointer was used instead of the instance in question to issue bans and display information about a certain client in CBanSystem and Pylon.
* Upgraded CBanSystem and Pylon to use IPv6 instead (including IPv4 mapped IPv6 addresses). This breaks all existing banlist files! All bans have to be re-issued or the existing file has to be updated to use IPv4 mapped IPv6 addresses and renamed to 'banlist.json', and moved to the root of the 'platform' folder.
2022-04-02 02:48:54 +02:00
Kawe Mazidjatari
7c9a50f0d5 Add proper license to project
The project was never licensed, it only contained third party licenses.
I determined to use the Source SDK 2013 license for this, as the majority of the business logic running this product is based on Valve's (the license has zero restrictions in the scope of our goal with this project).
The licenses has to be included with any depots from now on in the folder 'legal' placed in the root of the project folder (the location of r5apex_ds.exe).

With any new additions of third party code, the 'thirdpartylegalnotices.txt' file has to be updated accordingly.
2022-04-01 00:11:42 +02:00
Kawe Mazidjatari
b85683b6f7 Prevent dedicated server from writing any files to 'Saved Games' folder 2022-03-31 23:54:45 +02:00
Kawe Mazidjatari
a6b92f8713 Strip server vm reference from client dll 2022-03-31 17:23:14 +02:00
Kawe Mazidjatari
83fc611a48 Prevent dedicated server from overwriting videoconfig file 2022-03-31 17:22:46 +02:00
Kawe Mazidjatari
66146f6590 Adapt majority of SQVM to SQ types 2022-03-31 02:26:05 +02:00
Kawe Mazidjatari
42ef6ef228 Hook sq_pushroottable as well 2022-03-31 00:10:18 +02:00
Kawe Mazidjatari
79f99970c6 Implemented SERVER, CLIENT and UI script commands
User can now execute script on the SERVER, CLIENT and UI vm's through the SDK
2022-03-30 22:54:33 +02:00
Kawe Mazidjatari
ecb2bc54ad More SQ types and 'sq_compilebuffer()' AOB + prototype
Added signature and prototype for 'sq_compilebuffer()'.
Added 'SQBufState' structure to sqtypes.
Adapt entirely to SQ types for all sqapi functions.
2022-03-30 00:06:52 +02:00
Kawe Mazidjatari
28b1718cb1 Add Squirrel typedefs 2022-03-29 22:27:56 +02:00
Kawe Mazidjatari
446f13680f Improve SQVM function registration and add SERVER and CLIENT logic
SERVER and CLIENT functions can now be registered as well.
For checking whether to register for CLIENT or UI, we now check its context instead of comparing pointers. For server, a dedicated function was build.
2022-03-28 19:34:51 +02:00
PixieCore
56a71aba56 A few RTech changes.
* Renamed pak_asyncload to pak_requestload
* Added new ConCommand to unload rpaks. It's called pak_requestunload.
* When CHostState requests an rpak unload, it will now print the name of it.
* Turned a few static addresses onto patternscans.
2022-03-28 18:47:11 +02:00
PixieCore
433a3b27a2 Changed CBaseClient::Clear to void type. 2022-03-28 14:22:27 +02:00
Kawe Mazidjatari
bccd936040 Add 'SQVM_CreateServerVM()', 'g_pServerVM', and 'SQVM_CreateClientVM()', g_pClientVM
TODO: Get and hook DestroyVM
2022-03-28 12:09:40 +02:00
Kawe Mazidjatari
e755961d77 Modernize ECommandTarget_t enum 2022-03-28 12:03:07 +02:00
Kawe Mazidjatari
a875cd490c Default CNetAdr2::GetIP() 'bBaseOnly' to false 2022-03-28 12:02:40 +02:00
Kawe Mazidjatari
73cdaf18e3 Slight cleanup 2022-03-28 12:02:11 +02:00
Kawe Mazidjatari
9953caab7d Declare 'hsq_pushconstant()' 2022-03-28 02:25:04 +02:00
Kawe Mazidjatari
02eb25a268 Create 'sq_pushconstant()' hook 2022-03-28 02:19:54 +02:00
PixieCore
5939c00fe1 Avoid potential crash for unloading rpaks. 2022-03-28 00:59:39 +02:00
PixieCore
2045f52ad8 Unloading rpaks poperly now that we load on map load. 2022-03-28 00:57:04 +02:00
Kawe Mazidjatari
89a8909cbb Fix dedicated compile error 2022-03-27 23:52:54 +02:00
PixieCore
d930cb66e0 Migrated CClient to CBaseClient. 2022-03-27 23:50:35 +02:00
Kawe Mazidjatari
b405125357 Fix clang-cl compile
Temporarily commented SDL2 audio as some SSE code doesn't work properly with clang-cl
2022-03-27 22:18:58 +02:00
Kawe Mazidjatari
b1a806dccb Rename 'GAMECLIENTONLY' definition to 'CLIENT_DLL' 2022-03-27 22:17:30 +02:00
Kawe Mazidjatari
b76a86d18d Default 'sv_pylonvisibility' to 0 2022-03-27 21:13:59 +02:00
PixieCore
404ef9255c New fields for CBaseClient, fixed CBaseServer functions. 2022-03-27 19:35:33 +02:00
Kawe Mazidjatari
87b53d1731 Default AIN rebuild to 0 2022-03-27 14:39:40 +02:00
Kawe Mazidjatari
2ad5a75172 Update configuration files 2022-03-27 14:20:45 +02:00
Kawe Mazidjatari
0c766266f1 Fix compile error 2022-03-27 14:07:22 +02:00
Kawe Mazidjatari
6f268c0978 Check if ImGui config file exist before attempting to parse it v2.0.4 v2.0.4_rc2 2022-03-27 12:09:46 +02:00
Kawe Mazidjatari
4a5823023d Add CHostState::Think ConVar's and new method to return double value 2022-03-27 11:42:24 +02:00
Kawe Mazidjatari
3d90d1cbfb Cleanup FindPatternSIMD 2022-03-27 11:25:53 +02:00
Kawe Mazidjatari
4cbb4746bd Fix Pylon backend not working on dedicated server
Also fix dual thread for backend, and main thread pausing when request is slow
2022-03-26 18:06:54 +01:00
Kawe Mazidjatari
4e9ae9c350 Better no-level status names 2022-03-26 02:19:07 +01:00
Kawe Mazidjatari
1388215b1a Finish 'CBaseServer::GetNumFakeClients()' function 2022-03-26 02:00:40 +01:00
Kawe Mazidjatari
fd01962aa0 Change default console title 2022-03-26 01:23:06 +01:00
Kawe Mazidjatari
66ec11079e Optimizations 2022-03-26 01:19:02 +01:00
Kawe Mazidjatari
c3ad5f08fb Forgot this one.. 2022-03-26 01:18:48 +01:00
Kawe Mazidjatari
a5a8f85764 Rename materialsystem to cmaterialsystem
Naming it the same as Valve did
2022-03-26 01:04:20 +01:00
Kawe Mazidjatari
72ca651003 Cleanup DetourNavMesh.h 2022-03-26 00:44:42 +01:00
Kawe Mazidjatari
ba379f4712 Small optimizations 2022-03-26 00:44:23 +01:00
Kawe Mazidjatari
2faf92ee17 Fix small oversight 2022-03-26 00:42:09 +01:00
Kawe Mazidjatari
1038ba786e CBaseClient overhaul and partial class rebuild
Also added initial CBaseServer rebuild
TODO: INetChannel rebuild..
2022-03-26 00:24:13 +01:00
Kawe Mazidjatari
687446eade Cleanup CConsole 2022-03-25 13:31:31 +01:00
Kawe Mazidjatari
96bf41655a Use CBuf_AddText() and Cbuf_Execute() instead
Small improvement
2022-03-25 13:17:57 +01:00
Kawe Mazidjatari
699b1c33a6 Use timer instead for banlist and pylon checks 2022-03-25 02:30:36 +01:00
Kawe Mazidjatari
eccddb3883 Reorder FastTimer class 2022-03-25 02:25:50 +01:00
Kawe Mazidjatari
9b511edbb2 Properly shutdown dedicated again
Small oversight during file refactor
2022-03-25 01:19:27 +01:00
Amos
378df25d4c Fix struct padding for AIN
Small fixes
2022-03-24 16:31:53 +01:00