Source-checkedTechnology & automation

Better Flashlight

by Liokindy · for Garry's Mod

A simple script to enhance the HL2 flashlight, in third person the flashlight will always come from the player's view instead of the player model's hand, gives players the ability to choose a custom…

184KDownloads
9 mo agoLast updated
Steam WorkshopSource

About Better Flashlight

From Steam Workshop

A simple script to enhance the HL2 flashlight, in third person the flashlight will always come from the player's view instead of the player model's hand, gives players the ability to choose a custom…

A simple script to enhance the HL2 flashlight, in third person the flashlight will always come from the player's view instead of the player model's hand, gives players the ability to choose a custom color and texture for it, and some more

For Developers

This addon overrides the behavior of the default flashlight, but I made sure you can still check for the player's flashlight.

Instead of using Player:FlashlightIsOn() you can use Player:GetNWBool("FlashlightIsOn"), Player:FlashlightIsOn() will always return false if the user is using this addon

The addon respects the Player:CanUseFlashlight() property and runs the PlayerSwitchFlashlight event to check if the player can switch it's flashlight on or off.

As for sound, it does not use or add a custom sound, it uses the default HL2 soundscript "HL2Player.FlashLightOn" and "HL2Player.FlashLightOff", so basic sound replacements should work.

Client ConVars

[table] [tr] [th]Name[/th] [th]Default[/th] [th]Purpose[/th] [/tr] [tr] [td]cl_betterflashlight_local_player_only_shadows[/td] [td]1[/td] [td]If set to 1, only your flashlight will cast shadows[/td] [/tr] [tr] [td]cl_betterflashlight_local_player_only_hl2_style[/td] [td]0[/td] [td]If set to 1, only your flashlight will "pullback" when too close to a wall or object, ignoring other players settings[/td] [/tr] [tr] [td]cl_betterflashlight_glow[/td] [td]1[/td] [td]If set to 1, player flashlights will emit a glow when looked at[/td] [/tr] [tr] [td]cl_betterflashlight_beam[/td] [td]1[/td] [td]If set to 1, player flashlights will emit a visible beam[/td] [/tr] [tr] [td]cl_betterflashlight_beam_alpha[/td] [td]100[/td] [td]The transparency of the beam of a player flashlight[/td] [/tr] [tr] [td]cl_betterflashlight_config_r[/td] [td]255[/td] [td]Your flashlight's color. Red component[/td] [/tr] [tr] [td]cl_betterflashlight_config_g[/td] [td]255[/td] [td]Your flashlight's color. Green component[/td] [/tr] [tr] [td]cl_betterflashlight_config_b[/td] [td]255[/td] [td]Your flashlight's color. Blue component[/td] [/tr] [tr] [td]cl_betterflashlight_config_a[/td] [td]255[/td] [td]Your flashlight's color. Alpha component. NOT USED.[/td] [/tr] [tr] [td]cl_betterflashlight_config_near_z[/td] [td]96[/td] [td]Your flashlight's extra near-z distance, this will try to avoid casting your own shadow[/td] [/tr] [tr] [td]cl_betterflashlight_config_far_z[/td] [td]96[/td] [td]Your flashlight's far-z distance, this is how far it reaches before fading away[/td] [/tr] [tr] [td]cl_betterflashlight_config_angle_lerp[/td] [td]0[/td] [td]Your flashlight's smooth turning factor, 0 is disabled[/td] [/tr] [tr] [td]cl_betterflashlight_config_fov[/td] [td]60[/td] [td]Your flashlight's field-of-view[/td] [/tr] [tr] [td]cl_betterflashlight_config_texture[/td] [td]"effects/flashlight001"[/td] [td]Your flashlight's texture.[/td] [/tr] [tr] [td]cl_betterflashlight_bone_id[/td] [td]""[/td] [td]The ID of the bone where the visual glow and beam will originate from, if it exists in the player-model.[/td] [/tr] [tr] [td]cl_betterflashlight_config_hl2_style[/td] [td]1[/td] [td]Your flashlight's HL2-style setting.[/td] [/tr] [/table]

Server ConVars

[table] [tr] [th]Name[/th] [th]Default[/th] [th]Purpose[/th] [/tr] [tr] [td]sv_betterflashlight_override_default[/td] [td]1[/td] [td]Enable or disable overriding the default flashlight[/td] [/tr] [tr] [td]sv_betterflashlight_follow_viewpunch[/td] [td]1[/td] [td]If set to 1, player flashlights will follow their viewpunch[/td] [/tr] [tr] [td]sv_betterflashlight_disable_in_vehicle[/td] [td]0[/td] [td]Not recommended, buggy. If set to 1, flashlight is always off when in a vehicle[/td] [/tr] [tr] [td]sv_betterflashlight_disable_in_vehicle_only_driver[/td] [td]1[/td] [td]Works with setting above, the restriction will only apply if you are the driver of the vehicle[/td] [/tr] [/table]

Highlights

From source data

Footprint

Rated a light load on a server.

Last update

Its author last shipped an update 9 mo ago.

Better Flashlight on Nxeon

From our catalogue
One-click install
Supported on Nxeon Garry's Mod servers. We download it from Steam Workshop, place it, and restart the server.
Server load
light
Smallest plan we suggest
Garry's Mod — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
2026-02-08, released 2026-02-08

Game versions by loader

LoaderGame versionsNewest
Workshop

From 1 recorded build of Better Flashlight.

Run Better Flashlight on a Garry's Mod server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Steam Workshop as “Workshop”

Technology & automation

Machines, power, logistics and automation.

Compatibility

Game
Garry's Mod

Verified at the source

  • ✓Steam WorkshopOfficial listing, checked 2026-11-01Open ↗
  • ✓AuthorLiokindy, as published on Steam Workshop
  • ✓LicenseNot published by the sourceFree

Better Flashlight, answered

Generated from the mod’s own source data.

Is it free?

Yes. Better Flashlight is free to download from Steam Workshop.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Better Flashlight on a Garry's Mod server.

Deploy in about a minute from $3.99 a month, then add Better Flashlight in one click.