Iron Sights and Shadows


So I noticed back when I was programming the revolvers first iteration that it would shoot from the barrel in the direction of the camera, causing it to be visibly offset depending on where the viewmodel was, so what I did here was I implemented an alt-fire toggle for iron sights where the viewmodel will be more strictly locked to right in front of the players face, causing bullets to land at most RIGHT under where you fired them


then after I finished that I somehow just recently noticed my game had no shadows, that is fixed and i got them working with transparent materials.

Files

v3.zip 30 MB
Feb 22, 2023

Get Chia Simulator

Comments

Log in with itch.io to leave a comment.

Forgot to mention iron sights halve everything related to recoil (viewmodel recoil, camera recoil, ect)