A_LookEx with LOF_NOJUMP flag jumps to See state regardless?

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
User avatar
Cherno
Posts: 1309
Joined: Tue Dec 06, 2016 11:25 am

A_LookEx with LOF_NOJUMP flag jumps to See state regardless?

Post by Cherno »

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 all

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;
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: A_LookEx with LOF_NOJUMP flag jumps to See state regardl

Post by Blue Shadow »

You might want to provide a runnable example which produces the problem, because in my tests the flag works fine.
User avatar
Cherno
Posts: 1309
Joined: Tue Dec 06, 2016 11:25 am

Re: A_LookEx with LOF_NOJUMP flag jumps to See state regardl

Post by Cherno »

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 all

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.
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: A_LookEx with LOF_NOJUMP flag jumps to See state regardl

Post by Blue Shadow »

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.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: A_LookEx with LOF_NOJUMP flag jumps to See state regardl

Post by _mental_ »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_LookEx with LOF_NOJUMP flag jumps to See state regardl

Post by Graf Zahl »

Looks all correct to me.
Post Reply

Return to “Closed Bugs [GZDoom]”