mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
Add small cyan light to lightning impacts. And restore particle direction use in nq. Greatly improves blood effects.
This commit is contained in:
parent
376f05d357
commit
2941c07b0a
9 changed files with 84 additions and 55 deletions
|
@ -381,10 +381,27 @@ CL_ParseTEnt (void)
|
|||
case TE_GUNSHOT: // bullet hitting wall
|
||||
case TE_BLOOD: // bullets hitting body
|
||||
cnt = MSG_ReadByte (net_message) * 20;
|
||||
pos[0] = MSG_ReadCoord (net_message);
|
||||
pos[1] = MSG_ReadCoord (net_message);
|
||||
pos[2] = MSG_ReadCoord (net_message);
|
||||
R_RunPuffEffect (pos, prot_to_rend[type], cnt);
|
||||
break;
|
||||
|
||||
case TE_LIGHTNINGBLOOD: // lightning hitting body
|
||||
pos[0] = MSG_ReadCoord (net_message);
|
||||
pos[1] = MSG_ReadCoord (net_message);
|
||||
pos[2] = MSG_ReadCoord (net_message);
|
||||
|
||||
// light
|
||||
dl = R_AllocDlight (0);
|
||||
VectorCopy (pos, dl->origin);
|
||||
dl->radius = 150;
|
||||
dl->die = cl.time + 0.1;
|
||||
dl->decay = 200;
|
||||
dl->color[0] = 0.25;
|
||||
dl->color[1] = 0.40;
|
||||
dl->color[2] = 0.65;
|
||||
|
||||
R_RunPuffEffect (pos, prot_to_rend[type], cnt);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue