DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
particle_t Struct Reference

#include <cl_particles.h>

+ Collaboration diagram for particle_t:

Data Fields

float airfriction
 how much air friction affects this object (objects with a low mass/size ratio tend to get more air friction)
 
float alpha
 0-255
 
float alphafade
 how much alpha reduces per second
 
short angle
 base rotation of particle
 
unsigned char blendmode
 
float bounce
 how much bounce-back from a surface the particle hits (0 = no physics, 1 = stop and slide, 2 = keep bouncing forever, 1.5 is typical)
 
unsigned char color [3]
 
float delayedspawn
 time that particle appears and begins moving
 
float die
 time when this particle should be removed, regardless of alpha
 
float gravity
 how much gravity affects this particle (1.0 = normal gravity, 0.0 = none)
 
float liquidfriction
 how much liquid friction affects this object (objects with a low mass/size ratio tend to get more liquid friction)
 
vec3_t org
 
unsigned char orientation
 
unsigned char qualityreduction
 enables skipping of this particle according to r_refdef.view.qualityreduction
 
float size
 
float sizeincrease
 rate of size change per second
 
vec3_t sortorigin
 sort by this group origin, not particle org
 
short spin
 geometry rotation speed around the particle center normal
 
float stainalpha
 
unsigned char staincolor [3]
 
float stainsize
 
signed char staintexnum
 
float stretch
 only for sparks
 
unsigned char texnum
 
float time2
 used for snow fluttering, decal fade, explosion colour ramp
 
unsigned char typeindex
 
vec3_t vel
 velocity of particle, or orientation of decal, or end point of beam
 

Detailed Description

Definition at line 80 of file cl_particles.h.

Field Documentation

◆ airfriction

float particle_t::airfriction

how much air friction affects this object (objects with a low mass/size ratio tend to get more air friction)

Definition at line 100 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticles().

◆ alpha

float particle_t::alpha

◆ alphafade

float particle_t::alphafade

how much alpha reduces per second

Definition at line 96 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticles().

◆ angle

short particle_t::angle

base rotation of particle

Definition at line 107 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticle_TransparentCallback().

◆ blendmode

unsigned char particle_t::blendmode

Definition at line 114 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticle_TransparentCallback().

◆ bounce

float particle_t::bounce

how much bounce-back from a surface the particle hits (0 = no physics, 1 = stop and slide, 2 = keep bouncing forever, 1.5 is typical)

Definition at line 98 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticles().

◆ color

unsigned char particle_t::color[3]

◆ delayedspawn

float particle_t::delayedspawn

time that particle appears and begins moving

Definition at line 103 of file cl_particles.h.

Referenced by CL_NewParticle(), R_DrawParticle_TransparentCallback(), R_DrawParticles(), VM_CL_SpawnParticle(), and VM_CL_SpawnParticleDelayed().

◆ die

float particle_t::die

time when this particle should be removed, regardless of alpha

Definition at line 104 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticles().

◆ gravity

float particle_t::gravity

how much gravity affects this particle (1.0 = normal gravity, 0.0 = none)

Definition at line 99 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticles().

◆ liquidfriction

float particle_t::liquidfriction

how much liquid friction affects this object (objects with a low mass/size ratio tend to get more liquid friction)

Definition at line 101 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticles().

◆ org

◆ orientation

unsigned char particle_t::orientation

◆ qualityreduction

unsigned char particle_t::qualityreduction

enables skipping of this particle according to r_refdef.view.qualityreduction

Definition at line 112 of file cl_particles.h.

Referenced by CL_NewParticle().

◆ size

◆ sizeincrease

float particle_t::sizeincrease

rate of size change per second

Definition at line 95 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticles().

◆ sortorigin

vec3_t particle_t::sortorigin

sort by this group origin, not particle org

Definition at line 85 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticles().

◆ spin

short particle_t::spin

geometry rotation speed around the particle center normal

Definition at line 108 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticle_TransparentCallback().

◆ stainalpha

float particle_t::stainalpha

Definition at line 94 of file cl_particles.h.

Referenced by CL_ImmediateBloodStain(), CL_NewParticle(), and R_DrawParticles().

◆ staincolor

unsigned char particle_t::staincolor[3]

Definition at line 117 of file cl_particles.h.

Referenced by CL_ImmediateBloodStain(), CL_NewParticle(), and R_DrawParticles().

◆ stainsize

float particle_t::stainsize

Definition at line 93 of file cl_particles.h.

Referenced by CL_ImmediateBloodStain(), CL_NewParticle(), and R_DrawParticles().

◆ staintexnum

signed char particle_t::staintexnum

Definition at line 118 of file cl_particles.h.

Referenced by CL_ImmediateBloodStain(), CL_NewParticle(), and R_DrawParticles().

◆ stretch

float particle_t::stretch

only for sparks

Definition at line 90 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticle_TransparentCallback().

◆ texnum

unsigned char particle_t::texnum

Definition at line 116 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticle_TransparentCallback().

◆ time2

float particle_t::time2

used for snow fluttering, decal fade, explosion colour ramp

Definition at line 97 of file cl_particles.h.

Referenced by CL_NewParticle(), and R_DrawParticles().

◆ typeindex

unsigned char particle_t::typeindex

◆ vel

vec3_t particle_t::vel

velocity of particle, or orientation of decal, or end point of beam

Definition at line 87 of file cl_particles.h.

Referenced by CL_ImmediateBloodStain(), CL_NewParticle(), R_DrawParticle_TransparentCallback(), and R_DrawParticles().


The documentation for this struct was generated from the following file: