1956 Commits

Author SHA1 Message Date
Kawe Mazidjatari
188cbf8359 Update protobuf to latest
Updated to v21.12.
2023-01-26 03:15:10 +01:00
Kawe Mazidjatari
c49209bd1e Log truncated files if they are listed in the VPK build manifest 2023-01-26 03:00:53 +01:00
Kawe Mazidjatari
59a917a2bc Light cleanup 2023-01-26 03:00:23 +01:00
Kawe Mazidjatari
f47fb63e5f Fix dedicated server compile errors
Huge cleanup for dedicated. All patches in 'opcodes.cpp' are now directly applied to the executable, and kept as reference in the source file. The patch logic is commented. Any other patches for the dedicated server executable should be documented in the patch file found in 'r5dev/resource/patch'.
2023-01-26 02:59:50 +01:00
Kawe Mazidjatari
1e24e34519 Remove unnecessary memset 2023-01-25 22:15:27 +01:00
Kawe Mazidjatari
306211a1b4 Fix naveditor log when invoked using commandline
Log must be reset pre-build, and dump post-build in order for logging to work.
2023-01-25 22:14:46 +01:00
Kawe Mazidjatari
532ada48e0 Only run duplicate checks in debug
Duplicate checks are only performed in debug builds, if a duplicate is encountered, a bug in code has been found and has to be solved (do not call REGISTER from headers for example).
2023-01-25 19:22:05 +01:00
Kawe Mazidjatari
9ea06aa65d Use 'Assert' instead 2023-01-25 19:21:06 +01:00
Amos
d76ed1098a Improve VFTable address logging
More standardized VFTable address logging.
2023-01-25 11:19:53 +01:00
Kawe Mazidjatari
93efd3792b Cleanup EbisuSDK
Renamed 'g_OriginNucleusToken' to 'g_NucleusToken', and reordered globals.
2023-01-25 02:30:54 +01:00
Kawe Mazidjatari
a618990937 Detour code refactor
This change was planned for a long time. This moves all REGISTER calls to a single translation unit, this is required as we currently added a very dirty workaround for not registering duplicates by checking if VFTable pointer was already present in the vector... Registering from single translation unit prevents duplicate instances that gets created if header is included by more cpp files.
Reworking this reduced 100kb+ of compiled code. This commit also reworked the way functions/variables/constant gets logged with their addresses; the new code formats them on the fly, and allows for resize at any time. Formatting is no longer required by programmer.

TODO: currently there are some compile errors for dedicated and client dll's. These will be resolved very soon as they need to be properly worked out still (server & client only stuff needs to be properly split). Use the 'main' (stable) branch for the time being if you need to compile these dll's.
2023-01-25 02:26:52 +01:00
Kawe Mazidjatari
8d6358512b Debug overlay cleanup 2023-01-24 18:43:00 +01:00
Kawe Mazidjatari
e281aea990 Fix client.dll/dedicated.dll compile errors 2023-01-24 18:39:12 +01:00
Kawe Mazidjatari
19447f1122 Improve debug draw depth test toggle logic
* Add box depth test cvar from engine for 'CBaseAnimating::DrawServerHitboxes'.
* Use noDepthTest field from OverlayBox_t instead of the cvar.
2023-01-24 12:05:09 +01:00
Kawe Mazidjatari
5a9824d30c Remove useless assert
Invalid assert as rebuilding cache map happens prior to initialization.
2023-01-24 00:54:13 +01:00
Kawe Mazidjatari
888989d2b3 Fully working implementation of 'sv_showhitboxes'
Setting 'sv_showhitboxes' to 0 will enable it on everything deriving from CBaseAnimating, and having a valid studiohdr/hitbox. -1 means off, value > 0 will select entity by index (value of 'sv_showhitbox').
2023-01-24 00:53:45 +01:00
Kawe Mazidjatari
6e5ad71855 Remove hitbox drawing test code
Was only hooked up to lag compensation code for testing.
2023-01-24 00:39:41 +01:00
Kawe Mazidjatari
2c7636ec0d Initial 'EntityByIndex' implementation 2023-01-23 23:40:40 +01:00
Kawe Mazidjatari
66ef9fb6a0 Fix crash in hitbox drawing code and light restructure
* Fix null pointer dereference crash in server hitbox drawing code; implemented a proper getter for CStudioHdr.
* Moved 'baseentity.h/cpp' to 'game/server/' instead.
* Overall light cleanup.
2023-01-23 23:21:29 +01:00
Kawe Mazidjatari
d97678e059 Fix potential compiler error
Potential problem of "type 'x' already defined".
2023-01-23 23:17:51 +01:00
Kawe Mazidjatari
eede2b65f3 Force signature dictionary full rebuild
Launch times become slower in debug builds due to the many added signatures; force full rebuild of dictionary.
2023-01-23 02:24:41 +01:00
Kawe Mazidjatari
094a6e4fa5 Initial hitbox drawing implementation
Currently only hooked up to lag compensation code. Will be hooked up to 'sv_showhitboxes' in the future (drawing hitboxes of all animating).
2023-01-23 02:22:51 +01:00
Kawe Mazidjatari
502a1d2324 Switch box overlay transform type to 'matrix3x4_t'
Actual type turned out to be 'matrix3x4_t' after further reverse engineering.
2023-01-23 02:20:21 +01:00
Kawe Mazidjatari
6f02e3ae13 Make CBaseEntity members protected 2023-01-23 02:08:12 +01:00
Kawe Mazidjatari
932f73530f Studio hdr improvements
* More mapped-out version of 'CStudioHdr'.
* Added hitbox getters for 'mstudiobbox_t'.
2023-01-23 02:07:42 +01:00
Kawe Mazidjatari
07ef57536d Add modelinfo vftable pointers 2023-01-22 16:48:16 +01:00
Kawe Mazidjatari
79961687bd Add base filesystem interface string identifier 2023-01-22 15:11:55 +01:00
Kawe Mazidjatari
2cd28ab304 Obtain debug overlay interface through factory 2023-01-22 13:08:02 +01:00
Kawe Mazidjatari
4b5d24a51f Fix trace filter shadow bug
Shadow: VFTable was never set.
2023-01-22 13:05:26 +01:00
Kawe Mazidjatari
4ebe031341 Disable BHit raytrace z-buffer by default 2023-01-22 12:28:48 +01:00
Kawe Mazidjatari
e8a5bbcb9f BHit_f: split server and client rendering 2023-01-22 12:12:06 +01:00
Kawe Mazidjatari
a281768ac9 BHit performance improvements
Use ray trace directly instead of build-in drawline command.
2023-01-22 12:09:12 +01:00
Kawe Mazidjatari
d7f3209525 Mapped out hit group standards
Mapped out from Squirrel code.
2023-01-22 12:06:05 +01:00
Kawe Mazidjatari
3b0ed17c0d Ray_t structure improvements
Apparently it has 2 flag fields?
2023-01-22 12:05:28 +01:00
Kawe Mazidjatari
aa353f76cb Update bspflags.h 2023-01-22 12:04:21 +01:00
Kawe Mazidjatari
437b80eac4 Update trace masks
Changed trace masks to reflect that of the engine.
2023-01-22 01:43:31 +01:00
Kawe Mazidjatari
aa22460924 Update bsp flags to reflect changes in engine
Changes where acquired from Squirrel script constants initialization.
2023-01-21 16:40:32 +01:00
Kawe Mazidjatari
9903ed2597 Add bsp flags from source sdk 2023-01-21 16:38:55 +01:00
Kawe Mazidjatari
4ca0146499 EngineTrace improvements
Add server's EngineTrace to SDK, unfortunately it does not have a exposed factory interface unlike the client's version.
2023-01-21 16:24:36 +01:00
Kawe Mazidjatari
15429d3f8f Add 'CTraceFilterSimple' to SDK 2023-01-21 16:22:16 +01:00
Kawe Mazidjatari
560e06ff20 Improve CGameTrace
Set field 'hit_entity' to C(_)BaseEntity*.
2023-01-21 16:20:54 +01:00
Kawe Mazidjatari
3b48e0c746 Fix 'Ray_t' structure
Correct size and offsets. Most fields still unknown but for our current use case this doesn't matter.
2023-01-21 16:19:39 +01:00
Kawe Mazidjatari
eff106e415 Improve CCollisionProperty
Set 'm_pOuter' to CBaseEntity*.
2023-01-21 16:18:12 +01:00
Kawe Mazidjatari
08746bcedd player.h cleanup 2023-01-21 16:17:28 +01:00
Kawe Mazidjatari
e3b72b5e75 Fix formatting of address debug
Separator should be at the bottom.
2023-01-21 16:17:08 +01:00
Kawe Mazidjatari
0d9a66a6cf Mod_GetAllInstalledMaps: light cleanup 2023-01-21 15:39:18 +01:00
Kawe Mazidjatari
3af4ccebc3 Fix SDK launcher bug
Asan: used destroyed temporary to construct '-numreservedcores'.
Changed logic to only pass to engine when input is actually a number and its value is > -1.
2023-01-21 15:34:37 +01:00
Kawe Mazidjatari
aed8656d56 SDK Launcher: slight UX improvement
Make UI more symmetrical by aligning elements more precisely together.
2023-01-21 14:59:42 +01:00
Kawe Mazidjatari
4022fbd3ad Fix bad assert
Field 'm_bInitialized' should be set prior to calling this, this field was named differently and its use case was inverted, forgot to reflect changes in assert.
2023-01-21 14:49:53 +01:00
Kawe Mazidjatari
6811642734 Remove copyright notice from player.h
Structure uses next to no Valve material, and is heavily modified/custom. Removed copyright notice.
2023-01-20 22:17:04 +01:00