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
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
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
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