ItsMods

Full Version: Custom Visions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello, OMA

A new tutorial, this one is about creating custom visions without using new vision files. For it we are going to use dvars with the command SetClientDvar. Example:

Code:
self SetClientDvar("r_blur",0.62);
self SetClientDvar("r_brightness",0.05);
self SetClientDvar("r_contrast",1);
self SetClientDvar("r_glow",1);
self SetClientDvar("r_glow_allowed",1);
self SetClientDvar("r_glowRadius0",0);
self SetClientDvar("r_glowBloomCutoff",0.97);
self SetClientDvar("r_glowBloomDesaturation",0.61);
self SetClientDvar("r_glowSkyBleedIntensity0",0.25);
self SetClientDvar("r_filmEnable",1);
self SetClientDvar("r_filmInvert",0);
self SetClientDvar("r_filmBrightness",0.14);
self SetClientDvar("r_filmDesaturation",0.98);
self SetClientDvar("r_filmLightTint","1 0.7 0.32");
self SetClientDvar("r_filmDarkTint","1 1.05 0.9");
self SetClientDvar("r_spotLightBrightness",14.32);

That example will give you more or less a sepia vision(I messed around a bit to get sepia but is not 100% true sepia).

Info:
The dvars you should use are the r_something, most of them are relationated with vision, this is a list copied from @d0h! post:

Now, lets use a good and easy function to make more and call them easily

Code:
SetVision(vision)
{
    switch(vision)
    {
        case "sepia":
            self SetClientDvar("r_blur",0.62);
            self SetClientDvar("r_brightness",0.05);
            self SetClientDvar("r_contrast",1);
            self SetClientDvar("r_glow",1);
            self SetClientDvar("r_glow_allowed",1);
            self SetClientDvar("r_glowRadius0",0);
            self SetClientDvar("r_glowBloomCutoff",0.97);
            self SetClientDvar("r_glowBloomDesaturation",0.61);
            self SetClientDvar("r_glowSkyBleedIntensity0",0.25);
            self SetClientDvar("r_filmEnable",1);
            self SetClientDvar("r_filmInvert",0);
            self SetClientDvar("r_filmBrightness",0.14);
            self SetClientDvar("r_filmDesaturation",0.98);
            self SetClientDvar("r_filmLightTint","1 0.7 0.32");
            self SetClientDvar("r_filmDarkTint","1 1.05 0.9");
            self SetClientDvar("r_spotLightBrightness",14.32);
        break;
        case "superblurry":
            self SetClientDvar("r_blur",2);
        break;
    }
}

Now just do and enjoy your "custom" vision:

Code:
self SetVision("sepia");

Thats it, Nyan Cat
Possible to call the raw\vision\vision.vision vision files as client vars without having to copy all of these and put self setClientDvar in front etc.?
Code:
r_filmEnable                  "1"
r_filmMidStart                "0.25"
r_filmMidEnd                  "0.75"
r_filmDarkFeather             "0.5"
r_filmLightFeather            "0.5"
r_filmColorTemp               "6500 6500 6500"
r_filmHue                     "0 0 0"
r_filmSaturation              "1 1 1"
r_filmDarkTint                "1 1 1"
r_filmMidTint                 "1 1 1"
r_filmLightTint               "1 1 1"
r_filmContrast                "1.2 1.2 1.2"

r_sCurveEnable                "1"
r_sCurveShoulderStrength      "0.068"  
r_sCurveLinearStrength        "0.413"  
r_sCurveLinearAngle           "0.093"  
r_sCurveToeStrength           "0.117"  
r_sCurveToeNumerator          "0.000"  
r_sCurveToeDenominator        "0.228"  


r_reviveFX_Enable        "0"
Aww, at first I thought you got the custolm .VISION files working but then I saw;

(09-21-2011, 16:02)Yamato Wrote: [ -> ]creating custom visions without using new vision files

Sad
(09-21-2011, 16:04)AZUMIKKEL Wrote: [ -> ]Possible to call the raw\vision\vision.vision vision files as client vars without having to copy all of these and put self setClientDvar in front etc.?
Code:
r_filmEnable                  "1"
r_filmMidStart                "0.25"
r_filmMidEnd                  "0.75"
r_filmDarkFeather             "0.5"
r_filmLightFeather            "0.5"
r_filmColorTemp               "6500 6500 6500"
r_filmHue                     "0 0 0"
r_filmSaturation              "1 1 1"
r_filmDarkTint                "1 1 1"
r_filmMidTint                 "1 1 1"
r_filmLightTint               "1 1 1"
r_filmContrast                "1.2 1.2 1.2"

r_sCurveEnable                "1"
r_sCurveShoulderStrength      "0.068"  
r_sCurveLinearStrength        "0.413"  
r_sCurveLinearAngle           "0.093"  
r_sCurveToeStrength           "0.117"  
r_sCurveToeNumerator          "0.000"  
r_sCurveToeDenominator        "0.228"  


r_reviveFX_Enable        "0"

To do that, call directly the vision into the player. I did this tutorial for not using those files.

@Rendflex Maybe in aiw you can load a file you create with info like that and rename it to .vision. Probably loads, but I havent tried. In liberation it doesnt work, Big Grin, because you can only load gsc files.
He's saying no custom vision because mw2 mods can't create them
(09-21-2011, 16:11)jariz Wrote: [ -> ]He's saying no custom vision because mw2 mods can't create them

But probably in aiw you can use real .vision files. Because aiw modloader allows to load other kind of files like gsc,csv,weapon, shock or others, probably .vision too
Did you tested it?
Don't work.
insteresting, okay
(09-21-2011, 16:15)Se7en Wrote: [ -> ]Did you tested it?
Don't work.

I have tested in loading real .vision files
Quote:To do that, call directly the vision into the player. I did this tutorial for not using those files.
Was about to say "that didn't help much" but then I looked at the section. My bad.
Pages: 1 2