Garry's Mod

Garry's Mod

175 ratings
(not really) Fixed Night Vision
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Scenic, Realism
File Size
Posted
289.793 KB
22 Dec, 2021 @ 4:08am
1 Change Note ( view )

Subscribe to download
(not really) Fixed Night Vision

Description
Something-something, gmod broke things again with updates, if it works for you, lucky I guess.

The fixed version of the Nightvision mod released back in 2014. Fixed constant flow of LUA errors by solving some problems here and removing one function I couldn't brurteforce fix there. Removed function is "Film grain" effect, that originally could be turned on or off. All other functions remained unchanged or got bruteforce fixed. "Bruteforce fixed" because my knowledge of LUA only allows me to fix obvious errors.

It is known to create errors when combined with certain addons
So far I've been unable to catch what causes it, but there is a chance that for you this mod will still be an error. Just make sure to unsubscribe from original mod to make sure it won't screw you over

Credit (the version of the mod I edited):
Spy - the creator.
Night Vision - The version of the mod that I edited.

Features remained after the bruteforce fix:
- Completely client-side (other people won't see you use this)
- Highly customizable
- Night Vision and Forward-Looking Infrared Thermal Vision goggle types
- ID (Illumination-Detection)
- ETISD (Eye Trace Illumination-Sensitive Detection)
- ISIB (Illumination-Smart Intensity Balancing)
- AIM (Alternate Illuminating Method)
- FLIR (Forward-Looking Infrared)

Q: How different is it from other night vision scripts?

A: Unlike most scripts, this script actually illuminates the area around you instead of simply modifying on-screen colors

Q: How customizable is it?

A: You can:
- Modify the illumination radius
- Modify the brightness of the illumination
- Modify the speed of how fast the night vision turns on
- Modify the needed darkness level for ID work (described below)
- Modify the reaction time of ID
- Modify the range at which ETISD works (described below)
- Modify the sensitivity of ISIB
- Modify the range at which AIM works
- Switch between FLIR thermal vision and the regular night vision
- Toggle on/off a distortion effect
- Toggle on/off a blur effect
- Modify the intensity of the blur effect
- Toggle on/off a green overlay effect
- Toggle on/off a goggle effect
- Toggle on/off a bloom effect
- Customize the amount of alpha passes
- Easily reset everything

Q: I bet it works only on console commands

A: Yes, and no. You can access an in-game menu by going to Q > Options > NVScript > Client.
You can also control everything using the console commands (command names are below)

Q: Do I need any additional games for this to work?

A: No, all the needed materials are included. (5 materials)

Q: My night vision goes all crazy when I have ETISD turned on!

A: Turn it off or decrease the range at which it works.

Q: ETISD doesn't seem to work.

A: ETISD only works with ID turned on.

Q: I've been playing around with the controls, and was writing in numbers instead of using the slider, and now the night-vision is messed up!

A: You should only use values within the slider limits. Press the "Reset Settings" button.

Q: I'm having performance issues.

A: Reduce Illumination range, increase Brightness to 1.0 (100%), turn OFF the Distort effect, turn OFF the Bloom effect, turn OFF the Goggle effect, turn OFF Blur, turn ON ISIB.
The recommended settings of the night-vision are set when you reset the settings.

Q: The menu looks complicated, and I don't even know what does stuff like ID or ETISD do!

A: Read below.

Q: Can I get banned for using this?

A: If you run around the server and scream "I'M USING A NIGHT-VISION SCRIPT", then maybe.
Although you shouldn't get banned unless you're using this in a gamemode where the enemy needs to be lurking in the shadows and you openly brag about using a night-vision script.
And no, you can't get VAC banned for this either.

Console Commands:
nv_togg - toggle the night-vision
nv_id_status <0 - 1> - turn ID (Illumination-Detection) on/off
nv_id_reaction_time <0.1 - 1.0> - time for ID (Illumination-Detection) to react when entering a dark/bright area (in seconds) (higher = slower)
nv_id_sens_darkness <0.05 - 1.0> - darkness scale at which ID (Illumination-Detection) starts functioning (higher = darker)
nv_etisd_status <0 - 1> - turn ETISD (Eye Trace Illumination-Sensitive Detection) on/off
nv_etisd_sensitivity_range <100 - 500> - set the range at which ETISD (Eye Trace Illumination-Sensitive Detection) is functional
nv_isib_status <0 - 1> - turn ISIB (Illumination-Smart Intensity Balancing) on/off
nv_isib_sensitivity <2 - 10> - control the sensitivity of ISIB (Illumination-Sensitive Intensity Balancing)
nv_aim_status <0 - 1> - turn AIM (Alternate Illumination Method) on/off
nv_aim_range <50 - 300> - range at which AIM (Alternate Illumination Method) works
nv_fx_blur_status <0 - 1> - turn Blur effect on/off
nv_fx_blur_intensity <0.2 - 1.75> - control how intense the blur effect is
nv_fx_distort_status <0 - 1> - turn Distort effect on/off
nv_fx_colormod_status <0 - 1> - turn Green Overlay effect on/off
nv_fx_goggle_status <0 - 1> - turn Goggle effect on/off
nv_fx_bloom_status <0 - 1> - turn Bloom effect on/off
nv_toggspeed <0.02 - 1.0> - set the speed at which your night vision turns on
nv_illum_area <64 - 1024> - set the distance which is illuminated whenever night vision is turned on
nv_illum_bright <0.2 - 1.0> - set the brightness of the night-vision
nv_type <1 - 2> - 1 is night vision, 2 is FLIR thermal vision
nv_reset_everything - self-explanatory

What do ID/ETISD/ISIB/AIM do?
ID (Illumination-Detection):
Automatically turns on your night-vision whenever you enter a dark area.

Customizable:
- Sensitivity
- Reaction time

ETISD (Eye Trace Illumination-Sensitive Detection):
Automatically turns off your night-vision when looking at a bright area from a dark area.

Customizable:
- Range

ISIB (Illumination-Sensitive Intensity Balancing):
Automatically balances the intensity of your night-vision depending on current area's level of darkness.

Customizable:
- Sensitivity

AIM (Alternate Illuminating Method):
Illuminates towards your aim direction.

Customizable:
- Range

Credits (initial release, in 2010):
blackops7799 - darkness illuminating light, blur effect
Kogitsune - helped me out with ETISD
TetaBonita - sound effects/turn on effect

Post Scriptum

Last update to the mod was released back in 2014, thus I came to a conclusion that official support for it is over and the mod is abandoned. It would be a shame to just let the mod die because of the game update so long after the initial release, so I took opportunity to fix it to some extent and let it live. However, I think that I should give proper cretit to the original creator and their work.
52 Comments
SPRÏNTY 1 Jul @ 9:09am 
Sorryyyyy :'3
Night_Sniper  [author] 1 Jul @ 9:05am 
well fuck
I really can't be fucked to fix whatever the heck else got broken with gmod updates
SPRÏNTY 1 Jul @ 8:11am 
okay nvm its making errors too-

[Fixed Night Vision] bad argument #3 to 'Add' (function expected, got nil)
1. Add - lua/includes/modules/hook.lua:31
2. unknown - lua/autorun/client/nvscript.lua:277
3. unknown - lua/includes/modules/concommand.lua:54
SPRÏNTY 1 Jul @ 8:04am 
tysm for the fix lol, it was getting very annoying
if it's not hard, could you add an option to remove the scanlines?
edl411 8 Apr @ 6:27pm 
Does anyone get a white slashed border on their screen when they turn this on?
I saw a YouTuber use this in a Adrian Shephard instead of Gordon type thing and he had this on fullscreen. How do I make it like that?
Gordon, GORDAN! 8 Nov, 2024 @ 4:50pm 
I think this mod would be worth the time to fix up, though if something IS indeed broken, It's a novel little flashlight alternative.
Gordon, GORDAN! 8 Nov, 2024 @ 4:49pm 
The mod is still working for me but it can be a bit finnicky with my addon lists
sometimes, I get a white cross across my screen and behind it, I don't seem to see any illumination.
Shadowman 13 Sep, 2024 @ 5:13pm 
to bind it to toggle is just bind key nv_togg
Secret 28 Jun, 2024 @ 7:16am 
how do I bind it tho