Page 1 of 1

Making Sticky Bombs

Posted: Thu Jul 02, 2015 6:02 pm
by Ivan
I've recently tried to code a sticky bomb from Shadow Warrior (again, because of new features and old one was buggy) but now I have some new problems. The bomb will jump up and down when it's attached to a monster. I believe it had to do with trying to constantly move itself to the monster. It looks really jittery and fucked up. Here's a little test wad.

stickytest

I'd like to know if anyone had any success coding this without this issue happening, if so I'd like to use it.

RE: Making Sticky Bombs

Posted: Thu Jul 02, 2015 6:54 pm
by fr blood
I've managed to make something close to this, but the projectile will stay stuck to the monster only if they are in front of you, so behind a wall it will stop following the monster.

If you want the code I can share it here.

RE: Making Sticky Bombs

Posted: Thu Jul 02, 2015 7:23 pm
by Ivan
That's not quite what I want though, but thanks anyway.

RE: Making Sticky Bombs

Posted: Fri Jul 03, 2015 11:58 am
by Lollipop
IIRC there is a weapon on r667 that does something like what you described. I have forgotten which one it is though.

RE: Making Sticky Bombs

Posted: Fri Jul 03, 2015 3:08 pm
by CloudFlash
Does anyone recall a gun named 'Flare gun'? I don't remember exactly what mod was it in, but I do remember it working in kinda similar way sticky bombs should work in - namely, you shot a monster and a small fire followed them for a moment before exploding and damaging the target

RE: Making Sticky Bombs

Posted: Fri Jul 03, 2015 3:52 pm
by Ivan
Apparently calling A_SeekerMissile constantly when it's attached is bad, and it makes it just do a jittery move around the actor. Also, the Flare gun from Blood apparently requires the "NOAUTOAIM" to not be present at all, otherwise it won't work. This is totally weird, but I guess for a quick workaround that's good enough.

RE: Making Sticky Bombs

Posted: Fri Jul 03, 2015 4:28 pm
by Klofkac
Maybe this is more ideal?

RE: Making Sticky Bombs

Posted: Fri Jul 03, 2015 5:05 pm
by Ivan
Klofkac wrote: Maybe this is more ideal?
Not available in Zandronum yet though.

RE: Making Sticky Bombs

Posted: Fri Jul 03, 2015 5:22 pm
by Klofkac
Ivan wrote:
Klofkac wrote: Maybe this is more ideal?
Not available in Zandronum yet though.
Oh, it was added in ZDoom 2.6.0, damn...

RE: Making Sticky Bombs

Posted: Fri Jul 03, 2015 5:40 pm
by Ænima
Yeah I think the WARPF_COPYINTERPOLATION flag would have done you good.