DECORATE: Homing missiles (yet again)

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
MartinHowe
Posts: 2056
Joined: Mon Aug 11, 2003 1:50 pm
Preferred Pronouns: He/Him
Location: East Suffolk (UK)

DECORATE: Homing missiles (yet again)

Post by MartinHowe »

I am trying to approximate the Wraithverge in DOOM and need for various reasons to create such a weapon from scratch. This weapon should ideally fire a number of fireballs that select targets at random from any bunch of monsters that are visible to the player or within a certain (but large) radius and home in on them. If the missiles could weave about a bit on their way, like real HeXen spirits, then so much the better, but not essential.

I have reviewed some threads that mention homing missiles and got a few ideas; but before spending ages experimenting by trial-and-error, has anybody recently tried to make a weapon that does this reliably (e.g., using the latest GZDoom functionality), and how far did they get? Any ideas or example code would be much appreciated.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Post by wildweasel »

Unfortunately, the "generic" homing missile method is nowhere close to the way Wraithverge does things. Same goes for Bloodscourge.
User avatar
TheSonOfBaphomet
Posts: 3
Joined: Tue May 02, 2006 9:37 pm
Location: Neither here nor there

Post by TheSonOfBaphomet »

I've tried this before. Sadly this is the furthest I got.
Spoiler:

Now while this does work (at close range), the rocket's will turn on you if no monsters are present.
User avatar
MartinHowe
Posts: 2056
Joined: Mon Aug 11, 2003 1:50 pm
Preferred Pronouns: He/Him
Location: East Suffolk (UK)

Post by MartinHowe »

Right then, here is something that looks pretty much what I wanted to achieve. The animations and so forth can be fine-tuned as needed, but the real bugbear is getting the spirits to self-destruct when their target is dead or after some random time. I have not tried the MISSILE flag with A_CountDown (or whatever it's called) in case that has side effects, but will probably have a go anyway.
User avatar
MartinHowe
Posts: 2056
Joined: Mon Aug 11, 2003 1:50 pm
Preferred Pronouns: He/Him
Location: East Suffolk (UK)

Post by MartinHowe »

I have solved the problem of unused spirits, at least to the extent that it looks reasonably "natural" (or should that be unnatural :) ); here is the latest version. Any comments or suggestions on how to improve it would be welcome.
Locked

Return to “Editing (Archive)”