Addon Entry

Now supporting the newest garrysmods.org

New : UserScript to add a search button to any garrysmod.org download page Script Page Install It!

Mirrors

Mirror 1 - Show

File: Night Vision Script 1.1
Version: 0
Garrysmod.org URL: http://www.garrysmod.org/downloads/?a=view&id=120165
Description: I've decided to update my old Night vision script, which was last updated almost a year ago.

Changelog:

1.1:
+ Added in AIM (Alternate Illuminating Method) (described below what it does)
+ Added in ISIB's (Illumination-Smart Intensity Balancing) sensivity controls
+ Added in illumination brightness controls
+ Revamped the menu
+ Added in a Goggle Effect
+ Added in a Tonemap Effect
+ Added in a Camera Effect
/\ Lightened the code
/\ Fixed ID (Illumination-Detection) spazzing a lot when the player is in a dark place, has ID turned on and is dead
/\ Fixed a small bug that noone noticed and noone cared about

1.03:
+ Added in ISIB (Illumination-Smart Intensity Balancing) (described below what it does)

1.02:
+ Added in an ID (Illumination-Detection) customizable reaction time delay (to avoid quick turn on/offs when going through areas with rapidly changing illumination scale)
+ Added in missing descriptions
+ Blur effect intensity is now customizable
/\ Fixed resetting controls not defaulting ID (Illumination-Detection) to off
/\ Fixed resetting controls not turning off night vision is it was turned on
/\ Changed some console commands (check the console command list)

1.01:
+ You can now customize how dark the area has to be for ID (Illumination-Detection) to function
/\ Fixed slightly incorrect darkness level calculation which lead to night vision quickly turning on/off when landing with ID (Illumination-Detection) turned on
/\ ID (Illumination-Detection) is now OFF by default

Q: What's this?

A: This is a very customizable night vision script

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 sensivity of ISIB
- Modify the range at which AIM works
- Toggle on/off a distortion effect
- Toggle on/off a blur effect
- Modify the intensity of the blur effect
- Toggle on/off the green overlay effect
- Toggle on/off the goggle effect
- 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: How do I install this?

A: It's in addon format, so, extract to your addons folder.

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: For some reason on a map I'm playing on ID doesn't seem to work at all!

A: Some maps have a slight lighting bug that mess up the detection of dark areas, I might fix that later.

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 shouldn't use anything more/less than the recommended limits of the sliders.

Q: I'm having performance issues.

A: Reduce Illumination range, increase Brightness to 1.0 (100%), turn off the Distort effect, turn off the Goggle effect, turn off Blur.
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 the readme and what each feature does before using this.

Q: Can I get banned for using this?

A: If you run around the server and scream "I'M USING A NIGHT-VISION SCRIPT" like an idiot, 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.

Features:
- Completely client-side (other people won't see you use this)
- Highly customizable
- ID (Illumination-Detection)
- ETISD (Eye Trace Illumination-Sensitive Detection)
- ISIB (Illumination-Smart Intensity Balancing)
- AIM (Alternate Illuminating Method)

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_sensivity_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_sensivity <2 - 10> - control the sensivity of ISIB (Illumination-Smart 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_reset_everything - self-explanatory
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

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

Customizable:
- Sensivity
- 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-Smart Intensity Balancing):
Automatically balances the intensity of your night-vision depending on the level of darkness in the area you're in.

Customizable:
- Sensivity

AIM (Alternate Illuminating Method):
Illuminates the place where you are looking at.

Customizable:
- Range

Credits:
blackops7799 - darkness illuminating light, blur effect
Kogitsune - helped me out with ETISD
TetaBonita - sound effects/turn on effect

YouTube video (version 1.0):
http://www.youtube.com/watch?v=QutF17GWWE0



Image: Night