hh79 / gzdoomvr

Classic Doom/Heretic/Hexen games in stereo 3D and VR; modified version of gzdoom.
GNU General Public License v3.0
125 stars 10 forks source link

spawnofs_xy parameter from functions like A_FireProjectile has no effect #57

Open iAmErmac opened 3 years ago

iAmErmac commented 3 years ago

projectile firing function like A_FireProjectile doesn't allow offsetting the projectile spawn further left/right from the weapon offset. This is needed to have different projectile firing offsets for dual wielding weapons (like akimbo mode for zBlood for which I'm working on a model based weapon set). Right now I'm using some ugly hacks like model projectile (which I can offset in modeldef) or texture offset for sprite models and in some cases emulating a projectile like behavior using A_SpawnItemEx (which supports left/right offset using yofs parameter) but these type of hacks has their own limitations. I'll rather use a functional A_FireProjectile with proper left/right offset for cleaner coding.