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
Kawe Mazidjatari
934d18809a
Finish 'CPlayer::RunNullCommand'
2023-01-19 21:45:15 +01:00
Kawe Mazidjatari
aec30a8047
Slight fix for CGlobalVarsBase
...
Fixed offsets for 'm_fCurTime' and 'm_fFrameTime'.
2023-01-19 21:44:42 +01:00
Kawe Mazidjatari
1853f3d643
CPlayer: Finish user command executor
...
Command executor finished. Also improved the structure slightly to use CUserCmd instead of padded characters for 'm_LastCmd'.
2023-01-19 20:48:41 +01:00
Kawe Mazidjatari
119bd9ae61
CUserCmd improvements
...
* Adjust structure size to that of the implementation in the S3 executable.
* Added copy method (copies a source usercmd into current).
2023-01-19 20:45:59 +01:00
Kawe Mazidjatari
9231861f87
Light cleanup in movehelper_server.h
2023-01-19 19:39:36 +01:00
Kawe Mazidjatari
05748e6184
Add client movehelper to SDK
...
Structure and vftable align 100%.
2023-01-19 19:39:15 +01:00
Kawe Mazidjatari
7279039226
Delete empty files
2023-01-19 18:57:28 +01:00
Kawe Mazidjatari
754c986e3d
Add server movehelper to SDK
...
Initial implementation of server movehelper. IMoveHelper interface class is fully reversed and aligns with implementation in engine. CMoveHelperServer is also reversed, excect for CGameTrace, though this isn't necessary for now.
2023-01-19 18:52:46 +01:00
Kawe Mazidjatari
afe8efbc2a
Add CUserCmd class to SDK
...
Implemented CUserCmd to SDK. Constructor resets the class using the game's 'Reset' implementation as the majority of the structure is unknown.
2023-01-19 16:11:48 +01:00
Kawe Mazidjatari
b2ffab07c3
Fix mistake
...
Should be 'm_lastUCmdSimulationRemainderTime' instead of 'm_totalExtraClientCmdTimeAttempted'.
2023-01-19 15:29:53 +01:00
Kawe Mazidjatari
54f08bd887
Work-in-progress user command executor
...
* Added some getters in 'CBaseEntity' and 'CServerNetworkProperty'.
* Implemented 'CPlayer::SetTimeBase'.
* WIP implementation of 'CPlayer::RunNullCommand'.
2023-01-19 15:25:45 +01:00
Kawe Mazidjatari
d4b576bd49
Light structures cleanup
2023-01-19 15:06:08 +01:00
Kawe Mazidjatari
1cf03355a5
Light cleanup and work for future
...
Moved some structures around and added ehandle headers.
2023-01-19 02:03:36 +01:00
Kawe Mazidjatari
b21fa6b665
Fix CBaseAnimating and CPlayer structure alignment
...
This change creates correct assembly output.
2023-01-19 02:02:42 +01:00