alliedmodders / hl2sdk

Half-Life 2 SDK Mirrors
https://github.com/valvesoftware
344 stars 164 forks source link

Update CCheckTransmitInfo #166

Closed xen-000 closed 11 months ago

xen-000 commented 11 months ago

There are most likely more members beyond m_pTransmitAlways but I couldn't figure them out and they aren't important to us at the moment anyway. The old ones are definitely wrong though, areas are a BSP thing from source1.

In addition, MAX_EDICT_BITS was updated to reflect the source2 networked entity limit.

GAMMACASE commented 11 months ago

Do you know by any chance the true size of CCheckTransmitInfo? Could the padding be added to indicate that the class is incomplete?

xen-000 commented 11 months ago

Unfortunately no, CCheckTransmitInfo objects passed to CheckTransmit are originally stored in CGameClient, which is likely different in source2 as well.

I can probably attempt to figure it out at some point if nobody else does, but right now this works just fine for hooking CheckTransmit to hide players (example).

GAMMACASE commented 11 months ago

Can you add a comment then indicating that the structure is not complete and might require some further reversing?

GAMMACASE commented 11 months ago

Thanks!