VectorCopy (neworg, ent->persistent.trail_origin);
// persistent.modelindex will be updated by CL_LerpUpdate
- if (ent->state_current.modelindex != ent->persistent.modelindex)
+ if (ent->state_current.modelindex != ent->persistent.modelindex || !ent->state_previous.active)
VectorCopy(neworg, oldorg);
VectorCopy (neworg, ent->render.origin);
if (effects)
{
if (effects & EF_BRIGHTFIELD)
- CL_EntityParticles (ent);
+ {
+ if (gamemode == GAME_NEXIUZ)
+ {
+ dlightcolor[0] += 100.0f;
+ dlightcolor[1] += 200.0f;
+ dlightcolor[2] += 400.0f;
+ // don't do trail if we have no previous location
+ if (ent->state_previous.active)
+ CL_RocketTrail (oldorg, neworg, 8, ent);
+ }
+ else
+ CL_EntityParticles (ent);
+ }
if (effects & EF_MUZZLEFLASH)
ent->persistent.muzzleflash = 100.0f;
if (effects & EF_DIMLIGHT)
}
}
-static void CL_RelinkViewModel(void)
-{
- entity_t *ent;
- if (!r_drawviewmodel.integer || chase_active.integer || envmap || !r_drawentities.integer || cl.items & IT_INVISIBILITY || cl.stats[STAT_HEALTH] <= 0 || cl.viewent.render.model == NULL)
- return;
-
- ent = &cl.viewent;
- // FIXME: set up view model here?
- if (r_refdef.numentities < r_refdef.maxentities)
- r_refdef.entities[r_refdef.numentities++] = &ent->render;
-}
-
void CL_Effect(vec3_t org, int modelindex, int startframe, int framecount, float framerate)
{
int i;
CL_RelinkWorld();
CL_RelinkStaticEntities();
CL_RelinkNetworkEntities();
- CL_RelinkViewModel();
CL_RelinkEffects();
CL_RelinkBeams();
CL_MoveParticles();