Jump to content

Trying to get Cat vision to activate with Witcher Sense


Recommended Posts

My modding skills are amateur at best. I tried to get Cat potion effect to activate with Geralt's Witcher Sense but all i got was permanent Cat effect when I activated Witcher Sense. I don't know what I'm doing but got kinda close. Any thoughts would help. I thought activating Cat on cue would be cool. Not super useful. I copied the Cat Effects portion from the potion file and pasted it in what i thought was the appropriate spot, but like I said all i got was permanent Cat when I used Witcher Sense.

Link to comment
Share on other sites

Check EnableScreenFx function in scripts\game\gameplay\effects\effects\potion\Cat.ws

	private final function EnableScreenFx(en : bool)
	{
		if(en)
		{
			EnableCatViewFx( 1.0f );	
			SetTintColorsCatViewFx(Vector(0.1f,0.12f,0.13f,0.6f),Vector(0.075f,0.1f,0.11f,0.6f),0.2f);
			SetBrightnessCatViewFx(350.0f);
			SetViewRangeCatViewFx(200.0f);
			SetPositionCatViewFx( Vector(0,0,0,0) , true );	
			SetHightlightCatViewFx( Vector(0.3f,0.1f,0.1f,0.1f),0.05f,1.5f);
			SetFogDensityCatViewFx( 0.5 );
			isScreenFxActive = true;
		}
		else
		{
			isScreenFxActive = false;
			DisableCatViewFx( 1.0f );
		}
	}

You can use some parts of this code in focus activate/deactivate functions in

content\scripts\game\gameplay\focus\focus.ws

 

I've just made a quick test mod and it works :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...