eezstreet / SWATEliteForce

A modification for SWAT 4: The Stetchkov Syndicate
GNU General Public License v2.0
213 stars 37 forks source link

[BUG] Aiming through the iron sights while leaning #377

Open semodo opened 6 years ago

semodo commented 6 years ago

Targeting is incorrect if you aim through the iron sights while leaning. If you are leaning to the right side, you will shoot few inches to the right from the point you are aiming at. And if you are leaning left, you will shoot to the left side accordingly.

wsevren commented 4 years ago

This looks to be caused by the fact that the weapon rotation is in local space when in ADS. I see the fix as having the weapon follow the rotation of the players viewpoint (rotating around rather than rotating at the origin in local space).