1248 Commits

Author SHA1 Message Date
rexx
39c49c5b58 Update vgui_debugpanel.cpp 2022-07-13 19:47:16 +01:00
rexx
35515f1ef5 fix clientsdk compilation 2022-07-13 19:46:55 +01:00
Kawe Mazidjatari
46a3535b27 Update dtMeshTile structure
Actual size is 0x78 (header2 also gets assigned to the header pointer in r5apex.exe + F43FFA).
2022-07-13 12:08:10 +02:00
Kawe Mazidjatari
c79cfa4968 Declare GetNavMeshForHull() 2022-07-13 11:44:38 +02:00
Kawe Mazidjatari
2dd66662b2 Add g_pNavMesh to SDK
Add g_pNavMesh to SDK and a simple wrapper for obtaining NavMesh from array.
2022-07-13 11:42:07 +02:00
Kawe Mazidjatari
f4ea846284 RenderUtils cleanup. 2022-07-12 21:02:10 +02:00
Kawe Mazidjatari
bd3fe5b445 Public IVDebugOverlay VFTable interface.
New public interface to add debug overlays on the go (memory is managed by the game module).
3 new commands:
* line.
* sphere.
* capsule.
2022-07-12 17:46:47 +02:00
Kawe Mazidjatari
7de9dfd2d9 Add missing field to OverlayBox_t 2022-07-12 15:38:51 +02:00
Kawe Mazidjatari
c9c002d27a Improve readability for DebugDrawHemiSphere angle math 2022-07-12 15:06:44 +02:00
Kawe Mazidjatari
0496d5d66b Improve DebugDrawSphere 2022-07-12 14:52:12 +02:00
Kawe Mazidjatari
521cbad760 Proper SSE structure for OverlayBox_t::Transforms 2022-07-12 12:28:23 +02:00
Kawe Mazidjatari
d47eaf98a0 Improve segmentation math for DebugDrawHemiSphere
Use actual number of segments per semi.
2022-07-11 21:43:57 +02:00
Kawe Mazidjatari
2ffb1da730 Default bZBuffer for all shapes to true; 2022-07-11 21:31:54 +02:00
Kawe Mazidjatari
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
Kawe Mazidjatari
27ff727949 Use Vector3D for capsule and hemisphere radius. 2022-07-11 20:45:14 +02:00
Kawe Mazidjatari
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
Kawe Mazidjatari
28de4a96bf Rename to DrawAIScriptNodes 2022-07-11 12:22:35 +02:00
Kawe Mazidjatari
96abdf619c Rebuild 'ai_script_nodes_draw'
Originally stripped from retail.
2022-07-11 12:00:08 +02:00
rexx
56dc7ffb70 fix incorrect default MS host 2022-07-10 17:56:43 +01:00
Kawe Mazidjatari
cf0ab4aa45 Light cleanup 2022-07-10 17:40:22 +02:00
Kawe Mazidjatari
cf232be7bf Switch hostname out for default 2022-07-10 17:22:48 +02:00
Kawe Mazidjatari
a808a2a50f Show devmenu on dev_default on release launch. v2.0.8_rc3 v2.0.8_rc2 2022-07-10 15:41:48 +02:00
Kawe Mazidjatari
39094ab11b Change v_RenderBox prototype to take const reference on transforms. 2022-07-10 14:39:03 +02:00
Kawe Mazidjatari
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
PixieCore
2be140f09d Update rtech_utils.cpp 2022-07-10 13:24:48 +02:00
PixieCore
afc312d86d Removed s_pBitsPerPixelWord and implemented it properly. 2022-07-10 13:11:48 +02:00
PixieCore
0eec5c6361 Updated RTech.
* Further cleanup of RTech::CreateDXTexture.
* New field in RTechTextureInfo_t which counts the total streamed mips.
* Added a few comments.
2022-07-09 10:41:02 +02:00
Kawe Mazidjatari
59eeec656a Guard RTech::CreateDXTexture out for S0/S1 2022-07-08 23:50:38 +02:00
Kawe Mazidjatari
e14934d244 Fix persistence state for s0/s1 builds
CVEngineServer::IsPersistenceAvailable() is inline with Persistence_SetXP in S0 and S1. the virtual function never gets fired.
The approach for S0/S1 will call CVEngineServer::IsPersistenceAvailable() when Persistence_SetXP() is ran (the first function to ever use pClient->m_nPersistenceState after the SendServerInfo query).
2022-07-08 23:42:28 +02:00
PixieCore
c4977a39aa Add field to RTechTextureInfo_t. 2022-07-08 23:38:33 +02:00
rexx
d64079fd6b enable CreateDXTexture hook 2022-07-08 22:33:43 +01:00
PixieCore
931670e0ac Moved dxgiFormat further down. 2022-07-08 23:19:53 +02:00
PixieCore
d51ceddf38 RTech::CreateDXTexture cleanup.
* Separated RPakTextureHeader_t and made an RTech version.
* Fixed up RTechTextureInfo_t struct.
* Still needs testing with 4K textures.
2022-07-08 23:18:15 +02:00
PixieCore
6d916ae2c9 Merge branch 'indev' of https://github.com/Mauler125/r5sdk into indev 2022-07-08 20:31:33 +02:00
PixieCore
ff7ae51718 RTech::CreateDXTexture works now.
* Will clean up the function next.
2022-07-08 20:31:27 +02:00
Kawe Mazidjatari
6b7a1f62e6 Fix declaration
Add missing optimizations belonging to previous commit.
2022-07-08 20:18:40 +02:00
Kawe Mazidjatari
bbf7896218 Move GetBoxCorners to mathlib
Renamed to 'PointsFromAngledBox' (no longer adds origin by default).
2022-07-08 20:17:30 +02:00
Kawe Mazidjatari
75abedc711 New custom math functions
* AngleCompose (compose angle from 2 angles).
* AngleLerp (linearly interpolate first angle to second).
* AngleInverse (invert input angle).
2022-07-08 16:25:20 +02:00
Kawe Mazidjatari
86c9ac5292 Upgrade mathlib to latest
Latest SourceSDK MathLib with minor modifications.
2022-07-08 00:55:01 +02:00
Kawe Mazidjatari
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
PixieCore
0463647268 Do proper checks if Client Instance is valid 2022-07-07 20:35:49 +02:00
PixieCore
ac55e6c142 Fix debug compile 2022-07-06 21:57:00 +02:00
Kawe Mazidjatari
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
Kawe Mazidjatari
2af10efe23 Temporary RenderBox 2022-07-06 14:41:34 +02:00
Kawe Mazidjatari
e04c165d17 Return size_t for 'con_suggestion_limit' in 'CConsole::FindFromPartial' 2022-07-06 11:42:12 +02:00
Kawe Mazidjatari
e45cba48be Box overlay progress 2022-07-06 11:22:37 +02:00
PixieCore
1b2c0cecd0 CShaderGlue changes and RTech implementation.
* Added RTech::LoadShaderSet for the asset load routine
* Grabbing CShaderGlue::SetupShader and CShaderGlue::m_pVTable dynamically now
* Everything verified for every season, cross-compatible!
2022-07-04 22:52:10 +02:00
Amos
fb0795c789 Fix dedicated compile 2022-07-04 01:08:36 +02:00
PixieCore
8860d9b1b8 fix compilation 2022-07-03 22:57:07 +02:00
PixieCore
2b1374cff8 Added CShaderGlue VTable context 2022-07-03 22:44:25 +02:00