r_refdef.scene.entities[r_refdef.scene.numentities++] = entrender;
entrender->entitynumber = edictnum;
//entrender->shadertime = 0; // shadertime was set by spawn()
+ entrender->flags = 0;
entrender->alpha = 1;
entrender->scale = 1;
VectorSet(entrender->colormod, 1, 1, 1);
if(renderflags & RF_NOCULL) entrender->flags |= RENDER_NOCULL;
if(renderflags & RF_DEPTHHACK) entrender->flags |= RENDER_NODEPTHTEST;
if(renderflags & RF_ADDITIVE) entrender->flags |= RENDER_ADDITIVE;
-
}
c = (int)ed->fields.client->colormap;
// either fullbright or lit
if(!r_fullbright.integer)
{
- if (!(entrender->effects & EF_FULLBRIGHT))
+ if (!(entrender->effects & EF_FULLBRIGHT) && !(renderflags & RF_FULLBRIGHT))
entrender->flags |= RENDER_LIGHT;
else if(r_equalize_entities_fullbright.integer)
entrender->flags |= RENDER_LIGHT | RENDER_EQUALIZE;
// hide player shadow during intermission or nehahra movie
if (!(entrender->effects & (EF_NOSHADOW | EF_ADDITIVE | EF_NODEPTHTEST))
&& (entrender->alpha >= 1)
+ && !(renderflags & RF_NOSHADOW)
&& !(entrender->flags & RENDER_VIEWMODEL)
&& (!(entrender->flags & RENDER_EXTERIORMODEL) || (!cl.intermission && cls.protocol != PROTOCOL_NEHAHRAMOVIE && !cl_noplayershadow.integer)))
entrender->flags |= RENDER_SHADOW;
#define RF_USETRANSPARENTOFFSET 64 // Allows QC to customize origin used for transparent sorting via transparent_origin global, helps to fix transparent sorting bugs on a very large entities
#define RF_NOCULL 128 // do not cull this entity using r_cullentities, for large outdoor entities (asteroids on the sky. etc)
+#define RF_FULLBRIGHT 256
+#define RF_NOSHADOW 512
+
extern cvar_t csqc_progname; //[515]: csqc crc check and right csprogs name according to progs.dat
extern cvar_t csqc_progcrc;
extern cvar_t csqc_progsize;