|
UFO: Alien Invasion
|

Go to the source code of this file.
Functions | |
| void | CL_AddMapParticle (const char *particle, const vec3_t origin, const vec2_t wait, const char *info, int levelflags) |
| Spawns the map particle. | |
| void | CL_ParticleCheckRounds (void) |
| checks whether a particle is still active in the current round | |
| void | CL_ParticleFree (ptl_t *p) |
| Free a particle and all it's children. | |
| void | CL_ParticleRegisterArt (void) |
| void | PTL_InitStartup (void) |
| Clears particle data. | |
| void | CL_ParticleRun (void) |
| General system for particle running during the game. | |
| void | CL_ParseParticle (const char *name, const char **text) |
| Parses particle definitions from UFO-script files. | |
| ptl_t * | CL_ParticleSpawn (const char *name, int levelFlags, const vec3_t s, const vec3_t v=nullptr, const vec3_t a=nullptr) |
| Spawn a new particle to the map. | |
| ptlDef_t * | CL_ParticleGet (const char *particleID) |
| void CL_AddMapParticle | ( | const char * | ptl, |
| const vec3_t | origin, | ||
| const vec2_t | wait, | ||
| const char * | info, | ||
| int | levelflags ) |
Spawns the map particle.
| [in] | ptl | Particle name |
| [in] | origin | The position in the world |
| [in] | wait | |
| [in] | info | |
| [in] | levelflags | The levelflag mask to show the particle on |
Definition at line 276 of file cl_particle.cpp.
References cl, Com_DPrintf(), Com_Printf(), DEBUG_CLIENT, frand(), mapParticle_t::info, mapParticle_t::levelflags, mapParticles, MAX_MAPPARTICLES, mapParticle_t::nextTime, mapParticle_t::origin, mapParticle_t::ptl, Q_strncpyz(), VectorCopy, and mapParticle_t::wait.
Referenced by SP_misc_particle().
| void CL_ParseParticle | ( | const char * | name, |
| const char ** | text ) |
Parses particle definitions from UFO-script files.
| [in] | name | particle name/id |
| [in] | text | pointer to the buffer to parse from |
Definition at line 1355 of file cl_particle.cpp.
References CL_ParsePtlCmds(), Com_EParse(), Com_Parse(), Com_Printf(), i, ptlDef_t::init, MAX_PTLDEFS, name, ptlDef_t::name, numPtlCmds, numPtlDefs, OBJZERO, PF_NUM_PTLFUNCS, pf_strings, pf_values, ptlCmd, ptlDef, Q_streq, and Q_strncpyz().
Referenced by CL_ParseClientData().
checks whether a particle is still active in the current round
Definition at line 827 of file cl_particle.cpp.
References CL_ParticleFree(), CL_ParticleFunction(), ptl_t::ctrl, i, ptl_t::inuse, r_numParticles, r_particleArray, ptlDef_t::round, ptl_t::rounds, and ptl_t::roundsCnt.
Referenced by CL_DoEndRound().
Free a particle and all it's children.
| [in] | p | the particle to free |
Definition at line 776 of file cl_particle.cpp.
References ptl_t::children, CL_ParticleFree(), ptl_t::inuse, and ptl_t::invis.
Referenced by CL_ActorDie(), CL_ActorRevitalised(), CL_EntPerish(), CL_ParticleCheckRounds(), CL_ParticleFree(), CL_ParticleFunction(), CL_ParticleRun2(), and LET_Projectile().
| ptlDef_t * CL_ParticleGet | ( | const char * | particleID | ) |
Definition at line 678 of file cl_particle.cpp.
References i, name, ptlDef_t::name, numPtlDefs, ptlDef, Q_streq, and Q_strnull().
Referenced by CL_ParticleSpawn(), TEST_CheckParticle(), and TEST_F().
Definition at line 324 of file cl_particle.cpp.
References CL_ParticleLoadArt(), i, r_numParticlesArt, and r_particlesArt.
Referenced by CL_ViewLoadMedia().
General system for particle running during the game.
Definition at line 1148 of file cl_particle.cpp.
References CL_ParticleRun2(), CL_ParticleRunTimed(), CL_RunMapParticles(), i, ptl_t::inuse, r_numParticles, and r_particleArray.
Referenced by CL_Frame(), and TEST_F().
| ptl_t * CL_ParticleSpawn | ( | const char * | name, |
| int | levelFlags, | ||
| const vec3_t | s, | ||
| const vec3_t | v, | ||
| const vec3_t | a ) |
Spawn a new particle to the map.
| [in] | name | The id of the particle (see ptl_*.ufo script files in base/ufos) |
| [in] | levelFlags | Show at which levels |
| [in] | s | starting/location vector |
| [in] | v | velocity vector |
| [in] | a | acceleration vector |
Definition at line 705 of file cl_particle.cpp.
References ptl_t::a, cl, CL_ParticleFunction(), CL_ParticleGet(), ptl_t::color, Com_DPrintf(), Com_Printf(), ptl_t::ctrl, DEBUG_CLIENT, i, ptlDef_t::init, ptl_t::inuse, ptl_t::levelFlags, ptl_t::life, MAX_PTLS, ptl_t::model, name, OBJZERO, ptl_t::origin, ptl_t::pic, Q_strnull(), r_numParticles, r_particleArray, ptl_t::s, ptl_t::startTime, ptl_t::tps, ptl_t::v, v, Vector4Set, and VectorCopy.
Referenced by CL_ActorTraceMove(), CL_AddActor(), CL_DrawLineOfSight(), CL_NextAlienVisibleFromActor_f(), CL_ParticleAppear(), CL_ParticleFunction(), CL_ParticleRunTimed(), CL_ParticleSpawnEvent(), CL_RunMapParticles(), CL_TargetingGrenade(), CL_TargetingRadius(), CL_TargetingStraight(), LE_ActorBodyHit(), LE_AddGrenade(), LE_AddProjectile(), LE_AddToScene(), LE_PlaySoundFileAndParticleForSurface(), LET_Projectile(), R_DrawAliasModel(), and TEST_F().
Clears particle data.
Definition at line 1475 of file cl_particle.cpp.
References cl_particleweather, Cmd_AddCommand(), CVAR_ARCHIVE, Cvar_Get(), numPtlCmds, numPtlDefs, OBJZERO, ptlCmd, ptlDef, r_numParticles, r_numParticlesArt, and r_particlesArt.
Referenced by CL_InitLocal(), ParticleTest::SetUpTestCase(), and TEST_Shutdown().