Handles gun positioning, animation and state updates. More...
Functions | |
| void | Gun_Update () |
| [PostUpdate] Updates the gun's state, position, and particles | |
Handles gun positioning, animation and state updates.
Updates the position, rotation, and particle systems for weapons based on player position and input direction.
| void Gun_Update | ( | ) |
[PostUpdate] Updates the gun's state, position, and particles
Updates gun state.
Updates the gun's position relative to the player, calculates the angle based on mouse position, and updates particle emitter positions for muzzle flash and casings. Flips the gun sprite horizontally when aiming to the left.