- // version number of csqc-based entity to decide whether to send it
- unsigned char csqcentityversion[MAX_EDICTS];
+ // scope is whether an entity is currently being networked to this client
+ // sendflags is what properties have changed on the entity since the last
+ // update that was sent
+ int csqcnumedicts;
+ unsigned char csqcentityscope[MAX_EDICTS];
+ unsigned int csqcentitysendflags[MAX_EDICTS];
+
+#define NUM_CSQCENTITYDB_FRAMES 64
+ unsigned char csqcentityglobalhistory[MAX_EDICTS]; // set to 1 if the entity was ever csqc networked to the client, and never reset back to 0
+ csqcentityframedb_t csqcentityframehistory[NUM_CSQCENTITYDB_FRAMES];
+ int csqcentityframehistory_next;