Super-seeker missiles

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Darlos
Posts: 133
Joined: Mon Apr 09, 2007 1:41 am
Location: Durham, NC
Contact:

Super-seeker missiles

Post by Darlos »

I noticed that regardless of how aggressive you make seeker projectiles, you still have to aim directly at enemies (or just fairly close, with autoaim) for them to have any effect. How would you go about making a seeker projectile that just homes in on the nearest enemy... within reason. I mean, the thing shouldn't fire backwards just because the closest enemy is there. So, I guess, the nearest enemy in a certain "cone" out from the front of the player.
User avatar
The NUtcracker
Posts: 843
Joined: Sun Jan 14, 2007 9:12 pm
Location: South Dakota
Contact:

Post by The NUtcracker »

You can't, AFAIK

[EDIT] That is, unless you use a monster as the projectile.
User avatar
Darlos
Posts: 133
Joined: Mon Apr 09, 2007 1:41 am
Location: Durham, NC
Contact:

Post by Darlos »

Verry crevver...

I'll give it a shot.
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Post by Amuscaria »

You can give a monster a very fast movment speed with numerous A_Chase states lasting 1 tic. Give it a melee attack that either instant executes or something that causes it to explode.

You can also try to inheret the Hexen Bloodscourge projectile. It auto-seeks. But it doesnt explode on impact, it kinda goes though or pushes the monsters along. O_o
User avatar
Darlos
Posts: 133
Joined: Mon Apr 09, 2007 1:41 am
Location: Durham, NC
Contact:

Post by Darlos »

The problem with making it a monster seems to be A_Look... the projectile just kinda floats around while "looking," which looks kinda weird if you want something to keep moving forward while looking.

I messed with the Bloodscourge thing. It did weird stuff and I couldn't really figure it out... like after its death state, it suddenly returns as its spawn state and just sits there and does nothing.
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Post by Siggi »

Wouldn't a monster projectile shoot backwards though? (Not shoot out your back, but fire and potentially target something behind you as soon as it's been spawned).
User avatar
Karnizero
Posts: 84
Joined: Fri Mar 23, 2007 9:42 am

Post by Karnizero »

Eriance wrote:You can give a monster a very fast movment speed with numerous A_Chase states lasting 1 tic. Give it a melee attack that either instant executes or something that causes it to explode.

You can also try to inheret the Hexen Bloodscourge projectile. It auto-seeks. But it doesnt explode on impact, it kinda goes though or pushes the monsters along. O_o
I think that Darlos refers to something like Wraithverge (from Hexen).
Realize that the A_Tracer or simillar projectiles only seeks for one objective.

But you can make a "seeker missile" using this code:
Spoiler: Warning, long code ahead!!!
The result of this code should be something like the Wraithverge weapon from hexen.
User avatar
Darlos
Posts: 133
Joined: Mon Apr 09, 2007 1:41 am
Location: Durham, NC
Contact:

Post by Darlos »

Well, still... what if there's no enemies around? In that case, I just want it to fly forward like a normal rocket would. During A_Look it just kinda hangs there.

And the wraithverge... ah, there was a cool weapon. It was terrible when those big demon-sorceror guys reflected them back at you, though.
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Post by Ryan Cordell »

Code: Select all

print(s:"'big demon-sorceror guy' == Heresiarch.");
User avatar
Karnizero
Posts: 84
Joined: Fri Mar 23, 2007 9:42 am

Post by Karnizero »

Darlos wrote:Well, still... what if there's no enemies around? In that case, I just want it to fly forward like a normal rocket would. During A_Look it just kinda hangs there.

And the wraithverge... ah, there was a cool weapon. It was terrible when those big demon-sorceror guys reflected them back at you, though.
Add "A_Wander" in the spawn state, and they should move around randomly.

You maybe need to add the flag "+LOOKALLARROUND".
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Post by Ichor »

The Bloodscourge from Hexen seeks out the nearest monster once it gets close enough to one, using P_RoughMonsterSearch. Even Menelkir's attacks aimed at the player will sometimes seek out monsters before homing in on him. If you want to make that kind of homing missile, I'd base it on the Bloodscourge.
Locked

Return to “Editing (Archive)”