Garry's Mod

Garry's Mod

515 ratings
NPC Flashlights System
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
12.245 KB
4 Feb @ 9:31pm
18 Jul @ 1:48am
4 Change Notes ( view )

Subscribe to download
NPC Flashlights System

Description
First, I know that there is a very popular addon already on the workshop like this- however I made this a long time ago and decided to add things I thought were missing about Dynamic Combine Flashlights; only more with a focus towards humanoid npcs.

Main features with this are:

-Customizable color, fov, distance, and texture- some can be determined by whether the npc is combine or human.

-Light stays on gun after npc dies, and gets removed once player picks it up.

-Pretty lightweight.





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

ConVars:

npc_flashlight_humans Enable flashlights for human NPCs.
npc_flashlight_combines Enable flashlights for Combine NPCs.
npc_flashlight_maxactive Maximum number of active flashlights allowed. Any env_projected_texture will be counted.

npc_flashlight_human_color (R G B) - Flashlight color for humans.
npc_flashlight_combine_color (R G B) - Flashlight color for combines.
npc_flashlight_distance (VALUE) - Flashlight distance.
npc_flashlight_human_texture (NAME) - Flashlight texture for humans.
npc_flashlight_combine_texture (NAME) - Flashlight texture for combines.
npc_flashlight_human_fov (VALUE) - Flashlight fov for humans.
npc_flashlight_combine_fov (VALUE) - Flashlight fov for combines.
npc_flashlight_lightlevel (VALUE) - Flashlight lightlevel to turn on.

npc_flashlight_Blacklist_Add (CLASS) - Adds weapon to blacklist
npc_flashlight_Blacklist_Remove (CLASS) - Removes weapon from blacklist

---------------------------------------------------------------------
Popular Discussions View All (1)
2
8 Feb @ 4:32am
Bug Report
Potato PC[TW]
48 Comments
An_Unknown_Player[FIN] 11 May @ 9:53am 
"FarZ" is how far the light casts and "NearZ" is where the light starts.
Man in a can 10 May @ 10:11pm 
Hey. anyone here knows what does "FarZ" and "NearZ" does, I tried tweaking it and forgot the default values for it, I don't see any difference it makes so does this affect anything at all?
marlena.arnold 3 May @ 11:13am 
DR FREEMAN
jimjam1 24 Apr @ 7:04pm 
is it possible to make arc9 weapons compatible? flashlights dont go away after picking up dropped arc9 weapons, and they seem to just float infront of the npc's pelvis
-_ΩmegaTheFlower_- 18 Apr @ 8:22am 
This person below me is a GENIUS, I bet they're gonna be the next Albert Einstein!11!!1!!
Friday_Maxsus228 7 Apr @ 1:28am 
d:steamthumbsup:
Friday_Maxsus228 7 Apr @ 1:27am 
i like it
Декстер Морган 6 Apr @ 10:58am 
+rep nice job
MingeBag 7 Mar @ 8:31am 
i see a bright future for your modding skills, trust