mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-21 19:32:30 +00:00
apply patch that fixes prediction of visual effects for Tonik (cvs troubles).
This commit is contained in:
parent
7932608a22
commit
e3d3f3d73c
1 changed files with 21 additions and 15 deletions
|
@ -839,7 +839,8 @@ void CL_LinkPlayers (void)
|
|||
entity_t *ent;
|
||||
int msec;
|
||||
frame_t *frame;
|
||||
int oldphysent;
|
||||
int oldphysent;
|
||||
vec3_t org;
|
||||
|
||||
playertime = realtime - cls.latency + 0.02;
|
||||
if (playertime > realtime)
|
||||
|
@ -854,20 +855,25 @@ void CL_LinkPlayers (void)
|
|||
continue; // not present this frame
|
||||
|
||||
// spawn light flashes, even ones coming from invisible objects
|
||||
if (!gl_flashblend->value || j != cl.playernum) {
|
||||
if ((state->effects & (EF_BLUE | EF_RED)) == (EF_BLUE | EF_RED)) {
|
||||
CL_NewDlight (j, state->origin, 200 + (rand()&31), 0.1, 3);
|
||||
} else if (state->effects & EF_BLUE) {
|
||||
CL_NewDlight (j, state->origin, 200 + (rand()&31), 0.1, 1);
|
||||
} else if (state->effects & EF_RED) {
|
||||
CL_NewDlight (j, state->origin, 200 + (rand()&31), 0.1, 2);
|
||||
} else if (state->effects & EF_BRIGHTLIGHT) {
|
||||
state->origin[2] += 16;
|
||||
CL_NewDlight (j, state->origin, 400 + (rand()&31), 0.1, 0);
|
||||
state->origin[2] -= 16;
|
||||
} else if (state->effects & EF_DIMLIGHT) {
|
||||
CL_NewDlight (j, state->origin, 200 + (rand()&31), 0.1, 0);
|
||||
}
|
||||
if (!gl_flashblend->value || j != cl.playernum) {
|
||||
|
||||
if (j == cl.playernum) {
|
||||
VectorCopy (cl.simorg, org);
|
||||
} else
|
||||
VectorCopy (state->origin, org);
|
||||
|
||||
if ((state->effects & (EF_BLUE | EF_RED)) == (EF_BLUE | EF_RED)) {
|
||||
CL_NewDlight (j, org, 200 + (rand()&31), 0.1, 3);
|
||||
} else if (state->effects & EF_BLUE) {
|
||||
CL_NewDlight (j, org, 200 + (rand()&31), 0.1, 1);
|
||||
} else if (state->effects & EF_RED) {
|
||||
CL_NewDlight (j, org, 200 + (rand()&31), 0.1, 2);
|
||||
} else if (state->effects & EF_BRIGHTLIGHT) {
|
||||
org[2] += 16;
|
||||
CL_NewDlight (j, org, 400 + (rand()&31), 0.1, 0);
|
||||
} else if (state->effects & EF_DIMLIGHT) {
|
||||
CL_NewDlight (j, org, 200 + (rand()&31), 0.1, 0);
|
||||
}
|
||||
}
|
||||
|
||||
// the player object never gets added
|
||||
|
|
Loading…
Reference in a new issue