Uploaded July 2024 | Updated November 2026, 5 hours ago
I finally managed to get the camera collision working. I found a function in the game to test if a 3D point with a given radius is colliding with something. With this, I'm testing 50 points between the player and the desired camera position, to simulate a ray cast. The last point before a collision is where the camera is positioned. Also for a smoother collision we can increase the number of points that are tested.
Also, you can see that aiming works for both melee and guns. Autoaim is still there for guns, but now Henry always aims towards the enemy that you're facing (you don't have to be precise for guns to hit). The mod is almost ready to be released.
Aside from that, I managed to hide the hud (this is toggleable), I got a menu system working, and also some fog tests.
I finally managed to get the camera collision working. I found a function in the game to test if a 3D point with a given radius is colliding with something. With this, I'm testing 50 points between the player and the desired camera position, to simulate a ray cast. The last point before a collision is where the camera is positioned. Also for a smoother collision we can increase the number of points that are tested.
Also, you can see that aiming works for both melee and guns. Autoaim is still there for guns, but now Henry always aims towards the enemy that you're facing (you don't have to be precise for guns to hit). The mod is almost ready to be released.
Aside from that, I managed to hide the hud (this is toggleable), I got a menu system working, and also some fog tests.
