Wrong timing in revenant states

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

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 Reply
Gez
 
 
Posts: 17942
Joined: Fri Jul 06, 2007 3:22 pm

Wrong timing in revenant states

Post by Gez »

See thread. The revenant's melee state should last 0 tics.

Convenient pull request so it can be fixed in a couple of clicks.
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Re: Wrong timing in revenant states

Post by Ed the Bat »

I noticed a similar discrepancy with the Pain Elemental's Missile state frames. If what I'm told about vanilla is correct, the third call to A_FaceTarget should be five tics, not four, and A_PainAttack should be zero tics.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: Wrong timing in revenant states

Post by Edward-san »

Seems to be confirmed:

from chocolate-doom/src/doom/info.c:

Code: Select all

    {SPR_PAIN,32773,5,{A_FaceTarget},S_PAIN_ATK4,0,0},	// S_PAIN_ATK3
    {SPR_PAIN,32773,0,{A_PainAttack},S_PAIN_RUN1,0,0},	// S_PAIN_ATK4
though if I were nitpicky I'd post it in another bug report :P .
User avatar
Zhs2
Posts: 1300
Joined: Fri Nov 07, 2008 3:29 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Maryland, USA, but probably also in someone's mod somewhere
Contact:

Re: Wrong timing in revenant states

Post by Zhs2 »

The thread Gez also lists an incorrect behavior with the Mancubus states...
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: Wrong timing in revenant states

Post by Edward-san »

I have a question: should this:

Code: Select all

{SPR_PAIN,32773,0,{A_PainAttack},S_PAIN_RUN1,0,0},   // S_PAIN_ATK4
be converted to:

Code: Select all

PAIN A 0 BRIGHT A_PainAttack
or should I use 'PAIN F 0'?


[edit] Whatever, I used the former version, then made this pull request fixing both pain elemental and mancubus.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Wrong timing in revenant states

Post by Graf Zahl »

I hope that's everything now.
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Re: Wrong timing in revenant states

Post by Ed the Bat »

Quick question: is there ever a point to putting the BRIGHT keyword on a 0-tic frame, other than DeHackEd compatibility? I see it happen sometimes and I'm curious.

For that matter, shouldn't that fix have used PAIN F 0 BRIGHT so DeHackEd uses the expected sprite index?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Wrong timing in revenant states

Post by Graf Zahl »

No. A zero-duration frame will never be displayed so it's completely irrelevant if it is brighr or not (or if a dynamic light is attached to it.)
User avatar
Fishytza
Posts: 791
Joined: Wed Feb 23, 2011 11:04 am
Preferred Pronouns: They/Them
Contact:

Re: Wrong timing in revenant states

Post by Fishytza »

Graf Zahl wrote:A zero-duration frame will never be displayed so it's completely irrelevant if it is brighr or not
So it's likewise irrelevant that the A_PainAttack state is (at the moment) 'PAIN A' rather than 'PAIN F'?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Wrong timing in revenant states

Post by Graf Zahl »

Yes, but since it jumps to a PAIN A frame, even less.
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Re: Wrong timing in revenant states

Post by Ed the Bat »

Does DeHackEd not get the frames from the DECORATE definition? That was my concern over changing the F to an A.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Wrong timing in revenant states

Post by Graf Zahl »

Yes, it does. It should be what it was before.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: Wrong timing in revenant states

Post by Edward-san »

Made a new pull request to restore the previous frame letter.
Post Reply

Return to “Closed Bugs [GZDoom]”