Garry's Mod

Garry's Mod

592 ratings
NPC Flashlights System
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
12.068 KB
4 Feb @ 9:31pm
29 Aug @ 4:46pm
5 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)
3
21 Jul @ 3:09pm
Bug Report
Potato PC[TW]
61 Comments
Lymbio_21 4 Oct @ 1:14am 
what are the npcs in the images?
Jiyū to anzen  [author] 29 Aug @ 4:51pm 
Although it can only work if the weapon being switched to has a flashlight attachment, otherwise the flashlight will stay on. Still prevents more than one flashlight per-NPC though
Jiyū to anzen  [author] 29 Aug @ 4:49pm 
@Lynch added support for your addon
Lynch 26 Aug @ 10:39pm 
@Jiyū to anzen Thanks! Great addon btw!
Jiyū to anzen  [author] 26 Aug @ 10:38pm 
@Lynch Sure! I’ll add support.
Lynch 26 Aug @ 8:37pm 
Hello! I would like to suggest compatibility with my addon "Lynch's NPCs Essentials" and its Weapon Switching feature. When a Combine Soldier switches weapons, the flashlight from their previous weapon remains permanently on. I suggest making a change to the code to make the flashlight turn off if it detects that the NPC has switched active weapons. Thanks in advance.
Ebyprofen 26 Aug @ 6:03am 
fuck
Kuobano 20 Aug @ 8:54am 
:steamthumbsup:
Potato PC[TW] 18 Aug @ 6:23am 
"NPC Flashlights System" don't seem to interact with mods related to day and night.

This refers to "Atmos - Day/Night and Weather Modification" and "Day & Night System."

However, their performance in the map:
"SCP 3008 The not so infinite IKEA"
is quite impressive.

Aside from these minor flaws, this mod is arguably the best I've found.
01 10 Aug @ 6:37pm 
Will try.