X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=cl_particles.h;h=8e07e19e79a40b7e79c413a9856b26bfee302067;hb=f763b5cde4e66998674ba334e334c72929af2371;hp=a37bc489b41ad072c326b84a04f2b8790e6f5749;hpb=4d01a285bf854691d10de6998cc35b2808175d75;p=xonotic%2Fdarkplaces.git diff --git a/cl_particles.h b/cl_particles.h index a37bc489..8e07e19e 100644 --- a/cl_particles.h +++ b/cl_particles.h @@ -2,32 +2,31 @@ #define CL_PARTICLES_H #include "qtypes.h" -#include "cvar.h" -typedef struct entity_s entity_t; +struct entity_s; -extern cvar_t cl_particles; -extern cvar_t cl_particles_quality; -extern cvar_t cl_particles_size; -extern cvar_t cl_particles_quake; -extern cvar_t cl_particles_blood; -extern cvar_t cl_particles_blood_alpha; -extern cvar_t cl_particles_blood_decal_alpha; -extern cvar_t cl_particles_blood_decal_scalemin; -extern cvar_t cl_particles_blood_decal_scalemax; -extern cvar_t cl_particles_blood_bloodhack; -extern cvar_t cl_particles_bulletimpacts; -extern cvar_t cl_particles_explosions_sparks; -extern cvar_t cl_particles_explosions_shell; -extern cvar_t cl_particles_rain; -extern cvar_t cl_particles_snow; -extern cvar_t cl_particles_smoke; -extern cvar_t cl_particles_smoke_alpha; -extern cvar_t cl_particles_smoke_alphafade; -extern cvar_t cl_particles_sparks; -extern cvar_t cl_particles_bubbles; -extern cvar_t cl_decals; -extern cvar_t cl_decals_time; -extern cvar_t cl_decals_fadetime; +extern struct cvar_s cl_particles; +extern struct cvar_s cl_particles_quality; +extern struct cvar_s cl_particles_size; +extern struct cvar_s cl_particles_quake; +extern struct cvar_s cl_particles_blood; +extern struct cvar_s cl_particles_blood_alpha; +extern struct cvar_s cl_particles_blood_decal_alpha; +extern struct cvar_s cl_particles_blood_decal_scalemin; +extern struct cvar_s cl_particles_blood_decal_scalemax; +extern struct cvar_s cl_particles_blood_bloodhack; +extern struct cvar_s cl_particles_bulletimpacts; +extern struct cvar_s cl_particles_explosions_sparks; +extern struct cvar_s cl_particles_explosions_shell; +extern struct cvar_s cl_particles_rain; +extern struct cvar_s cl_particles_snow; +extern struct cvar_s cl_particles_smoke; +extern struct cvar_s cl_particles_smoke_alpha; +extern struct cvar_s cl_particles_smoke_alphafade; +extern struct cvar_s cl_particles_sparks; +extern struct cvar_s cl_particles_bubbles; +extern struct cvar_s cl_decals; +extern struct cvar_s cl_decals_time; +extern struct cvar_s cl_decals_fadetime; typedef enum { @@ -154,13 +153,13 @@ effectnameindex_t; 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_ParticleTrail(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, qbool spawndlight, qbool spawnparticles, float tintmins[4], float tintmaxs[4], float fade); -void CL_ParticleBox(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, qbool spawndlight, qbool spawnparticles, float tintmins[4], float tintmaxs[4], float fade); +void CL_ParticleEffect(int effectindex, float pcount, const vec3_t originmins, const vec3_t originmaxs, const vec3_t velocitymins, const vec3_t velocitymaxs, struct entity_s *ent, int palettecolor); +void CL_ParticleTrail(int effectindex, float pcount, const vec3_t originmins, const vec3_t originmaxs, const vec3_t velocitymins, const vec3_t velocitymaxs, struct entity_s *ent, int palettecolor, qbool spawndlight, qbool spawnparticles, float tintmins[4], float tintmaxs[4], float fade); +void CL_ParticleBox(int effectindex, float pcount, const vec3_t originmins, const vec3_t originmaxs, const vec3_t velocitymins, const vec3_t velocitymaxs, struct entity_s *ent, int palettecolor, qbool spawndlight, qbool spawnparticles, float tintmins[4], float tintmaxs[4], float fade); void CL_ParseParticleEffect (void); 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_EntityParticles (const struct entity_s *ent); void CL_ParticleExplosion (const vec3_t org); void CL_ParticleExplosion2 (const vec3_t org, int colorStart, int colorLength);