mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-02 04:32:24 +00:00
Fix for invisible players, etc etc. (QW protocol is nasty)
This commit is contained in:
parent
5644666f0c
commit
50fec20142
2 changed files with 16 additions and 4 deletions
|
@ -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
|
||||
//
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue