mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
Add EF_DIMLIGHT to qw, make it work identically in nq.
This commit is contained in:
parent
25ec0b8efd
commit
f6c6d9f03e
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue