Skip to end of metadata
Go to start of metadata

This is a guide on how to use vision files, and a brief explanation of the vision settings available in CoD5.

NOTE: Before reading this guide, determine where your World at War root directory is located.

Non-Steam Install: C:\Program Files (x86)\Activision\Call of Duty World at War\

Steam Install: C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\

For the rest of this guide, it will be assumed that the word "root" refers to the appropriate installation path shown above.

Say 'Yes to all' if Windows asks you about replacing files when dragging files into your root directory.

WARNING: If after following this guide precisely your vision is not working, it is most likely because you are using Sniperbolt's base scripts (or you used a script placer) which sets your vision to "zombie_factory" be default. If this is the case for you, see below:

Open Root/raw/maps/createart/<mapname>_art.gsc.

Find this line and delete this line:

level thread maps\_utility::set_all_players_visionset( "zombie_factory", 0.1 );

Guide starts here:

Create a .vision file

Create a new file with any Text Editor you prefer most. Create a new text file containing this code:

r_glow                    "1"
r_glowRadius0             "5"
r_glowRadius1             "0"
r_glowBloomCutoff         "0.260564"
r_glowBloomDesaturation   "0"
r_glowBloomIntensity0     "0.65"
r_glowBloomIntensity1     "0"
r_glowSkyBleedIntensity0  "0"
r_glowSkyBleedIntensity1  "0"
 
r_filmEnable              "1"
r_filmContrast            "1.6"
r_filmBrightness          "0.34"
r_filmDesaturation        "0.175"
r_filmInvert              "0"
r_filmLightTint           "0.930 0.8676 0.754"
r_filmDarkTint            "0.315 0.299 0.275"

r_reviveFX_enable		"0"
r_reviveFX_contrastEdge		"0"
r_reviveFX_brightnessEdge	"0"
r_reviveFX_desaturationEdge	"0"
r_reviveFX_darkTintEdge		"1 1 1"
r_reviveFX_lightTintEdge	"1 1 1"
r_reviveFX_blurRadiusEdge	"0"
r_reviveFX_motionblurWeight	"0"
r_reviveFX_contrastCenter	"0"
r_reviveFX_brightnessCenter	"0"
r_reviveFX_desaturationCenter	"0"
r_reviveFX_darkTintCenter	"1 1 1"
r_reviveFX_lightTintCenter	"1 1 1"

Those are the default vision settings for mp_airfield. Save the file as <mapname>.vision, where <mapname> represents the map you want to use the vision for. This is not required, but is suggested.

Save your vision file in Root/raw/vision.

Enable your .vision in a map

Adding the .vision to map assets

To enable your vision in a map, first you must add the .vision to your map's assets.

1.4 Map: Open Root/zone_source/<mapname>_patch.csv

1.1 Map: Open Root/zone_source/<mapname>.csv

Add this line to the top of the file:

rawfile,vision/<visionfilename>.vision

Save and close the file.

Enabling the .vision in your map

Now it is time to actually set the .vision file to be used in your map.

Open Root/raw/maps/<mapname>.gsc in a text editor.

Add

set_all_players_visionset( "<visionfilename>", 0.1 );

immediately after:

maps\_zombiemode::main();

so that it looks like:

maps\_zombiemode::main();
set_all_players_visionset( "<visionfilename>", 0.1 );

Where <visionfilename> is the file name of the vision file you created, without the .vision extension. Example: "ugx_cabin.vision" would be entered as "ugx_cabin".

to the end of the main() function of your Root/raw/maps/<mapname>.gsc.

Compiling the changes

You are almost finished. To see your changes, you need to:

1.4 Map: Compile your map once now, so that your changes to Root/raw/maps/<mapname>.gsc will take effect, then compile <mapname>_patch once now, and again every time you make a change to the .vision file.

1.1 Map: Compile your map once now, and again every time you make a change to the .vision file.

Settings for Vision Files

All values can only be from 0 to 1 unless otherwise noted.
You can view pictures of what each setting does below the table.

Setting

Description

r_filmEnable

Note: Value can only be 0 or 1. This enables (0) and disables (1) the effects of the r_film settings in this file.

r_filmContrast

Note: Values can be from 0 to 4. This increases the contrast of the vision. If you don't know what contrast is, look it up on Google. Basically a higher value will increase the dramatic difference between light and dark.

r_filmBrightness

This controls the white balance of your vision. Full brightness = white-tinted vision.

r_filmDesaturation

This controls the desaturation level of the vision. Full desaturation = greyscale vision. Anything less than 1 will decrease the greyscale effect, letting some color through.

r_filmInvert

This inverts the color spectrum. White becomes black, black becomes white, and everything in between.

r_filmLightTint

This amplifies all white/specular color in the map. For example, when you have a subway light can model, full lighttint will make the inside of the can a blinding white, while the lowest lighttint will make it dull and grey

r_filmDarkTint

Note: setting this to (0 0 0) will cause your vision to be a solid color. Must be above 0 in order to work properly. This setting is similar to the black level on your TV. The lower this value is, the blacker your vision is and the harder it is to see.

Pictures of Different .vision effects




This is the effect of enabling r_filmInvert.
This is the effect of setting r_filmDesaturation to (1 1 1).
This is the effect of setting r_filmBrightness to (1 1 1).
This is what a r_filmContrast setting of 1.5 looks like on a dark map.

Credit: Treminaor