]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - server.h
1. also play sounds outside cdtracks/ as CD tracks
[xonotic/darkplaces.git] / server.h
index 15b7c3d06763e34800b4e5f9ecb500757fe4b26b..fe11c2660fb8b3c6b841fea218cbf7034e7af058 100644 (file)
--- a/server.h
+++ b/server.h
@@ -152,6 +152,15 @@ typedef struct server_s
        unsigned char csqcentityversion[MAX_EDICTS]; // legacy
 } server_t;
 
+#define NUM_CSQCENTITIES_PER_FRAME 1024
+typedef struct csqcentityframedb_s
+{
+       int framenum;
+       int num;
+       unsigned short entno[NUM_CSQCENTITIES_PER_FRAME];
+       int sendflags[NUM_CSQCENTITIES_PER_FRAME];
+} csqcentityframedb_t;
+
 // if defined this does ping smoothing, otherwise it does not
 //#define NUM_PING_TIMES 16
 
@@ -225,6 +234,11 @@ typedef struct client_s
        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;
+
        // prevent animated names
        float nametime;