Kawe Mazidjatari
34076142ba
More XZY->XYZ changes
2022-07-28 03:21:20 +02:00
Kawe Mazidjatari
ce28ea2691
Even more offMeshConnections debug draw fixes
2022-07-28 02:07:13 +02:00
Kawe Mazidjatari
8af97beb57
Fix offMeshConnections debug draw
2022-07-28 01:48:17 +02:00
Kawe Mazidjatari
6a1b6c580a
Increase debug arow size
2022-07-28 00:52:12 +02:00
Kawe Mazidjatari
37637bc56a
Properly fix cylinder, circle and arrow debug draw for Recast.
2022-07-28 00:41:47 +02:00
Kawe Mazidjatari
f0eecc80ff
Flip vertex order for convex hull properly
2022-07-27 21:13:36 +02:00
Kawe Mazidjatari
87a42efd72
Uncomment and fix crowd anticipate turn debug draw
...
Moved internal functions to their own translation unit.
2022-07-27 21:05:27 +02:00
Kawe Mazidjatari
88a29f2770
Improve crowd speed/acceleration/braking
...
Changed to values comparable to game.
Added sliders for acceleration and speed.
2022-07-27 20:08:17 +02:00
Kawe Mazidjatari
03698a4a5f
Fix DetourCrowd
...
XZY -> XYZ.
Crowd agents now traverse over the poly surfaces properly.
2022-07-27 17:48:51 +02:00
Kawe Mazidjatari
6d4b2ea7ef
Increase convex volume alpha and height
2022-07-27 15:12:47 +02:00
Kawe Mazidjatari
677d993403
Draw ground convex points red as well
2022-07-27 14:56:11 +02:00
Kawe Mazidjatari
369c92e358
Improve convex volume creation/drawing
...
* Improved ground convex visibility (changed to red as this acts as deletion).
* Default m_areaType to SAMPLE_POLYAREA_GROUND.
2022-07-27 14:44:42 +02:00
Kawe Mazidjatari
0576749de0
Use transparent area color for polymesh debug draw
2022-07-27 14:30:30 +02:00
Kawe Mazidjatari
c16d87ebc5
Fix more Recast & Detour debug drawing
...
* XZY -> XYZ.
2022-07-27 14:29:54 +02:00
Kawe Mazidjatari
4c8027b319
Fix duDebugDrawHeightfieldLayer and RecastDebugDraw cleanup
2022-07-27 12:38:02 +02:00
Kawe Mazidjatari
df99664d2a
Working Recast convex hull
2022-07-27 11:11:41 +02:00
Kawe Mazidjatari
da77600baa
More XZY->XYZ places
2022-07-27 10:58:54 +02:00
Kawe Mazidjatari
92ecdcf698
Increase default height for NavMesh convex hulls
2022-07-27 10:53:57 +02:00
Kawe Mazidjatari
8757d0a43f
NavMesh convex volume drawing somewhat working
2022-07-27 03:50:11 +02:00
Kawe Mazidjatari
ba97662c99
Recast editor cleanup and improvements
...
* Removed Samples button and dialogue.
* Removed SoloMesh.
* Removed TempObstacles.
* Limit 'Verts Per Poly' to 6 (DT_VERTS_PER_POLYGON).
* Moved hulldef constant and handler to TileMesh.
* Set m_tileSize based on hull (small = 32, med_short = 32, medium = 32, large = 64, extra_large = 64).
2022-07-26 15:45:40 +02:00
Kawe Mazidjatari
112a530d5a
Improve Recast & Detour and NavMesh generation
...
* Add missing dtQueryFilter field (some flag used in the engine but not sure yet what it does).
* Set tile->polysEnd and tile->offMeshConsEnd to end of polys and offMeshCons array pointer (if ever needed).
* Set camera perspective to 75 (previous 50).
* Improve theme.
* Lowered the climb height for all hulls (this improves NavMesh generation around low obstacles, previously it would create a poly connecting the ground on the side with the surface of the object around where it connects with the ground, causing AI to take this route instead and kind of 'glitch' onto the surface).
2022-07-26 14:23:02 +02:00
Kawe Mazidjatari
58e0d96e22
Disable CAI_NetworkManager::ShouldRebuild 'restart\n' patch.
...
AIN rebuilding and saving works, the patch is no longer needed.
2022-07-26 03:13:10 +02:00
Kawe Mazidjatari
feef90c44f
Light cleanup of the detours init system
2022-07-26 03:00:51 +02:00
Kawe Mazidjatari
de6aab7252
Change default spdlog pattern
...
Log 0.000 as process time, as this begins to start when the engine is initialized (Plat_FloatTime()).
2022-07-26 02:34:22 +02:00
Kawe Mazidjatari
b846809ac3
Give process time to shutdown properly
...
Game gets max 10 seconds to shutdown properly when closed directly by the external console window (g_pHostState->m_iNextState = HostStates_t::HS_SHUTDOWN).
2022-07-26 00:36:35 +02:00
Kawe Mazidjatari
93375d9a1f
Improve NavMesh debug draw colors
2022-07-25 20:40:28 +02:00
Kawe Mazidjatari
25e2581f2b
Implement fully mapped out ConCommandBase VFTable interface class
2022-07-25 20:06:06 +02:00
Kawe Mazidjatari
19d264ec11
Implement RCON_PasswordChanged_f and ConVar improvements
...
* Changing RCON passwords on the server now closes all connections and re-initializes the system.
* Fully mapped out VFTable interface for IConVar* (used for ConVar callbacks, see callback.cpp).
2022-07-25 19:35:08 +02:00
Kawe Mazidjatari
086489a000
AIN/NavMesh debug draw improvements
...
* Move AIN/NavMesh debug draw to ai_utility_shared.cpp.
* Use shift index + range for AIN debug draw.
* Added cvar for determining max distance between camera and tile (anything outside this range doesn't get draw).
2022-07-25 16:39:07 +02:00
Kawe Mazidjatari
799dac882a
Add 'MainViewOrigin()' and 'MainViewAngles()'
...
Implemented g_vecRenderOrigin and g_vecRenderAngles to SDK.
2022-07-25 12:46:57 +02:00
Kawe Mazidjatari
2db57b15fc
Slightly mapped out IClientEntity
...
Most unknown but GetAbsOrigin and GetAbsAngles do work properly.
2022-07-24 15:29:02 +02:00
PixieCore
c348b41934
Merge branch 'indev' of https://github.com/Mauler125/r5sdk into indev
2022-07-24 15:09:51 +02:00
PixieCore
ef28df4aa1
CModule::GetVirtualMethodTable optimization
2022-07-24 15:09:45 +02:00
Kawe Mazidjatari
65f8784e6e
Fix CEngineClient::GetLocalPlayer()
...
Use VFTable method by index instead.
2022-07-24 14:05:38 +02:00
Kawe Mazidjatari
81374e8682
Add VClientEntityList003 interface
2022-07-24 13:40:37 +02:00
Kawe Mazidjatari
f314b9b4e7
Start of C_Player reversing
2022-07-24 12:59:40 +02:00
Kawe Mazidjatari
65cbdb5465
Use ConVar::ChangeStringValue() instead for purging hostnames
...
Now possible without crashing with the new memalloc singleton.
2022-07-22 17:18:54 +02:00
Kawe Mazidjatari
c7cd6b2971
Add CStdMemAlloc::Realloc
2022-07-22 17:07:48 +02:00
Kawe Mazidjatari
c405c23934
Implement memory allocation singleton wrappers
...
* Pointer to g_pMemAllocSingleton
* New wrapper for returning the singleton, and creating one if not yet initialized (game shares the same pointer, and is aware of its creation).
2022-07-22 16:34:10 +02:00
Kawe Mazidjatari
8198866f6f
Add tile range for NavMesh debug draw
...
New cvar 'navmesh_debug_tile_range' (tile shift index to this cvar gets drawn).
2022-07-22 12:44:33 +02:00
Kawe Mazidjatari
ff0ae1c13b
Fix dtMeshTile structure
...
Removed old member that should had been removed earlier. All members align now.
2022-07-22 12:28:39 +02:00
PixieCore
178aeeb3fd
Use GetVirtualMethodTable for VTable consts.
2022-07-21 20:36:47 +02:00
rexx
2d25c504fb
remove init of streamoverlay buffer
2022-07-21 17:07:20 +01:00
rexx
2e3b4205c0
remove streamoverlay hook
2022-07-21 17:05:19 +01:00
Kawe Mazidjatari
d4f9e68930
'g_ppGameDevice' confirmed compatible with earlier builds
2022-07-21 16:56:25 +02:00
Kawe Mazidjatari
b3ed5d4052
Fix client.dll compile errors
...
Stripped more server only stuff from client.dll.
2022-07-21 15:13:48 +02:00
Kawe Mazidjatari
9758f988ec
Add NavMesh poly debug overlay
...
Can be toggled and shifted through tiles using 'navmesh_draw_polys'.
2022-07-21 14:48:50 +02:00
Kawe Mazidjatari
c850d52d1b
Add NavMesh poly bounds debug overlay
2022-07-21 02:21:59 +02:00
Kawe Mazidjatari
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
rexx
cb4e422724
reimplement stream overlay drawing
2022-07-20 22:50:55 +01:00