[Not a bug] [4.2.1] A_Chase skipping to "flags:" doesn't work

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

[4.2.1] A_Chase skipping to "flags:" doesn't work

Postby Matt » Thu Oct 10, 2019 2:59 am

Code: Select allExpand view
class blah:demon{
   states{
   melee:
      SARG EFG 6 A_TroopAttack();
   see:
//      SARG AABBCCDD 4 A_Chase("Melee","Melee",CHF_DONTMOVE);
      SARG AABBCCDD 4 A_Chase(flags:CHF_DONTMOVE);
      loop;
   }
}
Expected: monster will look for targets in one place.

Actual: monster will wander about.

If I swap out the commented line instead, it will do the expected thing.
User avatar
Matt
Putting the XD into *xdeath since 2007
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: [4.2.1] A_Chase skipping to "flags:" doesn't work

Postby Blue Shadow » Thu Oct 10, 2019 4:36 am

I think because you're keeping the melee and missile states parameters as defaults, the old, "hardocded" A_Chase is used.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: [4.2.1] A_Chase skipping to "flags:" doesn't work

Postby Graf Zahl » Thu Oct 10, 2019 5:02 am

Precisely that. The standard case needs special treatment because it cannot be replicated with the other parameters.
Which somehow should have been evident since the defaults for the states are definitely not "Melee" and "Missile" but mere placeholders.
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: Awario [RSS] and 2 guests