If you wanna do plights on yourself that make it so when your running or are in a dark area then this works...
Nothing big but its something useful. Its like a self light flashlight so when its dark you can see
//--
void SelfLight()
{
if(cvar.pvis == 2)
{
dlight_t *lightme= CL_alloclight
cl_entity_s *me = gengfuncs.getviewmodel
if(me && lightme)
{
lightme->color.r = 255; // Red
lightme->color.g = 255; // Green
lightme->color.b = 255; // Blue
lightme->origin = me->origin;
lightme->radius = 150; // Size
lightme->die = gEngfuncs.GetClientTime() + 0.1;
}
}
}