]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - server.h
reverted the cleanup of entity state building because it was sapping
[xonotic/darkplaces.git] / server.h
index 840838affbf8797ab824c8300ced697c84cd42af..3e9b71191bd696b8eafa086ed032a70c67ceb3e0 100644 (file)
--- a/server.h
+++ b/server.h
@@ -139,6 +139,14 @@ typedef struct server_s
        int writeentitiestoclient_pvsbytes;
        unsigned char writeentitiestoclient_pvs[MAX_MAP_LEAFS/8];
        entity_state_t writeentitiestoclient_sendstates[MAX_EDICTS];
+
+       int numsendentities;
+       entity_state_t sendentities[MAX_EDICTS];
+       entity_state_t *sendentitiesindex[MAX_EDICTS];
+
+       int sententitiesmark;
+       int sententities[MAX_EDICTS];
+       int sententitiesconsideration[MAX_EDICTS];
 } server_t;
 
 // if defined this does ping smoothing, otherwise it does not
@@ -242,6 +250,9 @@ typedef struct client_s
        // fixangle data
        qboolean fixangle_angles_set;
        vec3_t fixangle_angles;
+
+       // demo recording
+       qfile_t *sv_demo_file;
 } client_t;
 
 
@@ -356,6 +367,7 @@ extern cvar_t sv_fixedframeratesingleplayer;
 extern cvar_t sv_freezenonclients;
 extern cvar_t sv_friction;
 extern cvar_t sv_gameplayfix_blowupfallenzombies;
+extern cvar_t sv_gameplayfix_delayprojectiles;
 extern cvar_t sv_gameplayfix_droptofloorstartsolid;
 extern cvar_t sv_gameplayfix_findradiusdistancetobox;
 extern cvar_t sv_gameplayfix_grenadebouncedownslopes;
@@ -410,6 +422,7 @@ void SV_Init (void);
 void SV_StartParticle (vec3_t org, vec3_t dir, int color, int count);
 void SV_StartEffect (vec3_t org, int modelindex, int startframe, int framecount, int framerate);
 void SV_StartSound (prvm_edict_t *entity, int channel, const char *sample, int volume, float attenuation);
+void SV_StartPointSound (vec3_t origin, const char *sample, int volume, float attenuation);
 
 void SV_ConnectClient (int clientnum, netconn_t *netconnection);
 void SV_DropClient (qboolean crash);