Add EF_DIMLIGHT to qw, make it work identically in nq.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2002-06-06 04:14:23 +00:00
parent 25ec0b8efd
commit f6c6d9f03e
2 changed files with 6 additions and 2 deletions

View file

@ -452,12 +452,13 @@ CL_NewDlight (int key, vec3_t org, int effects)
VectorCopy (normal, dl->color);
break;
}
if (effects & EF_DIMLIGHT) {
VectorScale (dl->color, 0.5, dl->color);
}
radius = 200 + (rand () & 31);
if (effects & EF_BRIGHTLIGHT) {
radius += 200;
dl->origin[2] += 16;
} else if (effects & EF_DIMLIGHT) {
time *= 0.001;
}
dl->radius = radius;
dl->die = cl.time + time;

View file

@ -119,6 +119,9 @@ CL_NewDlight (int key, vec3_t org, int effects)
VectorCopy (normal, dl->color);
break;
}
if (effects & EF_DIMLIGHT) {
VectorScale (dl->color, 0.5, dl->color);
}
radius = 200 + (rand () & 31);
if (effects & EF_BRIGHTLIGHT) {
radius += 200;