Requires ZDoom devbuild 115dbd0 or higher because of [wiki]A_WeaponOffset[/wiki]
26 August 2017: I am no longer using ACS and am going to retire this. Despite stating clearly in my original post that this was a proof of concept and code resource, I am still getting PMs from people asking me how to "fix" this "mod" because "it's not working" with their load order. I never offered to support this "mod" because well it wasn't a mod.Weapon Sway and Weapon Pitch Shifting
by Nash Muhandes
Requires ZDoom/GZDoom dev build 115dbd0 or later
This code example shifts the weapon sprite as you move the view around. Since the original Doom sprites were not made with this effect in mind, most of the graphics will be cut off if you look down too much. You have to provide custom artwork to make the most out of this. For perfect examples of how "tall" a sprite should be, consult the sprites for the Rocket Launcher or the BFG.
Feel free to take this apart and adapt this code for your mods. No permission needed, credits and a link to your mod would be nice. Have fun!
Also, I don't use ACS anymore and even if I plan to return to this project, it will be rewritten from scratch and all the old code will be thrown away so this is as good as dead.
Requesting graveyard.