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
Kawe Mazidjatari
ab86bf3317
Improve 'sv_addbot' command usage text
2023-01-20 17:22:06 +01:00
Kawe Mazidjatari
1d8e61ebff
Fixup 'CMoveHelperServer' and 'CMoveHelperClient'
...
Uncomment field.
2023-01-20 17:21:34 +01:00
Kawe Mazidjatari
7b669ea8c6
Engine trace cleanup
...
Separate into different files to make it easier for other classes to access.
2023-01-20 17:20:50 +01:00
Kawe Mazidjatari
1544442cc4
Add CClient::SetSignonState to SDK
...
Backwards compatible up to S0.
2023-01-20 16:01:39 +01:00
Kawe Mazidjatari
9e490c16cc
Rename unknown field in CClientState
...
Field 'field_AC' is 'm_nInSequenceNr'.
2023-01-20 16:01:00 +01:00
Kawe Mazidjatari
a69c287e17
Align IClientMessageHandler vftable
...
Ported from S7 to S3.
2023-01-20 16:00:12 +01:00
Kawe Mazidjatari
9720d8b0f1
Fix 'g_pGlobals' and 'UTIL_PlayerByIndex()'
...
'UTIL_PlayerByIndex' now returns the player from the edict array properly, 'g_pGlobals' had to be dereferenced twice.
2023-01-20 14:07:25 +01:00
Kawe Mazidjatari
05d2c5e3ea
Add g_pEntityList to SDK
2023-01-20 02:12:14 +01:00
Kawe Mazidjatari
4710b51fa3
Experimental bot simulation implementation
...
Simulate bot user commands on the server. The simulation system is experimental and only runs if cvar 'sv_simulateBots' is set, and bots are created on the server.
2023-01-20 01:23:08 +01:00
Kawe Mazidjatari
e9f907638f
Improve plugin debugging code
...
Log using sdk loggers, warn if it failed to load.
2023-01-20 00:42:13 +01:00
Kawe Mazidjatari
dcf05a0adf
CClientEntityList reversal
...
Slightly reversed CClientEntityList while looking around its singleton.
2023-01-20 00:28:49 +01:00
Kawe Mazidjatari
82c914c2fd
Detour 'Physics_RunThinkFunctions'
...
Hook will be used to run simulation for bots.
2023-01-19 22:53:45 +01:00
Kawe Mazidjatari
e7522ce0d6
Fix compile error
...
IMoveHelper compile error in player.h.
2023-01-19 21:51:43 +01:00