How to change the culling of objects too much close to camera in UDK

Hello my friend Nathaniel, thanks for trying to help me.

Unfortunately the ability to control the NearClipPlane through ini files was added on July 2011 Build, while my custom UDK is based on the May 2011 build. However, yes, I do have C++ access, because my custom build of UDK Engine, and I already found the file where is declared the NearClipPlane:

Development\Src\Core\Src\Core.cpp

FLOAT NEAR_CLIPPING_PLANE = 10.0f; /* Near clipping plane */

But the problem is that my PC is very old, it takes many hours the rebuild the entire UDKGame source code in Visual Studio. And also I use a lot of decals on my game’s maps, many particles also, so maybe changing the Near clipping plane for fixing my weapons can break other things.

Since I just wanted to change a bit the zoom aiming of my game, because many players complained of the zoom aiming of my game, just a non smooth transition from normal to zoomed mode, I decided to make something similar to iron sights of modern games.

And since this is just a cosmetic feature, I realized that it does not need to be exactly like those modern shooters, since I am looking for giving my game a retro vibe. So I simply changed the position of the gun on the iron sight animation, like this

As you can see, unfortunatelly the player can’t look through the scope lens, but at least it works…

1 Like