Kawe Mazidjatari
c15252e9cb
Game: group game source files
2024-04-12 21:21:49 +02:00
Kawe Mazidjatari
891f1796b0
Engine: exec liveapi.cfg on start
...
Allow configuration of the LiveAPI system
2024-04-12 20:53:19 +02:00
Kawe Mazidjatari
6294bb539d
Engine: add cvar 'sv_lagpushticks' to SDK
...
Will be used for reworking some parts of the lag compensation system in the future.
2024-04-12 20:37:13 +02:00
Kawe Mazidjatari
cf267de60d
Game: make GameMode_t an enum class
...
Used as enum class throughout code base, avoids potential name clashes in the future.
2024-04-12 20:36:13 +02:00
Kawe Mazidjatari
513316b6a0
Engine: fix typo in CClientState member variable name
...
Renamed from m_nProcesseedDeltaTick to m_nProcessedDeltaTick.
2024-04-12 20:35:19 +02:00
Kawe Mazidjatari
0936f60c85
Engine: add newly reversed fields to CClient class
2024-04-12 20:34:46 +02:00
Kawe Mazidjatari
e909df9ec8
Engine: light cleanup to CL_MoveEx()
...
Make *chan and commandTick const.
2024-04-12 20:33:36 +02:00
Kawe Mazidjatari
2ca3baa77d
UserCmd: limit command backlog to prevent exploitation
...
Implement UserCmd command backlog limiting (the new convar 'sv_maxUserCmdProcessTicks' dictates how many ticks can be processed per second). Defaulted to 10, which is (default tick interval (0.05) * default cvar val (10) = 0.5ms window), which is equal to the default of cvar 'sv_maxunlag'.
Before this patch, you could stuff several seconds worth of usercmd's in one second and achieve speed hacking.
2024-04-12 01:51:11 +02:00
Kawe Mazidjatari
075df88924
Game: add CBaseEntity::GetFlags() and FL_FAKECLIENT constant
2024-04-12 01:20:48 +02:00
Kawe Mazidjatari
e50d724eae
Game: fixup types in CPlayerState
2024-04-12 01:20:06 +02:00
Kawe Mazidjatari
94002305a3
Tier2: use utlvector for cylinder points and initialize buffer
2024-04-12 00:45:10 +02:00
Kawe Mazidjatari
8ab413be1a
UserCmd: cleanup variable names and comments
...
Reversed some extra field names + adjusted comment for clamping ucmd->camerapos (this was tested and works, this field should be clamped).
2024-04-12 00:44:19 +02:00
Kawe Mazidjatari
b699fe431e
RTech: use more consistent type names
...
Force consistency between type names (follow scheme used in tier0 and rtech_game export symbols).
2024-04-11 02:19:36 +02:00
Kawe Mazidjatari
e639cb3f5f
RTech: rename pak defines
...
More correct and consistent naming.
2024-04-11 01:42:55 +02:00
Kawe Mazidjatari
b019307947
Engine: initiate rcon connection from address change callback
...
A more user friendly approach.
2024-04-10 16:23:48 +02:00
Kawe Mazidjatari
e5199d8253
Engine: use tier2 random generator for netkey
...
Limit usage to only 1 algorithm provider.
2024-04-10 15:29:51 +02:00
Kawe Mazidjatari
ee39e0b014
Tier2: move random generator from tier0 to tier2
...
Moved into cryptutils.cpp.
2024-04-10 15:28:47 +02:00
Kawe Mazidjatari
7a21912ae1
Resource: update RCON cfg files
...
Reflect recent changes made to the RCON system.
2024-04-10 15:16:10 +02:00
Kawe Mazidjatari
ec14bf70de
Engine: move rcon_password entirely to server
...
The client doesn't need this convar, client only needs cl_rcon_address.
2024-04-10 15:15:27 +02:00
Kawe Mazidjatari
1fb9cf2625
Tier1: remove unrelevant comment
...
No mutex locking should take place here after careful research.
2024-04-10 14:09:35 +02:00
Kawe Mazidjatari
f8dd1fe88c
Engine: implement encryption for RCON protocol
...
RCON lacked encryption, added AES-CTR encryption on RCON frames. Slightly adjusted protocol to take this into account (sending nonces, encrypted data itself, etc).
2024-04-10 14:08:52 +02:00
Kawe Mazidjatari
cb0c3ef95b
ImGui: also take vertical scrollbar into account
...
Show horizontal scrollbar when console text gets overlapped by the vertical scrollbar.
2024-04-09 16:56:08 +02:00
Kawe Mazidjatari
e657d62aee
ImGui: fix logger not fading in/out with alpha
...
m_fadeAlpha should also be applied on the color logger.
2024-04-05 19:38:10 +02:00
Kawe Mazidjatari
77f748c5d3
NetConsole: fix undefined symbol
...
CheckCPUforSSE2() was removed in commit 504d042e6095b24e125c7d38549db860b2d15a67, but NetConsole still needs to check for it.
2024-04-05 19:37:00 +02:00
Kawe Mazidjatari
60a17c6f55
ReVPK: fix undefined symbol
...
CheckCPUforSSE2() was removed in commit 504d042e6095b24e125c7d38549db860b2d15a67, but ReVPK still needs to check for it.
2024-04-05 19:36:38 +02:00
Kawe Mazidjatari
40f2c1374a
Tier0: split CPU feature checks into multiple functions
2024-04-05 19:35:41 +02:00
Kawe Mazidjatari
5621976b33
RTech: take string pointer alignment into account
...
There are 2 versions of this function, one requires the string ptr to be aligned by 4.
2024-04-05 15:30:02 +02:00
Kawe Mazidjatari
49d7394f30
Merge pull request #119 from Mauler125/LiveAPI
...
LiveAPI implementation
2024-04-05 15:24:42 +02:00
Kawe Mazidjatari
c13d323469
Miles: fix bug, add bank patch debug logs and add reversed miles types
2024-04-04 20:19:33 +02:00
Kawe Mazidjatari
3203fe2ec5
Windows: improve console init/shutdown error messages
2024-04-04 18:50:09 +02:00
Kawe Mazidjatari
504d042e60
Core: fix several initialization bugs
...
- Don't free console if the process is being closed from the console, this will cause the process to freeze within the FreeConsole() call
- Properly check for CPU features in order, and moved all checks to a single function utilizing the CPUInformation struct.
- Made SDK_Init() and SDK_Shutdown() more resilient against mistakes with new checks and error messages (added since they are exported now).
2024-04-04 18:49:00 +02:00
Kawe Mazidjatari
a75219825d
ImGui: fix console scrollbar feedback loop bug
...
Make use of newly added flag "ImGuiWindowFlags_OverlayHorizontalScrollbar" as per commit 60e4514b7b5c56db89102a3d66ef28a14118b8fd. Also removed flag "ImGuiWindowFlags_AlwaysVerticalScrollbar", only show the vertical scrollbar when its visible. Enabled code that takes the scrollbar into account in function CTextLogger::EnsureCursorVisible().
2024-04-04 16:13:39 +02:00
Kawe Mazidjatari
60e4514b7b
ImGui: add flag to draw scrollbars over content
...
Custom flags: basically tells ImGui to draw the scrollbar as an overlay. This is useful for working around feedback loops caused by the appearance of the scrollbars (might be worth PR'ing into ImGui itself?)
See:
ocornut/imgui#1720
ocornut/imgui#1730
ocornut/imgui#2978
2024-04-04 16:11:32 +02:00
Kawe Mazidjatari
eee86140f7
RTech: disable LiveAPI by default
2024-04-04 15:13:59 +02:00
Kawe Mazidjatari
76616c36a1
RTech: use SQString's '_stringval' macro for LiveAPI
...
Light code cleanup, no logic has been modified.
2024-04-04 02:18:28 +02:00
Kawe Mazidjatari
37b35b0967
Thirdparty: upgrade ZStd to 1.5.6
2024-04-04 02:07:44 +02:00
Kawe Mazidjatari
1e366a50dc
Thirdparty: upgrade RapidJSON to latest
...
Upgraded to Tencent/rapidjson@5ec44fb920
2024-04-04 02:01:03 +02:00
Kawe Mazidjatari
47acaee320
RTech: implement Nucleus ID hashing for LiveAPI events
...
The field was supposed to be hashed, added cheap hashing logic and an option to truncate it to reduce overhead.
2024-04-04 01:56:31 +02:00
Kawe Mazidjatari
052c5a8d37
Core: remove extraneous define
...
No longer needed, moved to dbg.h in commit ab0f925205f1b6ccf71cc1efa0ef7298d4493fe6.
2024-04-03 18:58:35 +02:00
Kawe Mazidjatari
785071d7bb
VScript: map out CSquirrelVM structure more
...
More reversed fields.
2024-04-03 18:57:32 +02:00
Kawe Mazidjatari
ab0f925205
Tier1: add utlhash
...
Core SourceSDK type.
2024-04-03 18:55:27 +02:00
Kawe Mazidjatari
5bbec8bdd9
VScript: properly implement 'sq_getstring' and 'sq_getinteger' + more
...
sq_getstring and sq_getinteger are now properly implemented (code matches squirrel code, and generated assembly matches that of the game). Adjusted call sites to accommodate the new implementation and added a few extra checks. Also added:
* sq_getfloat
* sq_getbool
* sq_getthread
2024-04-03 18:30:57 +02:00
Kawe Mazidjatari
3a9d701495
Server: fix NavMesh hotswap crash + add codecallbacks
...
Fix double destruction (calling delete instead of free, the 'v_Detour_FreeNavMesh' call is the destructor, but we don't have the destructor fully rebuilt yet in the SDK). Also added codecallbacks for scripts.
2024-04-03 14:53:39 +02:00
Kawe Mazidjatari
0e54998a36
Recast: reverse some fields
2024-04-03 14:52:12 +02:00
Kawe Mazidjatari
bcf994e210
VScript: add code for calling codecallbacks
2024-04-03 14:51:44 +02:00
Kawe Mazidjatari
cc19debbe6
RTech: improve LiveAPI error msg's
2024-04-03 14:51:13 +02:00
Kawe Mazidjatari
e40a661bca
Tier0: move GetUnixTimeStamp() to utility code
2024-04-03 02:06:10 +02:00
Kawe Mazidjatari
5902f2e37d
Protobuf: change space indentation
...
Use 4 space indentation instead of 1 when using the newline/space option.
2024-04-03 01:58:39 +02:00
Kawe Mazidjatari
0aad26ad20
Protobuf: don't wrap uint64/sint64 numbers in quote
...
Technically this is to support JavaScript as it supports up to 53 bits precision, but we want to stick to the same scheme RapidJSON is using.
2024-04-03 01:57:38 +02:00
Kawe Mazidjatari
091e9efa96
Tier0: fix pattern precaching
...
Fix taken from IcePixelx/silver-bun@e11bfb7fa7
We should migrate to the new header only implementation once there's more time to mifrate the code + testing it.
2024-04-03 01:44:08 +02:00