V2 of the flashlight SWEP by me. Also a super huge awesome big thanks to mrflippy for working out the battery script, and fixing most of my errors for me :).
You can just overwrite the old flashlight files:
Extract to garrysmod/garrysmod/
This is much more practical and realistic than the first one.
Use: Left click to turn on and right click to turn off. Every second it is on, it will drain 2 'battery' and when it is off, it will regen 1 'battery'. However if you hit 0 then you have to wait for it to get enough power to turn back on (which is 5 energy (10 seconds))
This SWEP disbales the 'f' flashlight so I do not recommend downloading it unless you are really going to use it. Or if you want to be able to use this and the regular flashlight just delete the cl_init script under lua/weapons/flashlight.
The view model is the same, I couldn't find anything better. I also made the world model the toolgun so it doesn't look like you're going to shoot someone.
If there are any bugs/suggestions post them here.