![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | particleeffectinfo_t |
struct | particletexture_t |
Macros | |
#define | checkparms(n) |
#define | PARTICLEEFFECT_DEFINED 2147483648U |
#define | PARTICLEEFFECT_FORCENEAREST 4 |
#define | PARTICLEEFFECT_NOTUNDERWATER 2 |
#define | PARTICLEEFFECT_UNDERWATER 1 |
#define | PARTICLEFONTSIZE (PARTICLETEXTURESIZE*8) |
#define | PARTICLETEXTURESIZE 64 |
#define | readbool(var) |
#define | readfloat(var) |
#define | readfloats(array, n) |
#define | readint(var) |
#define | readints(array, n) |
Functions | |
void | CL_EntityParticles (const entity_t *ent) |
static void | CL_ImmediateBloodStain (particle_t *part) |
particle_t * | CL_NewParticle (const vec3_t sortorigin, unsigned short ptypeindex, int pcolor1, int pcolor2, int ptex, float psize, float psizeincrease, float palpha, float palphafade, float pgravity, float pbounce, float px, float py, float pz, float pvx, float pvy, float pvz, float pairfriction, float pliquidfriction, float originjitter, float velocityjitter, qbool pqualityreduction, float lifetime, float stretch, pblend_t blendmode, porientation_t orientation, int staincolor1, int staincolor2, int staintex, float stainalpha, float stainsize, float angle, float spin, float tint[4]) |
Creates a new particle and returns a pointer to it. | |
static void | CL_NewParticlesFromEffectinfo (int effectnameindex, 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, qbool wanttrail) |
particle_t * | CL_NewQuakeParticle (const vec3_t origin, const unsigned short ptypeindex, const int color_1, const int color_2, const float gravity, const float offset_x, const float offset_y, const float offset_z, const float velocity_offset_x, const float velocity_offset_y, const float velocity_offset_z, const float air_friction, const float liquid_friction, const float origin_jitter, const float velocity_jitter, const float lifetime) |
Creates a simple particle, a square like Quake, or a disc like GLQuake. | |
void | CL_ParseParticleEffect (void) |
static void | CL_Particle_PixelCoordsForTexnum (int texnum, int *basex, int *basey, int *width, int *height) |
void | CL_ParticleBox (int effectnameindex, 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_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_ParticleEffect (int effectnameindex, float pcount, const vec3_t originmins, const vec3_t originmaxs, const vec3_t velocitymins, const vec3_t velocitymaxs, entity_t *ent, int palettecolor) |
static void | CL_ParticleEffect_Fallback (int effectnameindex, float count, 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, qbool wanttrail) |
int | CL_ParticleEffectIndexForName (const char *name) |
const char * | CL_ParticleEffectNameForIndex (int i) |
void | CL_ParticleExplosion (const vec3_t org) |
void | CL_ParticleExplosion2 (const vec3_t org, int colorStart, int colorLength) |
void | CL_ParticleRain (const vec3_t mins, const vec3_t maxs, const vec3_t dir, int count, int colorbase, int type) |
void | CL_Particles_Init (void) |
static void | CL_Particles_LoadEffectInfo (const char *customfile) |
static void | CL_Particles_LoadEffectInfo_f (cmd_state_t *cmd) |
static void | CL_Particles_ParseEffectInfo (const char *textstart, const char *textend, const char *filename) |
void | CL_Particles_Shutdown (void) |
void | CL_ParticleTrail (int effectnameindex, 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_ReadPointFile_f (cmd_state_t *cmd) |
static void | CL_Smoke (const vec3_t originmins, const vec3_t originmaxs, const vec3_t velocitymins, const vec3_t velocitymaxs, float smokecount) |
static void | CL_Sparks (const vec3_t originmins, const vec3_t originmaxs, const vec3_t velocitymins, const vec3_t velocitymaxs, float sparkcount) |
void | CL_SpawnDecalParticleForPoint (const vec3_t org, float maxdist, float size, float alpha, int texnum, int color1, int color2) |
void | CL_SpawnDecalParticleForSurface (int hitent, const vec3_t org, const vec3_t normal, int color1, int color2, int texnum, float size, float alpha) |
static char * | LightCubemapNumToName (char *vabuf, size_t vasize, int lightcubemapnum, int flags) |
static void | particletextureblotch (unsigned char *data, float radius, float red, float green, float blue, float alpha) |
static void | particletextureinvert (unsigned char *data) |
static void | R_DrawParticle_TransparentCallback (const entity_render_t *ent, const rtlight_t *rtlight, int numsurfaces, int *surfacelist) |
void | R_DrawParticles (void) |
static void | R_InitBloodTextures (unsigned char *particletexturedata) |
static void | R_InitParticleTexture (void) |
static void | r_part_newmap (void) |
static void | r_part_shutdown (void) |
static void | r_part_start (void) |
void | R_Particles_Init (void) |
static void | setuptex (int texnum, unsigned char *data, unsigned char *particletexturedata) |
static unsigned char | shadebubble (float dx, float dy, vec3_t light) |
Variables | |
particleeffectinfo_t | baselineparticleeffectinfo |
cvar_t | cl_decals = {CF_CLIENT | CF_ARCHIVE, "cl_decals", "1", "enables decals (bullet holes, blood, etc)"} |
cvar_t | cl_decals_bias = {CF_CLIENT | CF_ARCHIVE, "cl_decals_bias", "0.125", "distance to bias decals from surface to prevent depth fighting"} |
cvar_t | cl_decals_fadetime = {CF_CLIENT | CF_ARCHIVE, "cl_decals_fadetime", "1", "how long decals take to fade away"} |
cvar_t | cl_decals_max = {CF_CLIENT | CF_ARCHIVE, "cl_decals_max", "4096", "maximum number of decals allowed to exist in the world at once"} |
cvar_t | cl_decals_models = {CF_CLIENT | CF_ARCHIVE, "cl_decals_models", "0", "enables decals on animated models"} |
cvar_t | cl_decals_newsystem_bloodsmears = {CF_CLIENT | CF_ARCHIVE, "cl_decals_newsystem_bloodsmears", "1", "enable use of particle velocity as decal projection direction rather than surface normal"} |
cvar_t | cl_decals_newsystem_immediatebloodstain = {CF_CLIENT | CF_ARCHIVE, "cl_decals_newsystem_immediatebloodstain", "2", "0: no on-spawn blood stains; 1: on-spawn blood stains for pt_blood; 2: always use on-spawn blood stains"} |
cvar_t | cl_decals_newsystem_intensitymultiplier = {CF_CLIENT | CF_ARCHIVE, "cl_decals_newsystem_intensitymultiplier", "2", "boosts intensity of decals (because the distance fade can make them hard to see otherwise)"} |
cvar_t | cl_decals_time = {CF_CLIENT | CF_ARCHIVE, "cl_decals_time", "20", "how long before decals start to fade away"} |
cvar_t | cl_particles = {CF_CLIENT | CF_ARCHIVE, "cl_particles", "1", "enables particle effects"} |
cvar_t | cl_particles_alpha = {CF_CLIENT | CF_ARCHIVE, "cl_particles_alpha", "1", "multiplies opacity of particles"} |
cvar_t | cl_particles_blood = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood", "1", "enables blood effects"} |
cvar_t | cl_particles_blood_alpha = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood_alpha", "1", "opacity of blood, does not affect decals"} |
cvar_t | cl_particles_blood_bloodhack = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood_bloodhack", "1", "make certain quake particle() calls create blood effects instead"} |
cvar_t | cl_particles_blood_decal_alpha = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood_decal_alpha", "1", "opacity of blood decal"} |
cvar_t | cl_particles_blood_decal_scalemax = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood_decal_scalemax", "2", "maximal random scale of decal"} |
cvar_t | cl_particles_blood_decal_scalemin = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood_decal_scalemin", "1.5", "minimal random scale of decal"} |
cvar_t | cl_particles_bubbles = {CF_CLIENT | CF_ARCHIVE, "cl_particles_bubbles", "1", "enables bubbles (used by multiple effects)"} |
cvar_t | cl_particles_bulletimpacts = {CF_CLIENT | CF_ARCHIVE, "cl_particles_bulletimpacts", "1", "enables bulletimpact effects"} |
cvar_t | cl_particles_collisions = {CF_CLIENT | CF_ARCHIVE, "cl_particles_collisions", "1", "allow costly collision detection on particles (sparks that bounce, particles not going through walls, blood hitting surfaces, etc)"} |
cvar_t | cl_particles_explosions_shell = {CF_CLIENT | CF_ARCHIVE, "cl_particles_explosions_shell", "0", "enables polygonal shell from explosions"} |
cvar_t | cl_particles_explosions_sparks = {CF_CLIENT | CF_ARCHIVE, "cl_particles_explosions_sparks", "1", "enables sparks from explosions"} |
cvar_t | cl_particles_forcetraileffects = {CF_CLIENT, "cl_particles_forcetraileffects", "0", "force trails to be displayed even if a non-trail draw primitive was used (debug/compat feature)"} |
cvar_t | cl_particles_quake = {CF_CLIENT | CF_ARCHIVE, "cl_particles_quake", "0", "0: Fancy particles; 1: Disc particles like GLQuake; 2: Square particles like software-rendered Quake"} |
cvar_t | cl_particles_quality = {CF_CLIENT | CF_ARCHIVE, "cl_particles_quality", "1", "multiplies number of particles"} |
cvar_t | cl_particles_rain = {CF_CLIENT | CF_ARCHIVE, "cl_particles_rain", "1", "enables rain effects"} |
cvar_t | cl_particles_size = {CF_CLIENT | CF_ARCHIVE, "cl_particles_size", "1", "multiplies particle size"} |
cvar_t | cl_particles_smoke = {CF_CLIENT | CF_ARCHIVE, "cl_particles_smoke", "1", "enables smoke (used by multiple effects)"} |
cvar_t | cl_particles_smoke_alpha = {CF_CLIENT | CF_ARCHIVE, "cl_particles_smoke_alpha", "0.5", "smoke brightness"} |
cvar_t | cl_particles_smoke_alphafade = {CF_CLIENT | CF_ARCHIVE, "cl_particles_smoke_alphafade", "0.55", "brightness fade per second"} |
cvar_t | cl_particles_snow = {CF_CLIENT | CF_ARCHIVE, "cl_particles_snow", "1", "enables snow effects"} |
cvar_t | cl_particles_sparks = {CF_CLIENT | CF_ARCHIVE, "cl_particles_sparks", "1", "enables sparks (used by multiple effects)"} |
cvar_t | cl_particles_visculling = {CF_CLIENT | CF_ARCHIVE, "cl_particles_visculling", "0", "perform a costly check if each particle is visible before drawing"} |
skinframe_t * | decalskinframe |
int | numparticleeffectinfo |
float | particle_color4f [MESHQUEUE_TRANSPARENT_BATCHSIZE *16] |
unsigned short | particle_elements [MESHQUEUE_TRANSPARENT_BATCHSIZE *6] |
float | particle_texcoord2f [MESHQUEUE_TRANSPARENT_BATCHSIZE *8] |
float | particle_vertex3f [MESHQUEUE_TRANSPARENT_BATCHSIZE *12] |
particleeffectinfo_t | particleeffectinfo [MAX_PARTICLEEFFECTINFO] |
char | particleeffectname [MAX_PARTICLEEFFECTNAME][64] |
int | particlefontcellheight |
int | particlefontcellwidth |
int | particlefontcols |
int | particlefontheight |
int | particlefontrows |
static rtexture_t * | particlefonttexture |
int | particlefontwidth |
static int | particlepalette [256] |
static particletexture_t | particletexture [MAX_PARTICLETEXTURES] |
static rtexturepool_t * | particletexturepool |
particletype_t | particletype [pt_total] |
cvar_t | r_drawdecals = {CF_CLIENT, "r_drawdecals", "1", "enables drawing of decals"} |
static cvar_t | r_drawdecals_drawdistance = {CF_CLIENT | CF_ARCHIVE, "r_drawdecals_drawdistance", "500", "decals further than drawdistance*size will not be drawn"} |
cvar_t | r_drawparticles = {CF_CLIENT, "r_drawparticles", "1", "enables drawing of particles"} |
static cvar_t | r_drawparticles_drawdistance = {CF_CLIENT | CF_ARCHIVE, "r_drawparticles_drawdistance", "2000", "particles further than drawdistance*size will not be drawn"} |
static cvar_t | r_drawparticles_nearclip_max = {CF_CLIENT | CF_ARCHIVE, "r_drawparticles_nearclip_max", "4", "particles closer than drawnearclip_min will be faded"} |
static cvar_t | r_drawparticles_nearclip_min = {CF_CLIENT | CF_ARCHIVE, "r_drawparticles_nearclip_min", "4", "particles closer than drawnearclip_min will not be drawn"} |
int | ramp1 [8] = {0x6f, 0x6d, 0x6b, 0x69, 0x67, 0x65, 0x63, 0x61} |
int | ramp2 [8] = {0x6f, 0x6e, 0x6d, 0x6c, 0x6b, 0x6a, 0x68, 0x66} |
int | ramp3 [8] = {0x6d, 0x6b, 6, 5, 4, 3} |
static const char * | standardeffectnames [EFFECT_TOTAL] |
static const int | tex_beam = 60 |
static const int | tex_blooddecal [8] = {16, 17, 18, 19, 20, 21, 22, 23} |
static const int | tex_bloodparticle [8] = {24, 25, 26, 27, 28, 29, 30, 31} |
static const int | tex_bubble = 62 |
static const int | tex_bulletdecal [8] = {8, 9, 10, 11, 12, 13, 14, 15} |
static const int | tex_particle = 63 |
static const int | tex_raindrop = 61 |
static const int | tex_rainsplash = 32 |
static const int | tex_smoke [8] = {0, 1, 2, 3, 4, 5, 6, 7} |
static const int | tex_square = 33 |
#define checkparms | ( | n | ) |
Referenced by CL_Particles_ParseEffectInfo().
#define PARTICLEEFFECT_DEFINED 2147483648U |
Definition at line 48 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), and CL_Particles_ParseEffectInfo().
#define PARTICLEEFFECT_FORCENEAREST 4 |
Definition at line 47 of file cl_particles.c.
Referenced by CL_Particles_ParseEffectInfo(), and LightCubemapNumToName().
#define PARTICLEEFFECT_NOTUNDERWATER 2 |
Definition at line 46 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), and CL_Particles_ParseEffectInfo().
#define PARTICLEEFFECT_UNDERWATER 1 |
Definition at line 45 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), and CL_Particles_ParseEffectInfo().
#define PARTICLEFONTSIZE (PARTICLETEXTURESIZE*8) |
Definition at line 2153 of file cl_particles.c.
Referenced by R_InitParticleTexture(), and setuptex().
#define PARTICLETEXTURESIZE 64 |
Definition at line 2152 of file cl_particles.c.
Referenced by particletextureblotch(), particletextureinvert(), R_InitBloodTextures(), R_InitParticleTexture(), and setuptex().
#define readbool | ( | var | ) |
Referenced by CL_Particles_ParseEffectInfo().
#define readfloat | ( | var | ) |
Referenced by CL_Particles_ParseEffectInfo().
#define readfloats | ( | array, | |
n ) |
Referenced by CL_Particles_ParseEffectInfo().
#define readint | ( | var | ) |
Referenced by CL_Particles_ParseEffectInfo().
#define readints | ( | array, | |
n ) |
Referenced by CL_Particles_ParseEffectInfo().
Definition at line 1811 of file cl_particles.c.
References cl, CL_NewParticle(), cl_particles, cos(), i, cvar_t::integer, lhrandom, m_bytenormals, entity_render_t::matrix, Matrix4x4_OriginFromMatrix(), NULL, NUMVERTEXNORMALS, client_state_t::oldtime, PARTICLE_BILLBOARD, particlepalette, PBLEND_ALPHA, pt_entityparticle, entity_t::render, sin(), tex_particle, client_state_t::time, and v.
Referenced by CL_UpdateNetworkEntityTrail().
|
static |
Definition at line 935 of file cl_particles.c.
References particle_t::alpha, cl_decals, particle_t::color, cvar_t::integer, particle_t::org, particletexture, pt_blood, R_DecalSystem_SplatEntities(), particletexture_t::s1, particletexture_t::s2, particle_t::size, particle_t::stainalpha, particle_t::staincolor, particle_t::stainsize, particle_t::staintexnum, particletexture_t::t1, particletexture_t::t2, tex_blooddecal, particle_t::typeindex, v, VectorCopy, VectorNormalize, and particle_t::vel.
Referenced by CL_NewParticlesFromEffectinfo(), and CL_ParticleEffect_Fallback().
particle_t * CL_NewParticle | ( | const vec3_t | sortorigin, |
unsigned short | ptypeindex, | ||
int | pcolor1, | ||
int | pcolor2, | ||
int | ptex, | ||
float | psize, | ||
float | psizeincrease, | ||
float | palpha, | ||
float | palphafade, | ||
float | pgravity, | ||
float | pbounce, | ||
float | px, | ||
float | py, | ||
float | pz, | ||
float | pvx, | ||
float | pvy, | ||
float | pvz, | ||
float | pairfriction, | ||
float | pliquidfriction, | ||
float | originjitter, | ||
float | velocityjitter, | ||
qbool | pqualityreduction, | ||
float | lifetime, | ||
float | stretch, | ||
pblend_t | blendmode, | ||
porientation_t | orientation, | ||
int | staincolor1, | ||
int | staincolor2, | ||
int | staintex, | ||
float | stainalpha, | ||
float | stainsize, | ||
float | angle, | ||
float | spin, | ||
float | tint[4] ) |
Creates a new particle and returns a pointer to it.
[in] | sortorigin | ? |
[in] | ptypeindex | Any of the pt_ enum values (pt_static, pt_blood, etc), see ptype_t near the top of this file |
[in] | pcolor1,pcolor2 | Minimum and maximum range of color, randomly interpolated with pcolor2 to decide particle color |
[in] | ptex | Any of the tex_ values such as tex_smoke[rand()&7] or tex_particle |
[in] | psize | Size of particle (or thickness for PARTICLE_SPARK and PARTICLE_*BEAM) |
[in] | psizeincrease | ? |
[in] | palpha | Opacity of particle as 0-255 (can be more than 255) |
[in] | palphafade | Rate of fade per second (so 256 would mean a 256 alpha particle would fade to nothing in 1 second) |
[in] | pgravity | How much effect gravity has on the particle (0-1) |
[in] | pbounce | How much bounce the particle has when it hits a surface (0-1), -1 makes a blood splat when it hits a surface, 0 does not even check for collisions |
[in] | px,py,pz | Starting origin of particle |
[in] | pvx,pvy,pvz | Starting velocity of particle |
[in] | pairfriction | How much the particle slows down, in air, per second (0-1 typically, can slowdown faster than 1) |
[in] | pliquidfriction | How much the particle slows down, in liquids, per second (0-1 typically, can slowdown faster than 1) |
[in] | originjitter | ? |
[in] | velocityjitter | ? |
[in] | pqualityreduction | ? |
[in] | lifetime | How long the particle can live (note it is also removed if alpha drops to nothing) |
[in] | stretch | ? |
[in] | blendmode | One of the PBLEND_ values |
[in] | orientation | One of the PARTICLE_ values |
[in] | staincolor1 | Minimum and maximum ranges of stain color, randomly interpolated to decide stain color (-1 to use none) |
[in] | staincolor2 | Minimum and maximum ranges of stain color, randomly interpolated to decide stain color (-1 to use none) |
[in] | staintex | Any of the tex_ values such as tex_smoke[rand()&7] or tex_particle |
[in] | angle | Base rotation of the particle geometry around its center normal |
[in] | spin | Rotation speed of the particle geometry around its center normal |
[in] | tint | The tint |
Definition at line 668 of file cl_particles.c.
References particle_t::airfriction, particle_t::alpha, particle_t::alphafade, particle_t::angle, b, particle_t::blendmode, particle_t::bounce, cl, CL_NewParticle(), cl_particles, CL_TraceLine(), collision_extendmovelength, particle_t::color, particle_t::delayedspawn, particle_t::die, trace_t::endpos, floor(), trace_t::fraction, client_state_t::free_particle, g, particle_t::gravity, i, Image_LinearFloatFromsRGB, int(), cvar_t::integer, lhrandom, particle_t::liquidfriction, client_state_t::max_particles, min, MOVE_NOMONSTERS, client_state_t::movevars_gravity, plane_t::normal, NULL, client_state_t::num_particles, particle_t::org, particle_t::orientation, PARTICLE_HBEAM, PARTICLE_ORIENTED_DOUBLESIDED, PARTICLE_SPARK, PARTICLE_VBEAM, client_state_t::particles, particletexture, PBLEND_ADD, PBLEND_INVMOD, trace_t::plane, pt_explode, pt_explode2, pt_rain, pt_raindecal, pt_snow, pt_spark, px, particle_t::qualityreduction, r, particle_t::size, particle_t::sizeincrease, particle_t::sortorigin, particle_t::spin, viddef_t::sRGB3D, particle_t::stainalpha, particle_t::staincolor, particle_t::stainsize, particle_t::staintexnum, particle_t::stretch, SUPERCONTENTS_BODY, SUPERCONTENTS_LIQUIDSMASK, SUPERCONTENTS_SOLID, particletexture_t::t1, particletexture_t::t2, tex_particle, tex_rainsplash, particle_t::texnum, client_state_t::time, particle_t::time2, particle_t::typeindex, v, cvar_t::value, VectorCopy, VectorMA, VectorRandom, particle_t::vel, and vid.
Referenced by CL_EntityParticles(), CL_NewParticle(), CL_NewParticlesFromEffectinfo(), CL_NewQuakeParticle(), CL_ParticleCube(), CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), CL_ParticleExplosion2(), CL_ParticleRain(), CL_ReadPointFile_f(), CL_Smoke(), CL_Sparks(), VM_CL_SpawnParticle(), and VM_CL_SpawnParticleDelayed().
|
static |
Definition at line 1569 of file cl_particles.c.
References particleeffectinfo_t::airfriction, particleeffectinfo_t::alpha, angles, AnglesFromVectors(), AngleVectors(), particleeffectinfo_t::blendmode, particleeffectinfo_t::bounce, bound, CL_AllocLightFlash(), cl_decals_newsystem_immediatebloodstain, CL_ImmediateBloodStain(), CL_NewParticle(), CL_ParticleEffect_Fallback(), cl_particles, cl_particles_blood, cl_particles_bubbles, cl_particles_forcetraileffects, cl_particles_quake, cl_particles_quality, cl_particles_rain, cl_particles_smoke, cl_particles_snow, cl_particles_sparks, CL_PointSuperContents, CL_SpawnDecalParticleForPoint(), particleeffectinfo_t::color, Con_DPrintf(), particleeffectinfo_t::countabsolute, particleeffectinfo_t::countmultiplier, particleeffectinfo_t::effectnameindex, particleeffectinfo_t::flags, forward, particleeffectinfo_t::gravity, int(), cvar_t::integer, lhrandom, particleeffectinfo_t::lightcolor, particleeffectinfo_t::lightcorona, particleeffectinfo_t::lightcubemapnum, LightCubemapNumToName(), LIGHTFLAG_NORMALMODE, LIGHTFLAG_REALTIMEMODE, particleeffectinfo_t::lightradiusfade, particleeffectinfo_t::lightradiusstart, r_refdef_scene_t::lights, particleeffectinfo_t::lightshadow, particleeffectinfo_t::lighttime, particleeffectinfo_t::liquidfriction, Matrix4x4_CreateTranslate(), Matrix4x4_Scale(), MAX_DLIGHTS, MAX_PARTICLEEFFECTINFO, MAX_PARTICLEEFFECTNAME, min, NULL, r_refdef_scene_t::numlights, particleeffectinfo_t::orientation, particleeffectinfo_t::originjitter, particleeffectinfo_t::originoffset, PARTICLE_HBEAM, particleeffectinfo_t::particleaccumulator, PARTICLEEFFECT_DEFINED, PARTICLEEFFECT_NOTUNDERWATER, PARTICLEEFFECT_UNDERWATER, particleeffectinfo, particleeffectname, particleeffectinfo_t::particletype, pt_blood, pt_bubble, pt_decal, pt_rain, pt_smoke, pt_snow, pt_spark, r_refdef, R_RTLight_Update(), particleeffectinfo_t::relativeoriginoffset, particleeffectinfo_t::relativevelocityoffset, right, particleeffectinfo_t::rotate, r_refdef_t::scene, particleeffectinfo_t::size, particleeffectinfo_t::stainalpha, particleeffectinfo_t::staincolor, particleeffectinfo_t::stainsize, particleeffectinfo_t::staintex, particleeffectinfo_t::stretchfactor, SUPERCONTENTS_SLIME, SUPERCONTENTS_WATER, r_refdef_scene_t::templights, particleeffectinfo_t::tex, particleeffectinfo_t::time, particleeffectinfo_t::trailspacing, underwater, up, cvar_t::value, Vector4Lerp, Vector4Set, VectorCopy, VectorLength, VectorLerp, VectorMA, VectorMAM, VectorMAMAM, VectorMAMAMAM, VectorNormalize, VectorRandom, VectorSubtract, velocity, particleeffectinfo_t::velocityjitter, particleeffectinfo_t::velocitymultiplier, and particleeffectinfo_t::velocityoffset.
Referenced by CL_ParticleBox(), CL_ParticleEffect_Fallback(), and CL_ParticleTrail().
particle_t * CL_NewQuakeParticle | ( | const vec3_t | origin, |
const unsigned short | ptypeindex, | ||
const int | color_1, | ||
const int | color_2, | ||
const float | gravity, | ||
const float | offset_x, | ||
const float | offset_y, | ||
const float | offset_z, | ||
const float | velocity_offset_x, | ||
const float | velocity_offset_y, | ||
const float | velocity_offset_z, | ||
const float | air_friction, | ||
const float | liquid_friction, | ||
const float | origin_jitter, | ||
const float | velocity_jitter, | ||
const float | lifetime ) |
Creates a simple particle, a square like Quake, or a disc like GLQuake.
[in] | origin | ? |
[in] | color_1,color_2 | Minimum and maximum range of color, randomly interpolated with pcolor2 to decide particle color |
[in] | gravity | How much effect gravity has on the particle (0-1) |
[in] | offset_x,offset_y,offset_z | Starting origin of particle |
[in] | velocity_offset_x,velocity_offset_y,velocity_offset_z | Starting velocity of particle |
[in] | air_friction | How much the particle slows down, in air, per second (0-1 typically, can slowdown faster than 1) |
[in] | liquid_friction | How much the particle slows down, in liquids, per second (0-1 typically, can slowdown faster than 1) |
[in] | origin_jitter | ? |
[in] | velocity_jitter | ? |
[in] | lifetime | How long the particle can live (note it is also removed if alpha drops to nothing) |
Definition at line 869 of file cl_particles.c.
References CL_NewParticle(), cl_particles_quake, cvar_t::integer, NULL, origin, PARTICLE_BILLBOARD, PBLEND_ALPHA, tex_particle, tex_square, and texture.
Referenced by CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), and CL_ParticleExplosion2().
Definition at line 1914 of file cl_particles.c.
References cl_message, CL_ParticleEffect(), cls, color, count, dir, EFFECT_SVC_PARTICLE, i, MSG_ReadByte, MSG_ReadChar, MSG_ReadVector(), NULL, and client_static_t::protocol.
Referenced by CL_ParseServerMessage().
|
static |
Definition at line 2189 of file cl_particles.c.
References height, particlefontcellheight, particlefontcellwidth, particlefontcols, particlefontrows, and width.
Referenced by R_InitParticleTexture(), and setuptex().
void CL_ParticleBox | ( | int | effectnameindex, |
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 ) |
Definition at line 1795 of file cl_particles.c.
References CL_NewParticlesFromEffectinfo().
Referenced by CL_ParticleEffect(), and VM_CL_boxparticles().
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 ) |
Definition at line 2073 of file cl_particles.c.
References CL_NewParticle(), cl_particles, cl_particles_quality, count, dir, int(), cvar_t::integer, lhrandom, maxs, mins, NULL, PARTICLE_BILLBOARD, particlepalette, PBLEND_ALPHA, pt_alphastatic, tex_particle, cvar_t::value, and VectorMAM.
Referenced by CL_ParseTempEntity(), and VM_CL_te_particlecube().
void CL_ParticleEffect | ( | int | effectnameindex, |
float | pcount, | ||
const vec3_t | originmins, | ||
const vec3_t | originmaxs, | ||
const vec3_t | velocitymins, | ||
const vec3_t | velocitymaxs, | ||
entity_t * | ent, | ||
int | palettecolor ) |
Definition at line 1801 of file cl_particles.c.
References CL_ParticleBox(), and NULL.
Referenced by CL_ParseParticleEffect(), CL_ParsePointParticles(), CL_ParsePointParticles1(), CL_ParseTempEntity(), VM_CL_particle(), VM_CL_pointparticles(), VM_CL_te_blood(), VM_CL_te_bloodshower(), VM_CL_te_explosion(), VM_CL_te_explosionquad(), VM_CL_te_flamejet(), VM_CL_te_gunshot(), VM_CL_te_gunshotquad(), VM_CL_te_knightspike(), VM_CL_te_lavasplash(), VM_CL_te_plasmaburn(), VM_CL_te_smallflash(), VM_CL_te_spark(), VM_CL_te_spike(), VM_CL_te_spikequad(), VM_CL_te_superspike(), VM_CL_te_superspikequad(), VM_CL_te_tarexplosion(), VM_CL_te_teleport(), and VM_CL_te_wizspike().
|
static |
Definition at line 1024 of file cl_particles.c.
References CL_AllocLightFlash(), cl_decals_newsystem_immediatebloodstain, CL_ImmediateBloodStain(), CL_NewParticle(), CL_NewParticlesFromEffectinfo(), CL_NewQuakeParticle(), CL_ParticleExplosion(), cl_particles, cl_particles_blood, cl_particles_blood_alpha, cl_particles_blood_bloodhack, cl_particles_bubbles, cl_particles_bulletimpacts, cl_particles_quake, cl_particles_quality, cl_particles_smoke, cl_particles_smoke_alpha, cl_particles_smoke_alphafade, cl_particles_sparks, CL_PointSuperContents, CL_Smoke(), CL_Sparks(), CL_SpawnDecalParticleForPoint(), color, Con_DPrintf(), count, dir, EFFECT_EF_FLAME, EFFECT_EF_STARDUST, EFFECT_SVC_PARTICLE, EFFECT_TE_BLOOD, EFFECT_TE_EXPLOSION, EFFECT_TE_EXPLOSIONQUAD, EFFECT_TE_FLAMEJET, EFFECT_TE_GUNSHOT, EFFECT_TE_GUNSHOTQUAD, EFFECT_TE_KNIGHTSPIKE, EFFECT_TE_LAVASPLASH, EFFECT_TE_PLASMABURN, EFFECT_TE_SMALLFLASH, EFFECT_TE_SPARK, EFFECT_TE_SPIKE, EFFECT_TE_SPIKEQUAD, EFFECT_TE_SUPERSPIKE, EFFECT_TE_SUPERSPIKEQUAD, EFFECT_TE_TAREXPLOSION, EFFECT_TE_TEI_BIGEXPLOSION, EFFECT_TE_TEI_G3, EFFECT_TE_TEI_PLASMAHIT, EFFECT_TE_TEI_SMOKE, EFFECT_TE_TELEPORT, EFFECT_TE_WIZSPIKE, EFFECT_TR_BLOOD, EFFECT_TR_GLOWTRAIL, EFFECT_TR_GRENADE, EFFECT_TR_KNIGHTSPIKE, EFFECT_TR_NEHAHRASMOKE, EFFECT_TR_NEXUIZPLASMA, EFFECT_TR_ROCKET, EFFECT_TR_SLIGHTBLOOD, EFFECT_TR_VORESPIKE, EFFECT_TR_WIZSPIKE, f, GAME_GOODVSBAD2, GAME_PRYDON, gamemode, i, cvar_t::integer, lhrandom, LIGHTFLAG_NORMALMODE, LIGHTFLAG_REALTIMEMODE, r_refdef_scene_t::lights, Matrix4x4_CreateFromQuakeEntity(), Matrix4x4_CreateTranslate(), MAX_DLIGHTS, NULL, r_refdef_scene_t::numlights, PARTICLE_BILLBOARD, PARTICLE_HBEAM, PARTICLE_SPARK, particleeffectname, particlepalette, PBLEND_ADD, PBLEND_ALPHA, PBLEND_INVMOD, entity_t::persistent, pt_alphastatic, pt_beam, pt_blood, pt_bubble, pt_smoke, pt_spark, pt_static, r, r_refdef, R_RTLight_Update(), R_Stain(), ramp3, r_refdef_t::scene, SUPERCONTENTS_SLIME, SUPERCONTENTS_WATER, r_refdef_scene_t::templights, tex_beam, tex_bloodparticle, tex_bubble, tex_bulletdecal, tex_particle, tex_smoke, entity_persistent_t::trail_time, cvar_t::value, Vector4Set, VectorLength, VectorLerp, VectorMA, VectorNormalize, VectorNormalizeLength(), VectorSet, and VectorSubtract.
Referenced by CL_NewParticlesFromEffectinfo().
int CL_ParticleEffectIndexForName | ( | const char * | name | ) |
Definition at line 481 of file cl_particles.c.
References i, MAX_PARTICLEEFFECTNAME, name, and particleeffectname.
Referenced by VM_CL_particleeffectnum().
const char * CL_ParticleEffectNameForIndex | ( | int | i | ) |
Definition at line 490 of file cl_particles.c.
References i, MAX_PARTICLEEFFECTNAME, NULL, and particleeffectname.
Definition at line 1939 of file cl_particles.c.
References CL_NewParticle(), CL_NewQuakeParticle(), cl_particles, cl_particles_bubbles, cl_particles_explosions_shell, cl_particles_explosions_sparks, cl_particles_quake, cl_particles_quality, cl_particles_sparks, CL_PointSuperContents, CL_SpawnDecalParticleForPoint(), CL_TraceLine(), collision_extendmovelength, color, trace_t::endpos, trace_t::fraction, i, cvar_t::integer, lhrandom, MOVE_NOMONSTERS, NULL, PARTICLE_BILLBOARD, PARTICLE_SPARK, particlepalette, PBLEND_ADD, pt_bubble, pt_explode, pt_explode2, pt_spark, r, R_NewExplosion(), R_Stain(), ramp1, ramp2, SUPERCONTENTS_SLIME, SUPERCONTENTS_SOLID, SUPERCONTENTS_WATER, tex_bubble, tex_bulletdecal, tex_particle, v, v2, cvar_t::value, VectorMA, VectorRandom, VectorScale, and VectorSubtract.
Referenced by CL_ParseTempEntity(), CL_ParticleEffect_Fallback(), and VM_CL_te_explosionrgb().
Definition at line 2034 of file cl_particles.c.
References CL_NewParticle(), CL_NewQuakeParticle(), cl_particles, cl_particles_quake, cl_particles_quality, i, cvar_t::integer, lhrandom, NULL, PARTICLE_BILLBOARD, particlepalette, PBLEND_ALPHA, pt_alphastatic, tex_particle, and cvar_t::value.
Referenced by CL_ParseTempEntity(), and VM_CL_te_explosion2().
void CL_ParticleRain | ( | const vec3_t | mins, |
const vec3_t | maxs, | ||
const vec3_t | dir, | ||
int | count, | ||
int | colorbase, | ||
int | type ) |
Definition at line 2088 of file cl_particles.c.
References cl, CL_NewParticle(), cl_particles, cl_particles_quality, cl_particles_rain, cl_particles_snow, Con_Printf(), count, dir, GAME_GOODVSBAD2, gamemode, int(), cvar_t::integer, lhrandom, max, maxs, mins, NULL, PARTICLE_BILLBOARD, particle_size, PARTICLE_SPARK, particlepalette, PBLEND_ADD, pt_rain, pt_snow, tex_particle, type, cvar_t::value, VectorSet, and client_state_t::worldmodel.
Referenced by CL_ParseTempEntity(), VM_CL_te_particlerain(), and VM_CL_te_particlesnow().
Definition at line 586 of file cl_particles.c.
References CF_CLIENT, cl_decals, cl_decals_bias, cl_decals_fadetime, cl_decals_max, cl_decals_models, cl_decals_newsystem_bloodsmears, cl_decals_newsystem_immediatebloodstain, cl_decals_newsystem_intensitymultiplier, cl_decals_time, cl_particles, cl_particles_alpha, cl_particles_blood, cl_particles_blood_alpha, cl_particles_blood_bloodhack, cl_particles_blood_decal_alpha, cl_particles_blood_decal_scalemax, cl_particles_blood_decal_scalemin, cl_particles_bubbles, cl_particles_bulletimpacts, cl_particles_collisions, cl_particles_explosions_shell, cl_particles_explosions_sparks, cl_particles_forcetraileffects, CL_Particles_LoadEffectInfo_f(), cl_particles_quake, cl_particles_quality, cl_particles_rain, cl_particles_size, cl_particles_smoke, cl_particles_smoke_alpha, cl_particles_smoke_alphafade, cl_particles_snow, cl_particles_sparks, cl_particles_visculling, CL_ReadPointFile_f(), Cmd_AddCommand(), and Cvar_RegisterVariable().
Referenced by CL_Init().
|
static |
Definition at line 538 of file cl_particles.c.
References cl, CL_Particles_ParseEffectInfo(), dp_strlcpy, dpsnprintf(), EFFECT_TOTAL, FS_LoadFile(), i, MAX_QPATH, Mem_Free, numparticleeffectinfo, particleeffectinfo, particleeffectname, standardeffectnames, tempmempool, client_state_t::worldbasename, and client_state_t::worldnamenoextension.
Referenced by CL_Particles_LoadEffectInfo_f(), r_part_newmap(), and r_part_start().
|
static |
Definition at line 575 of file cl_particles.c.
References CL_Particles_LoadEffectInfo(), cmd(), Cmd_Argc(), Cmd_Argv(), and NULL.
Referenced by CL_Particles_Init().
|
static |
Definition at line 314 of file cl_particles.c.
References particleeffectinfo_t::airfriction, particleeffectinfo_t::alpha, argv(), baselineparticleeffectinfo, particleeffectinfo_t::blendmode, particletype_t::blendmode, particleeffectinfo_t::bounce, checkparms, particleeffectinfo_t::color, COM_ParseToken_Simple(), com_token, Con_Printf(), particleeffectinfo_t::countabsolute, particleeffectinfo_t::countmultiplier, dp_strlcpy, particleeffectinfo_t::effectnameindex, particleeffectinfo_t::flags, particleeffectinfo_t::gravity, i, int(), particleeffectinfo_t::lightcolor, particleeffectinfo_t::lightcorona, particleeffectinfo_t::lightcubemapnum, particleeffectinfo_t::lightradiusfade, particleeffectinfo_t::lightradiusstart, particleeffectinfo_t::lightshadow, particleeffectinfo_t::lighttime, particleeffectinfo_t::liquidfriction, MAX_PARTICLEEFFECTINFO, MAX_PARTICLEEFFECTNAME, NULL, numparticleeffectinfo, particleeffectinfo_t::orientation, particletype_t::orientation, particleeffectinfo_t::originjitter, particleeffectinfo_t::originoffset, PARTICLE_BILLBOARD, PARTICLE_HBEAM, PARTICLE_ORIENTED_DOUBLESIDED, PARTICLE_SPARK, PARTICLEEFFECT_DEFINED, PARTICLEEFFECT_FORCENEAREST, PARTICLEEFFECT_NOTUNDERWATER, PARTICLEEFFECT_UNDERWATER, particleeffectinfo, particleeffectname, particleeffectinfo_t::particletype, particletype, PBLEND_ADD, PBLEND_ALPHA, PBLEND_INVMOD, pt_alphastatic, pt_beam, pt_blood, pt_bubble, pt_decal, pt_entityparticle, pt_rain, pt_raindecal, pt_smoke, pt_snow, pt_spark, pt_static, readbool, readfloat, readfloats, readint, readints, particleeffectinfo_t::relativeoriginoffset, particleeffectinfo_t::relativevelocityoffset, particleeffectinfo_t::rotate, particleeffectinfo_t::size, particleeffectinfo_t::stainalpha, particleeffectinfo_t::staincolor, particleeffectinfo_t::stainsize, particleeffectinfo_t::staintex, particleeffectinfo_t::stretchfactor, particleeffectinfo_t::tex, particleeffectinfo_t::time, particleeffectinfo_t::trailspacing, particleeffectinfo_t::velocityjitter, particleeffectinfo_t::velocitymultiplier, and particleeffectinfo_t::velocityoffset.
Referenced by CL_Particles_LoadEffectInfo().
void CL_ParticleTrail | ( | int | effectnameindex, |
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 ) |
Definition at line 1790 of file cl_particles.c.
References CL_NewParticlesFromEffectinfo().
Referenced by CL_LinkNetworkEntity(), CL_ParseTempEntity(), CL_ParseTrailParticles(), CL_UpdateNetworkEntityTrail(), VM_CL_boxparticles(), and VM_CL_trailparticles().
void CL_ReadPointFile_f | ( | cmd_state_t * | cmd | ) |
Definition at line 1839 of file cl_particles.c.
References cl, CL_NewParticle(), Con_Printf(), dpsnprintf(), FS_LoadFile(), client_state_t::max_particles, MAX_QPATH, Mem_Free, name, NULL, client_state_t::num_particles, PARTICLE_BILLBOARD, PARTICLE_HBEAM, particlepalette, PBLEND_ADD, PBLEND_ALPHA, pt_alphastatic, pt_beam, r, tempmempool, tex_beam, tex_particle, VectorClear, VectorCopy, client_state_t::worldmodel, and client_state_t::worldnamenoextension.
Referenced by CL_Particles_Init().
|
static |
Definition at line 2061 of file cl_particles.c.
References CL_NewParticle(), cl_particles_quality, cl_particles_smoke, cvar_t::integer, lhrandom, NULL, PARTICLE_BILLBOARD, PBLEND_ADD, pt_smoke, tex_smoke, cvar_t::value, and VectorMAM.
Referenced by CL_ParticleEffect_Fallback().
|
static |
Definition at line 2049 of file cl_particles.c.
References cl, CL_NewParticle(), cl_particles_quality, cl_particles_sparks, cvar_t::integer, lhrandom, client_state_t::movevars_gravity, NULL, PARTICLE_SPARK, particlepalette, PBLEND_ADD, pt_spark, tex_particle, cvar_t::value, and VectorMAM.
Referenced by CL_ParticleEffect_Fallback().
void CL_SpawnDecalParticleForPoint | ( | const vec3_t | org, |
float | maxdist, | ||
float | size, | ||
float | alpha, | ||
int | texnum, | ||
int | color1, | ||
int | color2 ) |
Definition at line 981 of file cl_particles.c.
References alpha, CL_SpawnDecalParticleForSurface(), CL_TraceLine(), collision_extendmovelength, trace_t::endpos, trace_t::fraction, trace_t::hitq3surfaceflags, i, MOVE_NOMONSTERS, plane_t::normal, NULL, trace_t::plane, Q3SURFACEFLAG_NOMARKS, size, SUPERCONTENTS_SKY, SUPERCONTENTS_SOLID, cvar_t::value, VectorCopy, VectorMA, and VectorRandom.
Referenced by CL_NewParticlesFromEffectinfo(), CL_ParticleEffect_Fallback(), and CL_ParticleExplosion().
void CL_SpawnDecalParticleForSurface | ( | int | hitent, |
const vec3_t | org, | ||
const vec3_t | normal, | ||
int | color1, | ||
int | color2, | ||
int | texnum, | ||
float | size, | ||
float | alpha ) |
Definition at line 959 of file cl_particles.c.
References entity_render_t::allowdecals, alpha, cl, cl_decals, color, client_state_t::entities, Image_LinearFloatFromsRGB, int(), cvar_t::integer, lhrandom, normal, particletexture, R_DecalSystem_SplatEntities(), entity_t::render, size, viddef_t::sRGB3D, and vid.
Referenced by CL_SpawnDecalParticleForPoint(), and R_DrawParticles().
|
static |
Definition at line 1011 of file cl_particles.c.
References flags, NULL, PARTICLEEFFECT_FORCENEAREST, and va().
Referenced by CL_NewParticlesFromEffectinfo().
|
static |
Definition at line 2207 of file cl_particles.c.
References alpha, blue, data, f, green, int(), lhrandom, PARTICLETEXTURESIZE, sqrt(), x, and y.
Referenced by R_InitBloodTextures(), and R_InitParticleTexture().
|
static |
Definition at line 2249 of file cl_particles.c.
References data, i, and PARTICLETEXTURESIZE.
Referenced by R_InitBloodTextures(), and R_InitParticleTexture().
|
static |
Definition at line 2624 of file cl_particles.c.
References a, alpha, particle_t::alpha, r_refdef_scene_t::ambientintensity, particle_t::angle, particle_t::blendmode, cl, cl_particles_alpha, cl_particles_size, particle_t::color, r_refdef_view_t::colorscale, cos(), particle_t::delayedspawn, dir, DotProduct, r_refdef_t::fogcolor, r_refdef_t::fogenabled, r_refdef_view_t::forward, GL_BlendFunc(), GL_CullFace(), GL_DepthMask(), GL_DepthRange(), GL_DepthTest(), GL_NONE, GL_ONE, GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR, GL_PolygonOffset(), GL_ZERO, cvar_t::integer, r_refdef_view_t::left, particletype_t::lighting, r_refdef_scene_t::lightmapintensity, LP_DYNLIGHT, LP_LIGHTMAP, LP_RTWORLD, M_PI, min, NULL, particle_t::org, particle_t::orientation, r_refdef_view_t::origin, PARTICLE_BILLBOARD, particle_color4f, particle_elements, PARTICLE_HBEAM, PARTICLE_ORIENTED_DOUBLESIDED, PARTICLE_SPARK, particle_texcoord2f, PARTICLE_VBEAM, particle_vertex3f, client_state_t::particles, particletexture, particletype, PBLEND_ADD, PBLEND_ALPHA, PBLEND_INVALID, PBLEND_INVMOD, R_CalcBeam_Vertex3f(), R_CompleteLightPoint(), R_DebugLine(), r_drawparticles_nearclip_max, r_drawparticles_nearclip_min, R_Mesh_Draw(), R_Mesh_PrepareVertices_Generic_Arrays(), r_refdef, R_SetupShader_Generic(), r_showparticleedges, r_stat_particles, right, RSurf_ActiveModelEntity(), RSurf_FogVertex(), particletexture_t::s1, particletexture_t::s2, r_refdef_t::scene, sin(), particle_t::size, size, particle_t::spin, r_refdef_t::stats, particle_t::stretch, particletexture_t::t1, particletexture_t::t2, particle_t::texnum, particletexture_t::texture, texture, r_refdef_scene_t::time, particle_t::typeindex, r_refdef_view_t::up, up, v, cvar_t::value, Vector4Copy, Vector4Set, VectorLength, VectorMA, VectorMAM, VectorNormalize, VectorNormalize2, VectorScale, VectorSubtract, VectorVectors(), particle_t::vel, r_refdef_t::view, and r_refdef_scene_t::worldentity.
Referenced by R_DrawParticles().
Definition at line 2907 of file cl_particles.c.
References a, particle_t::airfriction, particle_t::alpha, particle_t::alphafade, particle_t::bounce, bound, model_t::brush, CHECKPVSBIT, cl, cl_decals, cl_decals_newsystem_bloodsmears, cl_particles_blood_decal_alpha, cl_particles_blood_decal_scalemax, cl_particles_blood_decal_scalemin, cl_particles_collisions, cl_particles_visculling, CL_PointSuperContents, CL_SpawnDecalParticleForSurface(), CL_TraceLine(), cls, mleaf_t::clusterindex, collision_extendmovelength, color, particle_t::color, particle_t::delayedspawn, particle_t::die, DotProduct, trace_t::endpos, f, r_refdef_view_t::forward, trace_t::fraction, frametime, client_state_t::free_particle, particle_t::gravity, trace_t::hitq3surfaceflags, trace_t::hitsupercontents, i, int(), cvar_t::integer, client_static_t::levelmempool, lhrandom, particle_t::liquidfriction, MAX_PARTICLES, client_state_t::max_particles, Mem_Alloc, Mem_Free, min, MOVE_NORMAL, client_state_t::movevars_gravity, plane_t::normal, NULL, client_state_t::num_particles, particle_t::org, particle_t::orientation, r_refdef_view_t::origin, PARTICLE_HBEAM, PARTICLE_SPARK, PARTICLE_VBEAM, particlepalette, client_state_t::particles, client_state_t::particles_updatetime, trace_t::plane, model_brush_t::PointInLeaf, pt_beam, pt_blood, pt_bubble, pt_entityparticle, pt_explode, pt_explode2, pt_rain, pt_snow, pt_static, Q3SURFACEFLAG_NOIMPACT, Q3SURFACEFLAG_NOMARKS, r_refdef_view_t::quality, R_DrawParticle_TransparentCallback(), r_drawparticles, r_drawparticles_drawdistance, r_drawparticles_nearclip_min, R_MeshQueue_AddTransparent(), r_refdef, R_Stain(), ramp1, ramp2, r_refdef_t::scene, particle_t::size, particle_t::sizeincrease, particle_t::sortorigin, particle_t::stainalpha, particle_t::staincolor, particle_t::stainsize, particle_t::staintexnum, trace_t::startsupercontents, SUPERCONTENTS_LAVA, SUPERCONTENTS_LIQUIDSMASK, SUPERCONTENTS_NODROP, SUPERCONTENTS_SLIME, SUPERCONTENTS_SOLID, SUPERCONTENTS_WATER, tex_blooddecal, client_state_t::time, particle_t::time2, TRANSPARENTSORT_DISTANCE, particle_t::typeindex, r_refdef_view_t::useperspective, cvar_t::value, VectorClear, VectorCopy, VectorDistance2, VectorLength, VectorLength2, VectorMA, VectorNormalize, VectorScale, particle_t::vel, r_refdef_t::view, r_refdef_t::viewcache, r_refdef_viewcache_t::world_novis, r_refdef_viewcache_t::world_pvsbits, and r_refdef_scene_t::worldmodel.
Referenced by R_RenderScene().
|
static |
Definition at line 2261 of file cl_particles.c.
References data, i, Mem_Alloc, Mem_Free, min, particletextureblotch(), particletextureinvert(), PARTICLETEXTURESIZE, setuptex(), tempmempool, tex_blooddecal, and tex_bloodparticle.
Referenced by R_InitParticleTexture().
Definition at line 2297 of file cl_particles.c.
References skinframe_t::base, bound, buf, CL_Particle_PixelCoordsForTexnum(), COM_ParseToken_Simple(), com_token, Con_Printf(), data, decalskinframe, dp_strlcpy, f, fabs(), fractalnoise(), FS_LoadFile(), i, image_height, image_width, Image_WriteTGABGRA(), int(), loadtextureimage(), MAX_PARTICLETEXTURES, MAX_QPATH, Mem_Alloc, Mem_Free, noise1, noise2, noise3, NULL, particlefontcellheight, particlefontcellwidth, particlefontcols, particlefontheight, particlefontrows, PARTICLEFONTSIZE, particlefonttexture, particlefontwidth, particletexture, particletextureblotch(), particletextureinvert(), particletexturepool, PARTICLETEXTURESIZE, R_InitBloodTextures(), R_LoadTexture2D(), R_SkinFrame_LoadExternal(), R_SkinFrame_LoadInternalBGRA(), particletexture_t::s1, particletexture_t::s2, setuptex(), shadebubble(), sqrt(), viddef_t::sRGB3D, particletexture_t::t1, particletexture_t::t2, tempmempool, tex_beam, tex_bubble, tex_bulletdecal, tex_particle, tex_raindrop, tex_rainsplash, tex_smoke, TEXF_ALPHA, TEXF_FORCELINEAR, TEXF_RGBMULTIPLYBYALPHA, particletexture_t::texture, texture, TEXTYPE_BGRA, VectorNormalize, vid, w, x, and y.
Referenced by r_part_start().
Definition at line 2592 of file cl_particles.c.
References CL_Particles_LoadEffectInfo(), decalskinframe, NULL, and R_SkinFrame_MarkUsed().
Referenced by R_Particles_Init().
Definition at line 2587 of file cl_particles.c.
References particletexturepool, and R_FreeTexturePool().
Referenced by R_Particles_Init().
Definition at line 2576 of file cl_particles.c.
References CL_Particles_LoadEffectInfo(), i, NULL, palette_rgb, particlepalette, particletexturepool, R_AllocTexturePool(), and R_InitParticleTexture().
Referenced by R_Particles_Init().
Definition at line 2602 of file cl_particles.c.
References Cvar_RegisterVariable(), i, MESHQUEUE_TRANSPARENT_BATCHSIZE, NULL, particle_elements, r_drawdecals, r_drawdecals_drawdistance, r_drawparticles, r_drawparticles_drawdistance, r_drawparticles_nearclip_max, r_drawparticles_nearclip_min, r_part_newmap(), r_part_shutdown(), r_part_start(), and R_RegisterModule().
Referenced by Render_Init().
|
static |
Definition at line 2197 of file cl_particles.c.
References CL_Particle_PixelCoordsForTexnum(), data, PARTICLEFONTSIZE, PARTICLETEXTURESIZE, Sys_Error(), w, and y.
Referenced by R_InitBloodTextures(), and R_InitParticleTexture().
Definition at line 2155 of file cl_particles.c.
References bound, DotProduct, f, normal, and VectorNormalize.
Referenced by R_InitParticleTexture().
particleeffectinfo_t baselineparticleeffectinfo |
Definition at line 201 of file cl_particles.c.
Referenced by CL_Particles_ParseEffectInfo().
cvar_t cl_decals = {CF_CLIENT | CF_ARCHIVE, "cl_decals", "1", "enables decals (bullet holes, blood, etc)"} |
Definition at line 303 of file cl_particles.c.
Referenced by CL_ImmediateBloodStain(), CL_Particles_Init(), CL_SpawnDecalParticleForSurface(), M_Menu_Options_Effects_AdjustSliders(), M_Options_Effects_Draw(), and R_DrawParticles().
cvar_t cl_decals_bias = {CF_CLIENT | CF_ARCHIVE, "cl_decals_bias", "0.125", "distance to bias decals from surface to prevent depth fighting"} |
Definition at line 310 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DecalSystem_SplatTriangle().
cvar_t cl_decals_fadetime = {CF_CLIENT | CF_ARCHIVE, "cl_decals_fadetime", "1", "how long decals take to fade away"} |
Definition at line 305 of file cl_particles.c.
Referenced by CL_Particles_Init(), R_DrawModelDecals_Entity(), and R_DrawModelDecals_FadeEntity().
cvar_t cl_decals_max = {CF_CLIENT | CF_ARCHIVE, "cl_decals_max", "4096", "maximum number of decals allowed to exist in the world at once"} |
Definition at line 311 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DrawModelDecals_FadeEntity().
cvar_t cl_decals_models = {CF_CLIENT | CF_ARCHIVE, "cl_decals_models", "0", "enables decals on animated models"} |
Definition at line 309 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DecalSystem_SplatEntity().
cvar_t cl_decals_newsystem_bloodsmears = {CF_CLIENT | CF_ARCHIVE, "cl_decals_newsystem_bloodsmears", "1", "enable use of particle velocity as decal projection direction rather than surface normal"} |
Definition at line 308 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DrawParticles().
cvar_t cl_decals_newsystem_immediatebloodstain = {CF_CLIENT | CF_ARCHIVE, "cl_decals_newsystem_immediatebloodstain", "2", "0: no on-spawn blood stains; 1: on-spawn blood stains for pt_blood; 2: always use on-spawn blood stains"} |
Definition at line 307 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), CL_ParticleEffect_Fallback(), and CL_Particles_Init().
cvar_t cl_decals_newsystem_intensitymultiplier = {CF_CLIENT | CF_ARCHIVE, "cl_decals_newsystem_intensitymultiplier", "2", "boosts intensity of decals (because the distance fade can make them hard to see otherwise)"} |
Definition at line 306 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DecalSystem_SplatTriangle().
cvar_t cl_decals_time = {CF_CLIENT | CF_ARCHIVE, "cl_decals_time", "20", "how long before decals start to fade away"} |
Definition at line 304 of file cl_particles.c.
Referenced by CL_Particles_Init(), R_DrawModelDecals_Entity(), and R_DrawModelDecals_FadeEntity().
cvar_t cl_particles = {CF_CLIENT | CF_ARCHIVE, "cl_particles", "1", "enables particle effects"} |
Definition at line 279 of file cl_particles.c.
Referenced by CL_EntityParticles(), CL_NewParticle(), CL_NewParticlesFromEffectinfo(), CL_ParticleCube(), CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), CL_ParticleExplosion2(), CL_ParticleRain(), CL_Particles_Init(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
cvar_t cl_particles_alpha = {CF_CLIENT | CF_ARCHIVE, "cl_particles_alpha", "1", "multiplies opacity of particles"} |
Definition at line 281 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DrawParticle_TransparentCallback().
cvar_t cl_particles_blood = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood", "1", "enables blood effects"} |
Definition at line 284 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), CL_ParticleEffect_Fallback(), CL_Particles_Init(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
cvar_t cl_particles_blood_alpha = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood_alpha", "1", "opacity of blood, does not affect decals"} |
Definition at line 285 of file cl_particles.c.
Referenced by CL_ParticleEffect_Fallback(), CL_Particles_Init(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
cvar_t cl_particles_blood_bloodhack = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood_bloodhack", "1", "make certain quake particle() calls create blood effects instead"} |
Definition at line 289 of file cl_particles.c.
Referenced by CL_ParticleEffect_Fallback(), CL_Particles_Init(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
cvar_t cl_particles_blood_decal_alpha = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood_decal_alpha", "1", "opacity of blood decal"} |
Definition at line 286 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DrawParticles().
cvar_t cl_particles_blood_decal_scalemax = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood_decal_scalemax", "2", "maximal random scale of decal"} |
Definition at line 288 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DrawParticles().
cvar_t cl_particles_blood_decal_scalemin = {CF_CLIENT | CF_ARCHIVE, "cl_particles_blood_decal_scalemin", "1.5", "minimal random scale of decal"} |
Definition at line 287 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DrawParticles().
cvar_t cl_particles_bubbles = {CF_CLIENT | CF_ARCHIVE, "cl_particles_bubbles", "1", "enables bubbles (used by multiple effects)"} |
Definition at line 299 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), CL_Particles_Init(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
cvar_t cl_particles_bulletimpacts = {CF_CLIENT | CF_ARCHIVE, "cl_particles_bulletimpacts", "1", "enables bulletimpact effects"} |
Definition at line 290 of file cl_particles.c.
Referenced by CL_ParticleEffect_Fallback(), CL_Particles_Init(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
cvar_t cl_particles_collisions = {CF_CLIENT | CF_ARCHIVE, "cl_particles_collisions", "1", "allow costly collision detection on particles (sparks that bounce, particles not going through walls, blood hitting surfaces, etc)"} |
Definition at line 301 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DrawParticles().
cvar_t cl_particles_explosions_shell = {CF_CLIENT | CF_ARCHIVE, "cl_particles_explosions_shell", "0", "enables polygonal shell from explosions"} |
Definition at line 292 of file cl_particles.c.
Referenced by CL_ParticleExplosion(), CL_Particles_Init(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
cvar_t cl_particles_explosions_sparks = {CF_CLIENT | CF_ARCHIVE, "cl_particles_explosions_sparks", "1", "enables sparks from explosions"} |
Definition at line 291 of file cl_particles.c.
Referenced by CL_ParticleExplosion(), and CL_Particles_Init().
cvar_t cl_particles_forcetraileffects = {CF_CLIENT, "cl_particles_forcetraileffects", "0", "force trails to be displayed even if a non-trail draw primitive was used (debug/compat feature)"} |
Definition at line 302 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), and CL_Particles_Init().
cvar_t cl_particles_quake = {CF_CLIENT | CF_ARCHIVE, "cl_particles_quake", "0", "0: Fancy particles; 1: Disc particles like GLQuake; 2: Square particles like software-rendered Quake"} |
Definition at line 283 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), CL_NewQuakeParticle(), CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), CL_ParticleExplosion2(), CL_Particles_Init(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
cvar_t cl_particles_quality = {CF_CLIENT | CF_ARCHIVE, "cl_particles_quality", "1", "multiplies number of particles"} |
Definition at line 280 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), CL_ParticleCube(), CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), CL_ParticleExplosion2(), CL_ParticleRain(), CL_Particles_Init(), CL_Smoke(), CL_Sparks(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
cvar_t cl_particles_rain = {CF_CLIENT | CF_ARCHIVE, "cl_particles_rain", "1", "enables rain effects"} |
Definition at line 293 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), CL_ParticleRain(), and CL_Particles_Init().
cvar_t cl_particles_size = {CF_CLIENT | CF_ARCHIVE, "cl_particles_size", "1", "multiplies particle size"} |
Definition at line 282 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DrawParticle_TransparentCallback().
cvar_t cl_particles_smoke = {CF_CLIENT | CF_ARCHIVE, "cl_particles_smoke", "1", "enables smoke (used by multiple effects)"} |
Definition at line 295 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), CL_ParticleEffect_Fallback(), CL_Particles_Init(), CL_Smoke(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
cvar_t cl_particles_smoke_alpha = {CF_CLIENT | CF_ARCHIVE, "cl_particles_smoke_alpha", "0.5", "smoke brightness"} |
Definition at line 296 of file cl_particles.c.
Referenced by CL_ParticleEffect_Fallback(), and CL_Particles_Init().
cvar_t cl_particles_smoke_alphafade = {CF_CLIENT | CF_ARCHIVE, "cl_particles_smoke_alphafade", "0.55", "brightness fade per second"} |
Definition at line 297 of file cl_particles.c.
Referenced by CL_ParticleEffect_Fallback(), and CL_Particles_Init().
cvar_t cl_particles_snow = {CF_CLIENT | CF_ARCHIVE, "cl_particles_snow", "1", "enables snow effects"} |
Definition at line 294 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), CL_ParticleRain(), and CL_Particles_Init().
cvar_t cl_particles_sparks = {CF_CLIENT | CF_ARCHIVE, "cl_particles_sparks", "1", "enables sparks (used by multiple effects)"} |
Definition at line 298 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), CL_Particles_Init(), CL_Sparks(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
cvar_t cl_particles_visculling = {CF_CLIENT | CF_ARCHIVE, "cl_particles_visculling", "0", "perform a costly check if each particle is visible before drawing"} |
Definition at line 300 of file cl_particles.c.
Referenced by CL_Particles_Init(), and R_DrawParticles().
skinframe_t* decalskinframe |
Definition at line 187 of file cl_particles.c.
Referenced by R_DrawModelDecals_Entity(), R_InitParticleTexture(), and r_part_newmap().
int numparticleeffectinfo |
Definition at line 131 of file cl_particles.c.
Referenced by CL_Particles_LoadEffectInfo(), and CL_Particles_ParseEffectInfo().
float particle_color4f[MESHQUEUE_TRANSPARENT_BATCHSIZE *16] |
Definition at line 2600 of file cl_particles.c.
Referenced by R_DrawParticle_TransparentCallback().
unsigned short particle_elements[MESHQUEUE_TRANSPARENT_BATCHSIZE *6] |
Definition at line 2599 of file cl_particles.c.
Referenced by R_DrawParticle_TransparentCallback(), and R_Particles_Init().
float particle_texcoord2f[MESHQUEUE_TRANSPARENT_BATCHSIZE *8] |
Definition at line 2600 of file cl_particles.c.
Referenced by R_DrawParticle_TransparentCallback().
float particle_vertex3f[MESHQUEUE_TRANSPARENT_BATCHSIZE *12] |
Definition at line 2600 of file cl_particles.c.
Referenced by R_DrawParticle_TransparentCallback().
particleeffectinfo_t particleeffectinfo[MAX_PARTICLEEFFECTINFO] |
Definition at line 132 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), CL_Particles_LoadEffectInfo(), and CL_Particles_ParseEffectInfo().
char particleeffectname[MAX_PARTICLEEFFECTNAME][64] |
Definition at line 129 of file cl_particles.c.
Referenced by CL_NewParticlesFromEffectinfo(), CL_ParticleEffect_Fallback(), CL_ParticleEffectIndexForName(), CL_ParticleEffectNameForIndex(), CL_Particles_LoadEffectInfo(), and CL_Particles_ParseEffectInfo().
int particlefontcellheight |
Definition at line 2188 of file cl_particles.c.
Referenced by CL_Particle_PixelCoordsForTexnum(), and R_InitParticleTexture().
int particlefontcellwidth |
Definition at line 2188 of file cl_particles.c.
Referenced by CL_Particle_PixelCoordsForTexnum(), and R_InitParticleTexture().
int particlefontcols |
Definition at line 2188 of file cl_particles.c.
Referenced by CL_Particle_PixelCoordsForTexnum(), and R_InitParticleTexture().
int particlefontheight |
Definition at line 2188 of file cl_particles.c.
Referenced by R_InitParticleTexture().
int particlefontrows |
Definition at line 2188 of file cl_particles.c.
Referenced by CL_Particle_PixelCoordsForTexnum(), and R_InitParticleTexture().
|
static |
Definition at line 185 of file cl_particles.c.
Referenced by R_InitParticleTexture().
int particlefontwidth |
Definition at line 2188 of file cl_particles.c.
Referenced by R_InitParticleTexture().
|
static |
Definition at line 134 of file cl_particles.c.
Referenced by CL_EntityParticles(), CL_ParticleCube(), CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), CL_ParticleExplosion2(), CL_ParticleRain(), CL_ReadPointFile_f(), CL_Sparks(), R_DrawParticles(), and r_part_start().
|
static |
Definition at line 186 of file cl_particles.c.
Referenced by CL_ImmediateBloodStain(), CL_NewParticle(), CL_SpawnDecalParticleForSurface(), R_DrawParticle_TransparentCallback(), and R_InitParticleTexture().
|
static |
Definition at line 184 of file cl_particles.c.
Referenced by R_InitParticleTexture(), r_part_shutdown(), and r_part_start().
particletype_t particletype[pt_total] |
Definition at line 28 of file cl_particles.c.
Referenced by CL_Particles_ParseEffectInfo(), and R_DrawParticle_TransparentCallback().
Definition at line 2149 of file cl_particles.c.
Referenced by R_DrawModelDecals(), R_Particles_Init(), and R_Water_ProcessPlanes().
|
static |
Definition at line 2150 of file cl_particles.c.
Referenced by R_Particles_Init().
Definition at line 2145 of file cl_particles.c.
Referenced by R_DrawParticles(), R_Particles_Init(), and R_Water_ProcessPlanes().
|
static |
Definition at line 2146 of file cl_particles.c.
Referenced by R_DrawParticles(), and R_Particles_Init().
|
static |
Definition at line 2148 of file cl_particles.c.
Referenced by R_DrawParticle_TransparentCallback(), and R_Particles_Init().
|
static |
Definition at line 2147 of file cl_particles.c.
Referenced by R_DrawParticle_TransparentCallback(), R_DrawParticles(), and R_Particles_Init().
int ramp1[8] = {0x6f, 0x6d, 0x6b, 0x69, 0x67, 0x65, 0x63, 0x61} |
Definition at line 170 of file cl_particles.c.
Referenced by CL_ParticleExplosion(), and R_DrawParticles().
int ramp2[8] = {0x6f, 0x6e, 0x6d, 0x6c, 0x6b, 0x6a, 0x68, 0x66} |
Definition at line 171 of file cl_particles.c.
Referenced by CL_ParticleExplosion(), and R_DrawParticles().
int ramp3[8] = {0x6d, 0x6b, 6, 5, 4, 3} |
Definition at line 172 of file cl_particles.c.
Referenced by CL_ParticleEffect_Fallback().
|
static |
Definition at line 498 of file cl_particles.c.
Referenced by CL_Particles_LoadEffectInfo().
|
static |
Definition at line 196 of file cl_particles.c.
Referenced by CL_ParticleEffect_Fallback(), CL_ReadPointFile_f(), and R_InitParticleTexture().
|
static |
Definition at line 192 of file cl_particles.c.
Referenced by CL_ImmediateBloodStain(), R_DrawParticles(), and R_InitBloodTextures().
|
static |
Definition at line 193 of file cl_particles.c.
Referenced by CL_ParticleEffect_Fallback(), and R_InitBloodTextures().
|
static |
Definition at line 197 of file cl_particles.c.
Referenced by CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), and R_InitParticleTexture().
|
static |
Definition at line 191 of file cl_particles.c.
Referenced by CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), and R_InitParticleTexture().
|
static |
Definition at line 199 of file cl_particles.c.
Referenced by CL_EntityParticles(), CL_NewParticle(), CL_NewQuakeParticle(), CL_ParticleCube(), CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), CL_ParticleExplosion2(), CL_ParticleRain(), CL_ReadPointFile_f(), CL_Sparks(), and R_InitParticleTexture().
|
static |
Definition at line 198 of file cl_particles.c.
Referenced by R_InitParticleTexture().
|
static |
Definition at line 194 of file cl_particles.c.
Referenced by CL_NewParticle(), and R_InitParticleTexture().
|
static |
Definition at line 190 of file cl_particles.c.
Referenced by CL_ParticleEffect_Fallback(), CL_Smoke(), and R_InitParticleTexture().
|
static |
Definition at line 195 of file cl_particles.c.
Referenced by CL_NewQuakeParticle().