1 - I do not understand the first question but look at this mod:
when the laser gun to an enemy it turns red, if not point to any entity is blue.
2.
You can create a very simple entity called "mylight"
with this code. Items.qc opened and wrote the final.
(You need a sprite null in the folder progs,) if you do not have it (the sprite is in many mods so it's easy to find, or you can create you) you can use the s_bubble.spr.
void () mylight =
{
precache_model ("progs/null.spr");
self.solid = SOLID_NOT;
self.movetype = MOVETYPE_NONE;
setmodel (self, "progs/null.spr");
self.effects = EF_DIMLIGHT;
};
Save and compile.
in self.effects you can put the other effects present in defs.qc
EF_BRIGHTFIELD
EF_MUZZLEFLASH
EF_BRIGHTLIGHT
EF_DIMLIGHT
if your mod is for Darkplace, you can find very good new effects dpextensions.qc
after you put the new item on the map and enjoy.[/u]