1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 04:26:03 +08:00

Update CCheckTransmitInfo (#166)

This commit is contained in:
xen
2023-10-16 22:01:20 +03:00
committed by GitHub
parent bf3b72e302
commit 1c94bbfa4b
2 changed files with 4 additions and 15 deletions

View File

@ -58,7 +58,7 @@
#define SP_MODEL_INDEX_BITS 11 #define SP_MODEL_INDEX_BITS 11
// How many bits to use to encode an edict. // How many bits to use to encode an edict.
#define MAX_EDICT_BITS 11 // # of bits needed to represent max edicts #define MAX_EDICT_BITS 14 // # of bits needed to represent max edicts
// Max # of edicts in a level // Max # of edicts in a level
#define MAX_EDICTS (1<<MAX_EDICT_BITS) #define MAX_EDICTS (1<<MAX_EDICT_BITS)

View File

@ -37,21 +37,10 @@ class CBaseNetworkable;
class CCheckTransmitInfo class CCheckTransmitInfo
{ {
public: public:
edict_t *m_pClientEnt; // pointer to receiver edict CBitVec<MAX_EDICTS> *m_pTransmitEntity; // entity n is already marked for transmission
byte m_PVS[PAD_NUMBER( MAX_MAP_CLUSTERS,8 ) / 8];
int m_nPVSSize; // PVS size in bytes
CBitVec<MAX_EDICTS> *m_pTransmitEdict; // entity n is already marked for transmission
CBitVec<MAX_EDICTS> *m_pTransmitAlways; // entity n is always send even if not in PVS (HLTV and Replay only) CBitVec<MAX_EDICTS> *m_pTransmitAlways; // entity n is always send even if not in PVS (HLTV and Replay only)
int m_AreasNetworked; // number of networked areas // TODO: This is incomplete and may require further reversing in the future.
int m_Areas[MAX_WORLD_AREAS]; // the areas
// This is used to determine visibility, so if the previous state
// is the same as the current state (along with pvs and areas networked),
// then the parts of the map that the player can see haven't changed.
byte m_AreaFloodNums[MAX_MAP_AREAS];
int m_nMapAreas;
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------