[Closed] A_LookEx with LOF_NOJUMP flag jumps to See state regardless?

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

A_LookEx with LOF_NOJUMP flag jumps to See state regardless?

Postby Cherno » Sun Jun 23, 2019 10:41 am

Did anyone recently used A_LookEx with the LOF_NOJUMP flag successfully? Apparently, the flag is ignored and it always jumps to the monster's See state (no matter which State you provide, even "null").

Code: Select allExpand view
Spawn:
      BATH BBCCDDEEDDCCBB 1
      {
         A_LookEx(LOF_NOJUMP, 0, 0, 0, 180, "See");
      }
      Loop;

      See:
      TNT1 A 0
      {
         A_Log("Chase");
      }
      BATH B 1 A_Chase;
                Loop;
User avatar
Cherno
 
Joined: 06 Dec 2016

Re: A_LookEx with LOF_NOJUMP flag jumps to See state regardl

Postby Blue Shadow » Sun Jun 23, 2019 6:08 pm

You might want to provide a runnable example which produces the problem, because in my tests the flag works fine.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: A_LookEx with LOF_NOJUMP flag jumps to See state regardl

Postby Cherno » Fri Jul 12, 2019 4:17 pm

Ok, after some further testing it seems like the jump to a specified state ("See" by default) is indeed averted, but I still think there is buggy behavior seeing as the alert sound is played as if the monster was alerted.

Code: Select allExpand view
class ZombiemanTest : Zombieman replaces Zombieman
{
   States
   {
      Spawn:
      POSS AB 10
      {
         A_LookEx(LOF_NOJUMP,0,0,0,0,"See");//monster doesn't jump to the See state, but plays alert sound constantly.
      }
      Loop;

   }
}


I assume that the workaround is clear the default alertsound and play one manually via PlaySound() when the monster becomes alerted.
User avatar
Cherno
 
Joined: 06 Dec 2016

Re: A_LookEx with LOF_NOJUMP flag jumps to See state regardl

Postby Blue Shadow » Sat Jul 13, 2019 12:27 am

Yeah, I noticed the SeeSound thing during my testing. I think you might want to create a new bug report for that, since it and the bug report in the OP are about two different things.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: A_LookEx with LOF_NOJUMP flag jumps to See state regardl

Postby _mental_ » Sat Jul 13, 2019 3:57 am

So, what doesn't work here exactly? State switch can be avoided with LOF_NOJUMP flag. See sound can be disabled with LOF_NOSEESOUND flag.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: A_LookEx with LOF_NOJUMP flag jumps to See state regardl

Postby Graf Zahl » Sat Jul 13, 2019 4:27 am

Looks all correct to me.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests