Commit Graph

22 Commits

Author SHA1 Message Date
c850d52d1b Add NavMesh poly bounds debug overlay 2022-07-21 02:21:59 +02:00
e21ae20f4a Add NavMesh tile portal debug overlay
navmesh_draw_portal > -1 enables the overlay, with this cvar you can also shift through tiles.
navmesh_debug_type [0 - 4] selects the NavMesh (small, med_short, medium, large, extra_large).
2022-07-21 01:24:07 +02:00
2998953600 Add NavMesh BVTree debug overlay
navmesh_draw_bvtree > -1 enables the overlay, with this cvar you can also shift through tiles.
navmesh_debug_type [0 - 4] selects the NavMesh (small, med_short, medium, large, extra_large).
2022-07-20 21:23:56 +02:00
7973034bd0 temp navmesh debug drawing 2022-07-14 18:19:34 +01:00
521cbad760 Proper SSE structure for OverlayBox_t::Transforms 2022-07-12 12:28:23 +02:00
e8a0c5e752 Add cvar for debug overlay z-buffer.
Only OverlayLine_t has a field to determine whether or not to ignore the z-buffer.
Added ConVar 'r_debug_overlay_zbuffer' to allow setting z-buffer for all overlays.
2022-07-11 21:23:26 +02:00
27ff727949 Use Vector3D for capsule and hemisphere radius. 2022-07-11 20:45:14 +02:00
ffa9f12e2b New DebugDraw shapes in SDK
DebugDrawCapsule and DebugDrawHemiSphere.
Hooked up to DrawOverlay (OverlayType_t::OVERLAY_CAPSULE).
2022-07-11 20:35:20 +02:00
28de4a96bf Rename to DrawAIScriptNodes 2022-07-11 12:22:35 +02:00
96abdf619c Rebuild 'ai_script_nodes_draw'
Originally stripped from retail.
2022-07-11 12:00:08 +02:00
cf0ab4aa45 Light cleanup 2022-07-10 17:40:22 +02:00
39094ab11b Change v_RenderBox prototype to take const reference on transforms. 2022-07-10 14:39:03 +02:00
856b386945 Debug overlay improvements and new render utilities.
Fixed internal RenderBox transforms (origin and angles are packed in xmm registers).
Added new render utilities in the SDK similar to the script ones.
2022-07-10 14:30:28 +02:00
d8a45ae563 Overlay improvements
* Move render utils to dedicated file.
* Implement more render/mesh utils.
* Added structure for OverlayTriangle_t, OverlaySweptBox_t and OverlayCapsule_t.
OverlayCapsule_t has been modified to accommodate the size in r5 (2 new vectors).
2022-07-07 21:31:00 +02:00
7d89a42b56 Mathlib implementation
SourceSDK mathlib port with light modifications.
Renamed Vector to Vector3D (to avoid confusion with std::vector (declared as vector) and Vector2D/Vector4D).
2022-07-06 21:11:32 +02:00
2af10efe23 Temporary RenderBox 2022-07-06 14:41:34 +02:00
e45cba48be Box overlay progress 2022-07-06 11:22:37 +02:00
e711c54bf9 DebugOverlay improvements
Use rebuild 'DestroyOverlay()'
Use 'size_t' type for MemAlloc_Internal alloc size.
2022-06-15 01:35:48 +02:00
e70e4d1a8c Add DebugOverlay implementation 2022-06-15 01:24:29 +02:00
22c0b5c867 Dedicated server improvements 2021-12-30 17:20:47 +01:00
6d4f7e345f Fix a typo 2021-12-30 02:47:46 +01:00
39a8a8fd30 Implement patch to enable 'DrawAllOverlays()'. 2021-12-30 02:36:43 +01:00