Fix for invisible players, etc etc. (QW protocol is nasty)

This commit is contained in:
Forest Hale 2000-07-02 14:14:56 +00:00
parent 5644666f0c
commit 50fec20142
2 changed files with 16 additions and 4 deletions

View File

@ -717,6 +717,11 @@ void CL_LinkProjectiles (void)
ent->scoreboard = NULL;
VectorCopy (pr->origin, ent->origin);
VectorCopy (pr->angles, ent->angles);
// LordHavoc: Endy had neglected to do this as part of the QSG VERSION 2 stuff
ent->glowsize = 0;
ent->glowcolor = 254;
ent->alpha = 1;
ent->colormod[0] = ent->colormod[1] = ent->colormod[2] = 1;
}
}
@ -939,6 +944,12 @@ void CL_LinkPlayers (void)
else
ent->scoreboard = NULL;
// LordHavoc: more QSG VERSION 2 stuff, FIXME: players don't have extend stuff
ent->glowsize = 0;
ent->glowcolor = 254;
ent->alpha = 1;
ent->colormod[0] = ent->colormod[1] = ent->colormod[2] = 1;
//
// angles
//

View File

@ -358,6 +358,11 @@ entity_t *CL_NewTempEntity (void)
memset (ent, 0, sizeof(*ent));
ent->colormap = vid.colormap;
// LordHavoc: Endy had neglected to do this as part of the QSG VERSION 2 stuff
ent->glowsize = 0;
ent->glowcolor = 254;
ent->alpha = 1;
ent->colormod[0] = ent->colormod[1] = ent->colormod[2] = 1;
return ent;
}
@ -426,10 +431,6 @@ void CL_UpdateBeams (void)
ent->angles[0] = pitch;
ent->angles[1] = yaw;
ent->angles[2] = rand()%360;
// LordHavoc: visible lightning
ent->alpha = 1;
ent->scale = 1;
ent->colormod[0] = ent->colormod[1] = ent->colormod[2] = 1;
for (j=0 ; j<3 ; j++)
org[j] += dist[j]*30;