mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Update CCheckTransmitInfo (#166)
This commit is contained in:
@ -58,7 +58,7 @@
|
||||
#define SP_MODEL_INDEX_BITS 11
|
||||
|
||||
// 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
|
||||
#define MAX_EDICTS (1<<MAX_EDICT_BITS)
|
||||
|
||||
|
@ -37,21 +37,10 @@ class CBaseNetworkable;
|
||||
class CCheckTransmitInfo
|
||||
{
|
||||
public:
|
||||
edict_t *m_pClientEnt; // pointer to receiver edict
|
||||
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_pTransmitEntity; // 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)
|
||||
|
||||
int m_AreasNetworked; // number of networked areas
|
||||
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;
|
||||
// TODO: This is incomplete and may require further reversing in the future.
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user