]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
replaced rainsplash animation with just a single particle which expands over time...
[xonotic/darkplaces.git] / client.h
index 1b9698027e90ec5fd854d01365a900bc737554db..f24fe71e6aed73caf2088404dcb5a69a1dd6d363 100644 (file)
--- a/client.h
+++ b/client.h
@@ -366,8 +366,8 @@ typedef struct scoreboard_s
 
 typedef struct cshift_s
 {
-       int             destcolor[3];
-       int             percent;                // 0-256
+       float   destcolor[3];
+       float   percent;                // 0-256
 } cshift_t;
 
 #define        CSHIFT_CONTENTS 0
@@ -583,6 +583,7 @@ typedef struct particle_s
        vec3_t          org;
        vec3_t          vel; // velocity of particle, or orientation of decal, or end point of beam
        float           size;
+       float           sizeincrease; // rate of size change per second
        float           alpha; // 0-255
        float           alphafade; // how much alpha reduces per second
        float           time2; // used for snow fluttering and decal fade
@@ -699,7 +700,7 @@ typedef struct client_state_s
        // don't change view angle, full screen, etc
        int intermission;
        // latched at intermission start
-       int completed_time;
+       double completed_time;
 
        // the timestamp of the last two messages
        double mtime[2];
@@ -707,7 +708,10 @@ typedef struct client_state_s
        // clients view of time, time should be between mtime[0] and mtime[1] to
        // generate a lerp point for other data, oldtime is the previous frame's
        // value of time, frametime is the difference between time and oldtime
-       double time, oldtime, frametime;
+       double time, oldtime;
+       // how long it has been since the previous client frame in real time
+       // (not game time, for that use cl.time - cl.oldtime)
+       double realframetime;
 
        // copy of realtime from last recieved message, for net trouble icon
        float last_received_message;
@@ -1104,7 +1108,7 @@ int CL_ParticleEffectIndexForName(const char *name);
 const char *CL_ParticleEffectNameForIndex(int i);
 void CL_ParticleEffect(int effectindex, float pcount, const vec3_t originmins, const vec3_t originmaxs, const vec3_t velocitymins, const vec3_t velocitymaxs, entity_t *ent, int palettecolor);
 void CL_ParseParticleEffect (void);
-void CL_ParticleCube (const vec3_t mins, const vec3_t maxs, const vec3_t dir, int count, int colorbase, int gravity, int randomvel);
+void CL_ParticleCube (const vec3_t mins, const vec3_t maxs, const vec3_t dir, int count, int colorbase, vec_t gravity, vec_t randomvel);
 void CL_ParticleRain (const vec3_t mins, const vec3_t maxs, const vec3_t dir, int count, int colorbase, int type);
 void CL_EntityParticles (const entity_t *ent);
 void CL_ParticleExplosion (const vec3_t org);