The muzzle Flash is a simple bitmap and a dynamic light will lighten your weapon, ennemies and surrounding ! But it's not necessary for the weapon !
Do u think iam an idiot ? My muzzle flash script has a dynamic light. By the way i use a model for the muzzle, no bitmap. The Weapon is not lighted cause it has a normal mapping specular shader that only reacts to the sun.
The function is called __light_strike. And its somethink like that (written down from the head):
function __light_strike()
{
MY.LIGHTRED = 120;
MY.LIGHTBLUE=90;
MY.LIGHTGREEN=90;
MY.LIGHTRANGE = 50+random(100);
WAIT(1);
MY.LIGHTRANGE = 0;
}
The Night is cause of the extrem small clip_far range. That was the reason. It will all change to day with a new stronger engine.