So just giving you what I could throw together with zero testing whatsoever (I'm at work).
function torchdecal_init(e)
LoadImages("torchdecal",1)
SetImagePosition(50,50)
end
function torchdecal_main(e)
if g_PlayerFlashlight == 1 then
SetImageAlignment(0)
SetImagePosition(50,50)
if math.random(0,50)==1 then
ShowImage(1)
else
HideImage(1)
end
else
HideImage(1)
end
end
Obviously this is a complete cludge of landman's cool torch hack. But it should get the job done.
Basic concept is you invert the concept to only apply a blanket sized transparency image which will dim the flashlight once in a while when a random value is met. It's very simplistic and ideally you'd use something like smallg's flicker script instead but I felt this would work for now so here you go
The zip file has all the necessary files, hopefully in the right order.
Recently updated my review blog.
http://gamegurureport.blogspot.com