3 New Notifications

New Badge Earned
Get 1K upvotes on your post
Life choices of my cat
Earned 210

Drag Images here or Browse from your computer.

Trending Posts
Sorted by Newest First
J
Johnson1408 07.02.22 11:56 pm

Mouse X Invert (left to right) (STALKER: Call of Pripyat)

Hello everyone! I would like to ask a question. The game has a mouse inversion setting. And in the game, it works on the Y axis (top to bottom)! When you turn on the inversion, you move the mouse away from you, the camera goes down and vice versa. And I need it along the X axis. When you move the mouse to the left and in the game the turn goes to the right and vice versa. Why do I need it? There is only one reason - I wanted to play stalker at standard locations from a different angle (mirrored). Since the locations in the stalker have already been studied and become 100% boring, and there is no longer any interest in them. And interest in the game is fading away. Yes, the weapon will be on the left side, and the text will be unreadable, but for me this is not a problem, since I have gone through everything more than once! There is a reshade-shaders program for the Call of Pripyat and with its help you can set a new color scheme and new effects, and you can also use it to mirror the image.
Spoiler The fx file itself for inverting the image using reshade-shaders
texture BackBufferTex : COLOR;
sampler BackBuffer { Texture = BackBufferTex; };

void PostProcessVS(in uint id : SV_VertexID, out float4 position : SV_Position, out float2 texcoord : TEXCOORD)
{
texcoord.x = (id == 2) ? 2.0 : 0.0;
texcoord.y = (id == 1) ? 2.0 : 0.0;
position = float4(texcoord * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0);
}

void PS_Mirror(in float4 position : SV_Position, in float2 texcoord : TEXCOORD, out float4 o : SV_Target0)
{
o = tex2D(BackBuffer, float2(1 - texcoord.x, texcoord.y));
}

technique MirrorScreen
{
pass
{
VertexShader = PostProcessVS;
Pixel Shader = PS_Mirror;
}
}
The file itself was not written by me, but taken from another source. I don't remember exactly where, because I've been looking at a bunch of forums.
But due to the inversion of the image when moving the mouse to the left, the rotation in the game goes to the right! And this is where I need to invert the mouse along the X axis (from left to right). And not as it is in the game along the Y axis (top to bottom). And the next question is whether it is possible to somehow invert the mouse in the game along the X axis in order to control the game under the inverted image was correct. Third party software doesn't help.
I tried AutoHotkey (it doesn't work correctly in the game itself!)
SpoilerBlockInput Mouse
SetMouseDelay -1

MouseGetPos y, oldy
SetTimer WatchMouse, 1
Return

WatchMouse:
MouseGetPos x, y
MouseMove 0, 2*(oldy-y), 0, R
MouseGetPos y, oldy
Return

!z::ExitApp

Also tried MouseInverter on desktop but not in game!

Spoiler









False


False





There is also a console command in the game (mouse_invert 'on/off' or '1/0') which is incl. inversion along the Y axis and is it possible to change its lines somewhere so that not the inversion of the Y axis but the X axis is turned on. Or write a script for the game that can enable inversion along the X axis. I myself do not understand anything about this and now I’m interested in more experienced and knowledgeable people

examples






0 Comments
Sort by: