Anyway, my flashlight:
Exhibit A:
I thought of the quest to make a flashlight, realized that I don't think this was tried before, and found that I was actually on to something.
I set up a "dummy" effect, one that didn't actually show up as anything visible, and set this as the ordance's collision effect.
Created a clear texture, and set this as the ordance's texture.
Then I set the bolt's lightcolor value to 224 224 160 150 (yellowish). I set the lightradius to 6.0 (very, very large compared to most stock ones). I also set the damage to 0.0 (no sense getting shot by a flashlight). I set the muzzleflash to have an extremely small radius.
I got a rifle that shot light which slowly illuminated trees as the invisible bolt passed them.
Well, how did I get rid of that? I changed the velocity to 2000.0, very high, so it reached the target fairly instantaneously, so that you wouldn't see a ghost circle of light pass by the trees slowly.
All right, this resulted in a rapid flash followed by darkness. No good.
In the flashlight weapon's ODF, I set the shot delay to 0.07, making for extremely rapidfire shots, to get rid of the quick-flash effect. Then I gave it infinite ammo and no overheat.
Result: hold secondary fire key, and point. An even circle of nice, flashlight-esque light appears where ever you point. Since it's not an effect, it actually lights stuff up. Release secondary fire, and it shuts off.
I'm content with this, I'll use it in many dark maps where something like this can be employed very strategically. Any thoughts? I'll upload the actual ODFs, tgas, and .fx's tomorrow, for reference and use.












