A_WeaponOffset affecting A_OverlayOffset without the flag

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: A_WeaponOffset affecting A_OverlayOffset without the flag

Re: A_WeaponOffset affecting A_OverlayOffset without the fla

by Major Cooke » Fri Aug 02, 2019 7:33 pm

It's not a waste of time, rest assured. By default it's naturally implied especially if it's assigned from a weapon.

Re: A_WeaponOffset affecting A_OverlayOffset without the fla

by Serino » Fri Aug 02, 2019 10:53 am

Thank you for your response. I didn't know that. It does seem to work, although the offsets need re-adjustment. Thanks for your help! Wonder why the Wiki does not state this? Regardless, you can close this thread now. Sorry for your wasting time.

Re: A_WeaponOffset affecting A_OverlayOffset without the fla

by Major Cooke » Thu Aug 01, 2019 8:16 pm

I'm unable to look at the moment, but did you specifically call A_OverlayFlags and set PSPF_ADDWEAPON to false? By default, any overlay created automatically has PSPF_ADDWEAPON included.

A_WeaponOffset affecting A_OverlayOffset without the flag

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

Top