use link in other post
(Many thanks to lurker for the RegExs)
Basically the point is that you no longer have to add each and every bitmap you use in CEGs into your resources.lua, just stick them in the corresponding subdirs.
Also it cleans up the adding of caustics/smoke/scars, (compare to the base file), speaking of which I'm sure a more competent lua coder could clean this up and add it to base file, so most mods would not even need to override it
