If you want to turn it on/off for every weapon in game use this script
:
;Artificial Intelligence Script
;Written by Airslide
;Header
desc = Flashlight Script (on/off)
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecoretextflash.png,hudname=flashlight,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=30:state=1,setalphafade=0,coloff,plrsound=audiobankmiscpick.wav
:state=1,scancodekeypressed=33:hudshow=flashlight,state=2
:state=2:state=3
:state=3,scancodekeypressed=33:state=2
:state=3:state=4
:state=4,scancodekeypressed=33:hudunshow=flashlight,state=5
:state=5:state=6
:state=6,scancodekeypressed=33:state=5
:state=6:state=1
;End of Script
It is actually my equivalent of S4's script (written from scratch, not actually a modification), without ambience change (never got around to that) and therefore uses his image for testing, but this one is made as a pickup and allows you to turn it on/off with the same button
(F, in this case).
I tried setting up your crosshair image but both the one in the zip and the one for commercial use didn't work - the transaprency didn't show up. I'll try using the one Seth posted, since I don't have GIMP on my laptop (I do have Photoshop, but not a DDS importer). If you have S4's flashlight, which I think was given out on a user-by-user basis, this script will work as-is.
Instructions:
Place a flashlight pickup somewhere (a good one to use would be WW2->Items->Torch) and give it this script. Select Always On to Yes. Now test game and pick it up. Press F to turn on and F again to turn off, no more two key flash-lights. You could easily change it to something like X like FEAR if F is activate or something in your game. If you want the player to start the level with the flashlight you can either remove the plrdistwithin condition in state 10 or place it right under the player. Some work could get it to work in the setuplevel script aswell.
EDIT: Seth's doesn't work either. Drat. If you could make a PNG like S4's that might work.
And Nickydude - even though you haven't asked yet, yes, you can put this in your guide
EDIT 2: Wait, won't work as-is even with S4's flashlight already installed. You'll need to add slashes to the hud file pointer, the forum seems to have removed them.
Vote today and play the games!