This file was automatically imported from the old site. You can see other imported files on the reuploads page.

Flashlight SWEP

  • Reuploaded by:
  • Uploaded: 6 years ago
  • Updated: 6 years ago
  • Type: Weapon
  • Downloads: 1,073 (0 last 7 days)
  • Views: 1,782 (2 last 7 days)
  • Size: 1.84 MB
  • Tags: sweps
Originally uploaded by devilsson on 13th July 2007 16:16 pm

A flashlight SWEP by Devilsson2010 (me). Also a super huge awesome big thanks to mrflippy for working out the battery script and working out most of my errors.
You can just overwrite the old flashlight files:
Extract to garrysmod/garrysmod/
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.
Any bugs/suggestions visit the forums:

This download looks like an unpacked addon. You can either convert the files to an addon or merge the folders in the zip with the folders in your Garry's Mod folder.

Convert to Addon (Recommended)

You should end up with a directory structure similar to below:

  • steamapps
    • common
      • garrysmod
        • garrysmod
          • addons
            • Flashlight SWEP V2 <-- Make this folder!
              • e.g.
              • lua
              • maps
              • materials
              • models
              • etc

Or, Merge Folders (Not recommended)

This option makes it difficult to remove the content should you no longer want it. Merge any folders from the zip with the equivalent folders in your Garry's Mod folder.

Don't know where the Garry's Mod folder is or how to extract zip files? See more useful installation tips.

  • lua/
    • weapons/
      • flashlight/
        • battery_charger.lua
        • cl_init.lua
        • shared.lua
  • materials/
    • models/
      • weapons/
        • v_flashlight/
          • arm2.vmt
          • arm2.vtf
          • arm2_normal.vtf
          • arm2_ref.vtf
          • beam1.vmt
          • beam1.vtf
          • bulb.vmt
          • bulb.vtf
          • flare.vmt
          • flare.vtf
          • flashlight2.vmt
          • flashlight2.vtf
          • flashlight2_death.vmt
          • flashlight2_death.vtf
          • flashlight2_hud.vmt
          • flashlight2_hud.vtf
          • flashlight2_local.vtf
          • flashlight2_normal.vtf
          • flashlight2_ref.vtf
          • flashlightw.vtf
          • flashlight_hud.vmt
  • models/
    • weapons/
      • v_flashlight_on.dx80.vtx
      • v_flashlight_on.dx90.vtx
      • v_flashlight_on.mdl
      • v_flashlight_on.sw.vtx
      • v_flashlight_on.vvd
  • readme.txt