Seeking Non-Functional in Bounce State

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
amv2k9
Posts: 2178
Joined: Sun Jan 10, 2010 4:05 pm
Location: Southern California

Seeking Non-Functional in Bounce State

Post by amv2k9 »

Pretty much what the title says; A_SeekerMissile, when called from the brand spankin' new Bounce state, does not cause the missile to seek. Unless I'm grossly misunderstanding the Bounce state's capabilities, this looks like a bug to me.

Code:
Spoiler:
I don't have access to my modding comp right now, so I don't have an example wad. But it would take all of 30 seconds for someone to put this in Slade3, so hopefully it's not a problem.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Seeking Non-Functional in Bounce State

Post by Graf Zahl »

Of course it won't seek. You have to call A_SeekerMissile repeatedly so you can't just jump to the spawn state. You have to define another sequence with A_SeekerMissile calls.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Seeking Non-Functional in Bounce State

Post by Ichor »

I think he wants it to act like the big firemace spheres from Heretic, where it changes direction to seek after a target only when it bounces and not any other time.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Seeking Non-Functional in Bounce State

Post by Xaser »

The trouble is that he's only calling A_SeekerMissile for a single tic, which isn't enough to get it to change direction completely, since "threshold" and "maxturnangle" are clamped at a certain value (90?) and don't allow for instantaneous turns (though I can't imagine why -- that'd be a useful feature as well :P ).

tl;dr: Make it seek for a few more tics and it'll turn as desired.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Seeking Non-Functional in Bounce State

Post by Gez »

Ichor wrote:I think he wants it to act like the big firemace spheres from Heretic, where it changes direction to seek after a target only when it bounces and not any other time.
But the [wiki=Classes:MaceFX4]big firemace spheres[/wiki] call [wiki]A_DeathBallImpact[/wiki] which doesn't exactly behave like [wiki]A_SeekerMissile[/wiki], so it's not surprising.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Seeking Non-Functional in Bounce State

Post by Xaser »

Is it not clear he's trying to emulate the effect? :?
User avatar
amv2k9
Posts: 2178
Joined: Sun Jan 10, 2010 4:05 pm
Location: Southern California

Re: Seeking Non-Functional in Bounce State

Post by amv2k9 »

Graf Zahl wrote:You have to call A_SeekerMissile repeatedly so you can't just jump to the spawn state. You have to define another sequence with A_SeekerMissile calls.
I'll give this a go, thanks.
Xaser wrote:...since "threshold" and "maxturnangle"...don't allow for instantaneous turns.
Maybe that's worth a feature suggestion.
User avatar
zrrion the insect
Posts: 2432
Joined: Thu Jun 25, 2009 1:58 pm
Location: Time Station 1: Moon of Glendale

Re: Seeking Non-Functional in Bounce State

Post by zrrion the insect »

Would A_FaceTarget suffice?
User avatar
Enjay
 
 
Posts: 27084
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Seeking Non-Functional in Bounce State

Post by Enjay »

Does a missile necessarily travel in the direction that it is facing?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Seeking Non-Functional in Bounce State

Post by Graf Zahl »

No, only the velocity vector matters.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Seeking Non-Functional in Bounce State

Post by NeuralStunner »

You could call A_SeekerMissile twice on a tic to achieve a 180 degree turn, right?
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Seeking Non-Functional in Bounce State

Post by Ichor »

I managed to get it working.
Spoiler:
If you don't include it, there's a 50% chance that it will not home in on anything. I set mine to 100 so it will always home in. I briefly had SMF_PRECISE, but it turned out to not work for this, which is similar to the big firemace sphere. However, it should work for you.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Seeking Non-Functional in Bounce State

Post by NeuralStunner »

Just to note...
Ichor wrote:If you don't include it, there's a 50% chance that it will not home in on anything. I set mine to 100 so it will always home in.
Wiki wrote:
  • chance
    If the SMF_LOOK flag is used, this is the chance (out of 256) that the missile will try acquiring a target if it doesn't already have one. The default value is 50.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Seeking Non-Functional in Bounce State

Post by Ichor »

Out of 256? I thought it was a percentage. Well, I guess I'll fix that then...
Post Reply

Return to “Closed Bugs [GZDoom]”