Making Sticky Bombs

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Ivan
Addicted to Zandronum
Posts: 2229
Joined: Mon Jun 04, 2012 5:38 pm
Location: Omnipresent

Making Sticky Bombs

#1

Post by Ivan » Thu Jul 02, 2015 6:02 pm

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.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===

User avatar
fr blood
Frequent Poster Miles card holder
Posts: 995
Joined: Wed Mar 06, 2013 4:04 pm
Location: France

RE: Making Sticky Bombs

#2

Post by fr blood » Thu Jul 02, 2015 6:54 pm

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.
Last edited by fr blood on Thu Jul 02, 2015 6:56 pm, edited 1 time in total.

User avatar
Ivan
Addicted to Zandronum
Posts: 2229
Joined: Mon Jun 04, 2012 5:38 pm
Location: Omnipresent

RE: Making Sticky Bombs

#3

Post by Ivan » Thu Jul 02, 2015 7:23 pm

That's not quite what I want though, but thanks anyway.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===

Lollipop
Zandrone
Posts: 1124
Joined: Tue Jul 24, 2012 10:34 am
Location: Denmark

RE: Making Sticky Bombs

#4

Post by Lollipop » Fri Jul 03, 2015 11:58 am

IIRC there is a weapon on r667 that does something like what you described. I have forgotten which one it is though.
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there

User avatar
CloudFlash
Zandrone
Posts: 1074
Joined: Mon Jun 04, 2012 5:35 pm
Location: Wonderland (except not really)

RE: Making Sticky Bombs

#5

Post by CloudFlash » Fri Jul 03, 2015 3:08 pm

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
https://i.imgflip.com/i5tpe.jpg
*Hey, who wants to hear my solution to the modern world's problems? ^Me! %Me! @Me! #Me! *WELL TOO BAD @Did he just stab himself with this butcher knife? %Looks like it ^Hey, the pizza guy arrived! %Pizza! Yey

User avatar
Ivan
Addicted to Zandronum
Posts: 2229
Joined: Mon Jun 04, 2012 5:38 pm
Location: Omnipresent

RE: Making Sticky Bombs

#6

Post by Ivan » Fri Jul 03, 2015 3:52 pm

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.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: Making Sticky Bombs

#7

Post by Klofkac » Fri Jul 03, 2015 4:28 pm

Maybe this is more ideal?
๐•‚๐•๐• ๐•—๐•œ๐•’๐•”

User avatar
Ivan
Addicted to Zandronum
Posts: 2229
Joined: Mon Jun 04, 2012 5:38 pm
Location: Omnipresent

RE: Making Sticky Bombs

#8

Post by Ivan » Fri Jul 03, 2015 5:05 pm

Klofkac wrote: Maybe this is more ideal?
Not available in Zandronum yet though.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: Making Sticky Bombs

#9

Post by Klofkac » Fri Jul 03, 2015 5:22 pm

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...
๐•‚๐•๐• ๐•—๐•œ๐•’๐•”

User avatar
ร†nima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

RE: Making Sticky Bombs

#10

Post by ร†nima » Fri Jul 03, 2015 5:40 pm

Yeah I think the WARPF_COPYINTERPOLATION flag would have done you good.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Post Reply