[GZDoom] Enemy Sprite Angle Bug

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Graaicko
Posts: 532
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

[GZDoom] Enemy Sprite Angle Bug

Post by Graaicko »

So I made all the enemies fire a tracer projectile and now they don't Face the target when you go around them, despite the actor having a A_FaceTarget flag. Video provided to show What I mean. Will also provice code.



This is the Actor code:
Spoiler:
User avatar
Enjay
 
 
Posts: 27070
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: [GZDoom] Enemy Sprite Angle Bug

Post by Enjay »

You only call A_FaceTarget once right at the start of the the attack sequence. Try sticking a few extra A_FaceTarget entries in before each attack in the sequence.
User avatar
Graaicko
Posts: 532
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

Re: [GZDoom] Enemy Sprite Angle Bug

Post by Graaicko »

Enjay wrote:You only call A_FaceTarget once right at the start of the the attack sequence. Try sticking a few extra A_FaceTarget entries in before each attack in the sequence.
I tried that, it didn't work before. but I tried it again, and now it works. w..t..f.. some weird things have been going on with either gzdoom or the .pk3. Anyways, thanks.
Post Reply

Return to “Scripting”