[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 1:59 am

Code: Select allExpand view
class blah:demon{
      SARG EFG 6 A_TroopAttack();
//      SARG AABBCCDD 4 A_Chase("Melee","Melee",CHF_DONTMOVE);
      SARG AABBCCDD 4 A_Chase(flags:CHF_DONTMOVE);
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
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 3: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/201x 64-bit
OS Test Version: No (Using Stable Public Version)
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 4: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+Raze Developer
Lead GZDoom+Raze Developer
Joined: 19 Jul 2003
Location: Germany

Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests