Garry's Mod

Garry's Mod

929 ratings
IFL - CLIENTSIDE Improved Flashlight
3
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Realism
File Size
Posted
Updated
22.575 KB
4 Feb @ 9:18pm
21 Feb @ 1:32am
5 Change Notes ( view )

Subscribe to download
IFL - CLIENTSIDE Improved Flashlight

Description
A fully clientside improved flashlight system.

Built around singleplayer.

Allows you to fully customize the flashlight, attach it to your weapon (first and third person!) and enable aesthetics like flickering and chances for the flashlight to turn off when taking damage.

Pretty optimized and its made work with many different weapons and situations. Also has a cool sway effect when not attached to weapon in first person.

Also respects mp_flashlight ConVar!





----------------------------------------------------------------

ConVars:

IFL_flashlight 1/0 - Enable/Disable IFL flashlight.
IFL_flashlight_flicker 1/0 - Enable/Disable flashlight flickering effects.
IFL_flashlight_weapon 1/0 Use weapon (worldmodel and viewmodel) muzzle attachment for flashlight, if available.
IFL_flashlight_color (R G B) Set flashlight color, seperated by spaces.
IFL_flashlight_brightness (VALUE) - Set flashlight brightness.
IFL_flashlight_fov (VALUE) - Set flashlight fov.
IFL_flashlight_texture (NAME) - Sets flashlight texture.
IFL_flashlight_farz (VALUE) - Set flashlight farz (distance).
IFL_flashlight_nearz (VALUE) - Set flashlight nearz (cutoff). This is helpful for self shadowing on PM’s or weapons.
IFL_flashlight_swayfactor (VALUE) - Set flashlight sway factor (how fast it sways).
IFL_flashlight_ondamage 1/0 - Sets if flashlight should have a chance to turn off on damage.
IFL_flashlight_sprite 1/0 - Sets if flashlight (if IFL_flashlight_weapon 1) should draw a sprite.
IFL_flashlight_pushback 1/0 - Sets if flashlight should be pushed backwards near a wall.

IFL_flashlight_flicker_freq (VALUE) - Sets how rare flickering is.
IFL_flashlight_flicker_int (VALUE) - Sets how intense flickering is.

IFL_flashlight_Blacklist_Add (Path/MODELNAME.mdl) - Adds model to blacklist.
IFL_flashlight_Blacklist_Remove (Path/MODELNAME.mdl) - Removes model from blacklist.

IFL_GetWorldModel - Gets players worldmodel name (thirdperson).
IFL_GetViewModel - Gets players viewmodel name (firstperson).

----------------------------------------------------------------

This was my favorite addon to make so far- enjoy!

If a weapon has incorrect attachment angles or shouldn’t attach (some crowbar replacements do this) then you can blacklist them using the commands above!

Possible future updates planned:

-Multiplayer support
156 Comments
БEБI ⁧⁧ОNGО 23 Aug @ 1:08pm 
YOU COULD DO ANOTHER VERSION WITH THE MULTIPLAYER COMPATILIBITY AND LEAVE THIS ONE SO PEOPLE THAT WANTS CLIENTSIDE USES THIS AND THE OTHERS USE THE OTHER VERSION
bobellan476 21 Aug @ 8:29pm 
When i use this mod for some reason no light actually comes on, just a sprite on the end of my gun, and ive tried uninstalling, reinstalling, and trying different mods, but I cant fix it? is this a common issue with the mod/ a capability issue? ive seriously tried almost everything at this point to bring the flashlight back on but nothing works.
RestfulTitan99 18 Aug @ 7:39pm 
as world u can play
RestfulTitan99 18 Aug @ 7:39pm 
can u help me port my custom buildingd=s to garrys mod workshop lol if so whats your discord
Jiyū to anzen  [author] 11 Aug @ 1:46pm 
@Parrowlili It seems many people want a multiplayer feature and I really can’t add stuff like that without sacrificing the client-side element. I’m still looking into how I can make this addon stay clientside
Parrowlili 11 Aug @ 12:34pm 
wait, so the clientside part won't be.. clientside? anymore? :SweetShine_Sob:
i was super interested in it but, will that mean the server has to have it too?
WolfBite 10 Aug @ 3:02am 
Dont think it agrees with mwbase but dope mod regardless. <3
thisisntfox 29 Jul @ 6:29am 
would be nice to be able to choose custom position of flashlight for each weapon model
deirdremoo 22 Jul @ 2:05pm 
sad part about this addon is that the flashlight won't affect npcs that can be affected by the flashlight
CoralCinder 14 Jul @ 10:25am 
doesn't like M9K, especially one of the sniper rifles, good addon overall