Poll: What one is better?
You do not have permission to vote in this poll.
Narwhal
33.33%
3 33.33%
Meow
22.22%
2 22.22%
Chicken
44.44%
4 44.44%
Total 9 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Custom Visions
#1
Lightbulb 
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
Reply

#2
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"
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#3
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
Reply

#4
(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.
Reply

#5
He's saying no custom vision because mw2 mods can't create them
Reply

#6
(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
Reply

#7
Did you tested it?
Don't work.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#8
insteresting, okay
Reply

#9
(09-21-2011, 16:15)Se7en Wrote: Did you tested it?
Don't work.

I have tested in loading real .vision files
Reply

#10
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.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Black Ops 2 Custom background? jotape99 10 11,693 10-29-2013, 07:22
Last Post: xInfinity.
  Custom xanims DidUknowiPwn 8 6,686 08-28-2013, 08:17
Last Post: RaZ
  Help Make ac130 shoot custom bullets Ra3shed 0 2,580 07-23-2013, 13:02
Last Post: Ra3shed
  [Tutorial] Custom gametype HUD iAegle 17 14,280 07-14-2013, 01:16
Last Post: Nekochan
Video Custom Facepaints? Cuddlyedits 5 4,178 07-01-2013, 14:58
Last Post: iPaddie
  Help dedicated servers and custom dvars mattyman 0 2,359 06-22-2013, 07:33
Last Post: mattyman
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 139,187 05-25-2013, 01:05
Last Post: Nero Z zero
  QS Mod by GeKKo v 6.5 with Custom Maps GeKKoFL0X 35 28,874 05-21-2013, 19:30
Last Post: [HARD] Tony.
  [Request] custom gun mod ColorCorrects 2 2,939 05-18-2013, 22:19
Last Post: mitchhacker
  Custom load screen mw3? balakent 4 4,187 05-04-2013, 14:48
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.