cvar_t cl_beams_polygons = {CVAR_SAVE, "cl_beams_polygons", "1"};
cvar_t cl_beams_relative = {CVAR_SAVE, "cl_beams_relative", "1"};
+cvar_t cl_noplayershadow = {CVAR_SAVE, "cl_noplayershadow", "0"};
+
mempool_t *cl_scores_mempool;
mempool_t *cl_refdef_mempool;
mempool_t *cl_entities_mempool;
&& !(ent->state_current.effects & EF_ADDITIVE)
&& (ent->state_current.alpha == 255)
&& !(ent->render.flags & RENDER_VIEWMODEL)
- && (i != cl.viewentity || (!cl.intermission && !Nehahrademcompatibility)))
+ && (i != cl.viewentity || (!cl.intermission && !Nehahrademcompatibility && !cl_noplayershadow.integer)))
ent->render.flags |= RENDER_SHADOW;
if (r_refdef.numentities < r_refdef.maxentities)
Cvar_RegisterVariable(&cl_stainmaps);
Cvar_RegisterVariable(&cl_beams_polygons);
Cvar_RegisterVariable(&cl_beams_relative);
+ Cvar_RegisterVariable(&cl_noplayershadow);
R_LightningBeams_Init();