FTEQW
Documentation of the FTE engine source tree.
particles.h File Reference

Go to the source code of this file.

Classes

struct  particleengine_t
 

Typedefs

typedef quint32_t trailkey_t
 

Enumerations

enum  q2particleeffects_t {
  Q2TE_GUNSHOT = 0 , Q2TE_BLOOD , Q2TE_BLASTER , Q2TE_RAILTRAIL ,
  Q2TE_SHOTGUN , Q2TE_EXPLOSION1 , Q2TE_EXPLOSION2 , Q2TE_ROCKET_EXPLOSION ,
  Q2TE_GRENADE_EXPLOSION , Q2TE_SPARKS , Q2TE_SPLASH , Q2TE_BUBBLETRAIL ,
  Q2TE_SCREEN_SPARKS , Q2TE_SHIELD_SPARKS , Q2TE_BULLET_SPARKS , Q2TE_LASER_SPARKS ,
  Q2TE_PARASITE_ATTACK , Q2TE_ROCKET_EXPLOSION_WATER , Q2TE_GRENADE_EXPLOSION_WATER , Q2TE_MEDIC_CABLE_ATTACK ,
  Q2TE_BFG_EXPLOSION , Q2TE_BFG_BIGEXPLOSION , Q2TE_BOSSTPORT , Q2TE_BFG_LASER ,
  Q2TE_GRAPPLE_CABLE , Q2TE_WELDING_SPARKS , Q2TE_GREENBLOOD , Q2TE_BLUEHYPERBLASTER ,
  Q2TE_PLASMA_EXPLOSION , Q2TE_TUNNEL_SPARKS , Q2TE_BLASTER2 , Q2TE_RAILTRAIL2 ,
  Q2TE_FLAME , Q2TE_LIGHTNING , Q2TE_DEBUGTRAIL , Q2TE_PLAIN_EXPLOSION ,
  Q2TE_FLASHLIGHT , Q2TE_FORCEWALL , Q2TE_HEATBEAM , Q2TE_MONSTER_HEATBEAM ,
  Q2TE_STEAM , Q2TE_BUBBLETRAIL2 , Q2TE_MOREBLOOD , Q2TE_HEATBEAM_SPARKS ,
  Q2TE_HEATBEAM_STEAM , Q2TE_CHAINFIST_SMOKE , Q2TE_ELECTRIC_SPARKS , Q2TE_TRACKER_EXPLOSION ,
  Q2TE_TELEPORT_EFFECT , Q2TE_DBALL_GOAL , Q2TE_WIDOWBEAMOUT , Q2TE_NUKEBLAST ,
  Q2TE_WIDOWSPLASH , Q2TE_EXPLOSION1_BIG , Q2TE_EXPLOSION1_NP , Q2TE_FLECHETTE ,
  CRTE_LEADERBLASTER , CRTE_BLASTER_MUZZLEFLASH , CRTE_BLUE_MUZZLEFLASH , CRTE_SMART_MUZZLEFLASH ,
  CRTE_LEADERFIELD , CRTE_DEATHFIELD , CRTE_BLASTERBEAM , CRTE_STAIN ,
  CRTE_FIRE , CRTE_CABLEGUT , CRTE_SMOKE , Q2SPLASH_UNKNOWN ,
  Q2SPLASH_SPARKS , Q2SPLASH_BLUE_WATER , Q2SPLASH_BROWN_WATER , Q2SPLASH_SLIME ,
  Q2SPLASH_LAVA , Q2SPLASH_BLOOD , Q2RT_BLASTERTRAIL , Q2RT_BLASTERTRAIL2 ,
  Q2RT_GIB , Q2RT_GREENGIB , Q2RT_ROCKET , Q2RT_GRENADE ,
  Q2RT_TRAP , Q2RT_FLAG1 , Q2RT_FLAG2 , Q2RT_TAGTRAIL ,
  Q2RT_TRACKER , Q2RT_IONRIPPER , Q2RT_PLASMA , Q2PT_BFGPARTICLES ,
  Q2PT_FLIES , Q2PT_TRAP , Q2PT_TRACKERSHELL , Q2PT_RESPAWN ,
  Q2PT_PLAYER_TELEPORT , Q2PT_FOOTSTEP , Q2PT_MAX
}
 
enum  blendmode_t {
  BM_BLEND , BM_BLENDCOLOUR , BM_ADDA , BM_ADDC ,
  BM_SUBTRACT , BM_INVMODA , BM_INVMODC , BM_PREMUL ,
  BM_RTSMOKE
}
 

Functions

void P_InitParticleSystem (void)
 
void P_ShutdownParticleSystem (void)
 
void P_Shutdown (void)
 
void P_LoadedModel (struct model_s *mod)
 
void P_DefaultTrail (unsigned int entityeffects, unsigned int modelflags, int *trailid, int *trailpalidx)
 
void P_EmitEffect (vec3_t pos, vec3_t orientation[3], unsigned int modeleflags, int type, trailkey_t *tsk)
 
int P_FindParticleType (const char *efname)
 
void PScript_ClearSurfaceParticles (struct model_s *mod)
 

Variables

int pt_gunshot
 
int ptdp_gunshotquad
 
int pt_spike
 
int ptdp_spikequad
 
int pt_superspike
 
int ptdp_superspikequad
 
int pt_wizspike
 
int pt_knightspike
 
int pt_explosion
 
int ptdp_explosionquad
 
int pt_tarexplosion
 
int pt_teleportsplash
 
int pt_lavasplash
 
int ptdp_smallflash
 
int ptdp_flamejet
 
int ptdp_flame
 
int ptdp_blood
 
int ptdp_spark
 
int ptdp_plasmaburn
 
int ptdp_tei_g3
 
int ptdp_tei_smoke
 
int ptdp_tei_bigexplosion
 
int ptdp_tei_plasmahit
 
int ptdp_stardust
 
int rt_rocket
 
int rt_grenade
 
int rt_blood
 
int rt_wizspike
 
int rt_slightblood
 
int rt_knightspike
 
int rt_vorespike
 
int rtdp_nexuizplasma
 
int rtdp_glowtrail
 
int ptqw_blood
 
int ptqw_lightningblood
 
int rtqw_railtrail
 
int ptfte_bullet
 
int ptfte_superbullet
 
int pt_q2 []
 
cvar_t r_particlesdesc
 
cvar_t r_particlesystem
 
particleengine_tpe
 

Typedef Documentation

◆ trailkey_t

typedef quint32_t trailkey_t

Enumeration Type Documentation

◆ blendmode_t

Enumerator
BM_BLEND 
BM_BLENDCOLOUR 
BM_ADDA 
BM_ADDC 
BM_SUBTRACT 
BM_INVMODA 
BM_INVMODC 
BM_PREMUL 
BM_RTSMOKE 

◆ q2particleeffects_t

Enumerator
Q2TE_GUNSHOT 
Q2TE_BLOOD 
Q2TE_BLASTER 
Q2TE_RAILTRAIL 
Q2TE_SHOTGUN 
Q2TE_EXPLOSION1 
Q2TE_EXPLOSION2 
Q2TE_ROCKET_EXPLOSION 
Q2TE_GRENADE_EXPLOSION 
Q2TE_SPARKS 
Q2TE_SPLASH 
Q2TE_BUBBLETRAIL 
Q2TE_SCREEN_SPARKS 
Q2TE_SHIELD_SPARKS 
Q2TE_BULLET_SPARKS 
Q2TE_LASER_SPARKS 
Q2TE_PARASITE_ATTACK 
Q2TE_ROCKET_EXPLOSION_WATER 
Q2TE_GRENADE_EXPLOSION_WATER 
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GIB 
Q2RT_ROCKET 
Q2RT_GRENADE 
Q2RT_TRAP 
Q2RT_FLAG1 
Q2RT_FLAG2 
Q2RT_TAGTRAIL 
Q2RT_TRACKER 
Q2RT_IONRIPPER 
Q2RT_PLASMA 
Q2PT_BFGPARTICLES 
Q2PT_FLIES 
Q2PT_TRAP 
Q2PT_TRACKERSHELL 
Q2PT_RESPAWN 
Q2PT_PLAYER_TELEPORT 
Q2PT_FOOTSTEP 
Q2PT_MAX 

Function Documentation

◆ P_DefaultTrail()

void P_DefaultTrail ( unsigned int  entityeffects,
unsigned int  modelflags,
int trailid,
int trailpalidx 
)

◆ P_EmitEffect()

void P_EmitEffect ( vec3_t  pos,
vec3_t  orientation[3],
unsigned int  modeleflags,
int  type,
trailkey_t tsk 
)

◆ P_FindParticleType()

int P_FindParticleType ( const char *  efname)

◆ P_InitParticleSystem()

void P_InitParticleSystem ( void  )

◆ P_LoadedModel()

void P_LoadedModel ( struct model_s mod)

◆ P_Shutdown()

void P_Shutdown ( void  )

◆ P_ShutdownParticleSystem()

void P_ShutdownParticleSystem ( void  )

◆ PScript_ClearSurfaceParticles()

void PScript_ClearSurfaceParticles ( struct model_s mod)

Variable Documentation

◆ pe

particleengine_t* pe
extern

◆ pt_explosion

int pt_explosion

◆ pt_gunshot

int pt_gunshot
extern

◆ pt_knightspike

int pt_knightspike

◆ pt_lavasplash

int pt_lavasplash

◆ pt_q2

int pt_q2[]
extern

◆ pt_spike

int pt_spike

◆ pt_superspike

int pt_superspike

◆ pt_tarexplosion

int pt_tarexplosion

◆ pt_teleportsplash

int pt_teleportsplash

◆ pt_wizspike

int pt_wizspike

◆ ptdp_blood

int ptdp_blood

◆ ptdp_explosionquad

int ptdp_explosionquad

◆ ptdp_flame

int ptdp_flame

◆ ptdp_flamejet

int ptdp_flamejet

◆ ptdp_gunshotquad

int ptdp_gunshotquad

◆ ptdp_plasmaburn

int ptdp_plasmaburn

◆ ptdp_smallflash

int ptdp_smallflash

◆ ptdp_spark

int ptdp_spark

◆ ptdp_spikequad

int ptdp_spikequad

◆ ptdp_stardust

int ptdp_stardust

◆ ptdp_superspikequad

int ptdp_superspikequad

◆ ptdp_tei_bigexplosion

int ptdp_tei_bigexplosion

◆ ptdp_tei_g3

int ptdp_tei_g3

◆ ptdp_tei_plasmahit

int ptdp_tei_plasmahit

◆ ptdp_tei_smoke

int ptdp_tei_smoke

◆ ptfte_bullet

int ptfte_bullet

◆ ptfte_superbullet

int ptfte_superbullet

◆ ptqw_blood

int ptqw_blood

◆ ptqw_lightningblood

int ptqw_lightningblood

◆ r_particlesdesc

cvar_t r_particlesdesc
extern

◆ r_particlesystem

cvar_t r_particlesystem
extern

◆ rt_blood

int rt_blood

◆ rt_grenade

int rt_grenade

◆ rt_knightspike

int rt_knightspike

◆ rt_rocket

int rt_rocket

◆ rt_slightblood

int rt_slightblood

◆ rt_vorespike

int rt_vorespike

◆ rt_wizspike

int rt_wizspike

◆ rtdp_glowtrail

int rtdp_glowtrail

◆ rtdp_nexuizplasma

int rtdp_nexuizplasma

◆ rtqw_railtrail

int rtqw_railtrail