1917 Commits

Author SHA1 Message Date
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
Kawe Mazidjatari
c0d9d4462b Improve CAnimationLayer
Field 'm_animationLayerOwner' is CBaseEntity*.
2023-01-19 01:59:11 +01:00
Amos
b63765e1dc Finished CPlayer inheritance 2023-01-18 12:39:18 +01:00
Kawe Mazidjatari
75406ab7bc Fix linker error for client DLL
Unresolved external symbol for g_pEngineServer VFTable.
2023-01-18 01:40:24 +01:00
Kawe Mazidjatari
d5ef71200f Update sig cache minor version
Invalidate old databases and rebuild as signature for 'gpGlobals' has changed.
2023-01-18 01:35:27 +01:00
Kawe Mazidjatari
3ed423543e Add more entity structures to the SDK
Stuff will be separated properly very soon.
2023-01-18 01:34:40 +01:00
Kawe Mazidjatari
217bbc8ea1 Add new work-in-progress entity structures to SDK
Thanks to rexx for the structures.
2023-01-18 00:46:17 +01:00
Kawe Mazidjatari
94bf515ba7 Add gpGlobals to SDK 2023-01-17 11:21:10 +01:00
Kawe Mazidjatari
b477bbbeaa Use correct type size for 'VPANEL'
Thanks p0358
2023-01-17 00:53:19 +01:00
Kawe Mazidjatari
85aa262360 Merge branch 'CreateFakeClient' into indev 2023-01-17 00:42:51 +01:00
Kawe Mazidjatari
98331796b2 Fix bug in LZHAM debug log formatting
Should be '%llu' or '%zu' for size types.
2023-01-17 00:42:38 +01:00
Kawe Mazidjatari
27cc07b547 Remove unused patterns
No longer used.
2023-01-17 00:32:08 +01:00
Kawe Mazidjatari
78960f6bbd Finish initial implementation of basic bots 2023-01-17 00:08:15 +01:00