by Serino » Thu Aug 01, 2019 6:04 am
Hello. I apologise if this is already known, not a bug, or a mistake on my part. I created a pistol which inherits from a base weapon. Its alt-fire is supposed to perform a kick attack, with some of the frames using A_WeaponOffset including interpolation in order to smoothen the animation. Once a kick attack is executed, an overlay is called, which is supposed to make the weapon look like it's put aside. However, once A_WeaponOffset is called, the overlay's offset changes as well, despite not having the PSPF_ADDWEAPON flag.
Here's an example PK3. Once loaded, please press the Zoom button. It's a reference of how the overlay's offset should normally be adjusted. Now, please press the Alt-fire button. A kick attack will be performed and the overlay will mess up once the A_WeaponOffset function is called.
- Attachments
-
Offset_Bug.pk3
- (99.25 KiB) Downloaded 36 times
Hello. I apologise if this is already known, not a bug, or a mistake on my part. I created a pistol which inherits from a base weapon. Its alt-fire is supposed to perform a kick attack, with some of the frames using A_WeaponOffset including interpolation in order to smoothen the animation. Once a kick attack is executed, an overlay is called, which is supposed to make the weapon look like it's put aside. However, once A_WeaponOffset is called, the overlay's offset changes as well, despite not having the PSPF_ADDWEAPON flag.
Here's an example PK3. Once loaded, please press the Zoom button. It's a reference of how the overlay's offset should normally be adjusted. Now, please press the Alt-fire button. A kick attack will be performed and the overlay will mess up once the A_WeaponOffset function is called.