DarklightGames / DarkestHour

Darkest Hour: Europe '44-'45
https://store.steampowered.com/app/1280/Darkest_Hour_Europe_4445/
69 stars 21 forks source link

Breda 30 tracers originate from the wrong position #1732

Closed cmbasnett closed 1 month ago

cmbasnett commented 1 month ago

The reason for it being so off is that it is spawning the tracer at the location of the third person muzzle, even on the firing client. Since the game will auto-align the player's third person model to the terrain, this means that the first and third person muzzle bones can be wildly different.

This is not just an issue with the Breda, but it's especially noticeable on the Breda because it is quite a long gun, and there are lots of sloped and angles surfaces on the maps where it's available.

In the picture below, the player is aiming the gun straight ahead, but the game positions the player angling up. The end result is that, from the first person perspective, the tracers are spawning about half a meter above where it appears they're supposed to be.,

Image

The solution would be for the owning client (the one firing the gun) to spawn tracers at the position of the first person muzzle.