mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 16:51:08 +00:00
client.h clean
This commit is contained in:
parent
78702c07e4
commit
763829560a
1 changed files with 7 additions and 17 deletions
|
@ -36,15 +36,8 @@
|
||||||
#include "QF/console.h"
|
#include "QF/console.h"
|
||||||
#include "QF/render.h"
|
#include "QF/render.h"
|
||||||
|
|
||||||
#include "client.h"
|
|
||||||
#include "r_local.h"
|
#include "r_local.h"
|
||||||
|
|
||||||
#define MAX_PARTICLES 2048 // default max # of particles at one
|
|
||||||
// time
|
|
||||||
#define ABSOLUTE_MIN_PARTICLES 512 // no fewer than this no matter
|
|
||||||
// what's
|
|
||||||
// on the command line
|
|
||||||
|
|
||||||
particle_t *active_particles, *free_particles;
|
particle_t *active_particles, *free_particles;
|
||||||
|
|
||||||
particle_t *particles;
|
particle_t *particles;
|
||||||
|
@ -76,7 +69,7 @@ R_DarkFieldParticles (entity_t *ent)
|
||||||
p->next = active_particles;
|
p->next = active_particles;
|
||||||
active_particles = p;
|
active_particles = p;
|
||||||
|
|
||||||
p->die = cl.time + 0.2 + (rand () & 7) * 0.02;
|
p->die = r_realtime + 0.2 + (rand () & 7) * 0.02;
|
||||||
p->color = 150 + rand () % 6;
|
p->color = 150 + rand () % 6;
|
||||||
p->type = pt_slowgrav;
|
p->type = pt_slowgrav;
|
||||||
|
|
||||||
|
@ -98,11 +91,8 @@ R_DarkFieldParticles (entity_t *ent)
|
||||||
|
|
||||||
#define NUMVERTEXNORMALS 162
|
#define NUMVERTEXNORMALS 162
|
||||||
extern float r_avertexnormals[NUMVERTEXNORMALS][3];
|
extern float r_avertexnormals[NUMVERTEXNORMALS][3];
|
||||||
vec3_t avelocities[NUMVERTEXNORMALS];
|
static vec3_t avelocities[NUMVERTEXNORMALS];
|
||||||
float beamlength = 16;
|
static float beamlength = 16;
|
||||||
vec3_t avelocity = { 23, 7, 3 };
|
|
||||||
float partstep = 0.01;
|
|
||||||
float timescale = 0.01;
|
|
||||||
|
|
||||||
void
|
void
|
||||||
R_EntityParticles (entity_t *ent)
|
R_EntityParticles (entity_t *ent)
|
||||||
|
@ -125,13 +115,13 @@ R_EntityParticles (entity_t *ent)
|
||||||
|
|
||||||
|
|
||||||
for (i = 0; i < NUMVERTEXNORMALS; i++) {
|
for (i = 0; i < NUMVERTEXNORMALS; i++) {
|
||||||
angle = cl.time * avelocities[i][0];
|
angle = r_realtime * avelocities[i][0];
|
||||||
sy = sin (angle);
|
sy = sin (angle);
|
||||||
cy = cos (angle);
|
cy = cos (angle);
|
||||||
angle = cl.time * avelocities[i][1];
|
angle = r_realtime * avelocities[i][1];
|
||||||
sp = sin (angle);
|
sp = sin (angle);
|
||||||
cp = cos (angle);
|
cp = cos (angle);
|
||||||
angle = cl.time * avelocities[i][2];
|
angle = r_realtime * avelocities[i][2];
|
||||||
sr = sin (angle);
|
sr = sin (angle);
|
||||||
cr = cos (angle);
|
cr = cos (angle);
|
||||||
|
|
||||||
|
@ -146,7 +136,7 @@ R_EntityParticles (entity_t *ent)
|
||||||
p->next = active_particles;
|
p->next = active_particles;
|
||||||
active_particles = p;
|
active_particles = p;
|
||||||
|
|
||||||
p->die = cl.time + 0.01;
|
p->die = r_realtime + 0.01;
|
||||||
p->color = 0x6f;
|
p->color = 0x6f;
|
||||||
p->type = pt_explode;
|
p->type = pt_explode;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue