r/DoomModDevs • • Oct 09 '26

Help How to create an actor that is technically a monster, but can be picked up like an inventory item?

So I’m working on a Ghostbusters mod and I’m trying to figure out how to make a ghost trap that is activated by proximity but also can be used several times. I started with a design based off the mine from realm667, and then I slightly modified it to make it a friendly monster that Melee attacks the enemies when they walk near it. But now the only thing I have to figure out is how I can pick the trap up again so I can bring it somewhere else and use it. Would it be easier to make an invisible actor that’s there as well so when you pick up the actor, it tells the trap to disappear?

5 Upvotes

1 comment sorted by

1

u/Soulless_Bestiary 28d ago

I mean, you can do something similar... in vanilla. Using Dehacked.

In flags, you would flag the monster as "can be picked up".
And then, every single state it uses, needs to be a valid pickup sprite.

So, if you want the monster to give you... for example, rockets, then every state of this enemy should use a ROCK sprite. It's gonna function normally, do the whole look, chase, target, attack routine, but, if you get near it (into the pickup range), you will get the item, and the monster will disappear.

I did make a vanilla-compatible Boomerang recently. It's basically the same thing.

It's not a monster, but, I have a weapon that uses cell ammo, I launch the projectile, and then it comes back while using the CELLA0 - CELLD0 sprites (valid plasma ammo pickup), meaning I pick up the Boomerang, and can use it again.

If I were making this in vanilla, that is the route I'd go.
You would have a weapon that uses cell ammo, shoots a plasma projectile, the plasma projectile is a monster (don't know about friendly melee though, I can only make it target enemies if it gets damaged), and then, when you get bored, you simply pick the monster up, giving you one ammo, meaning you can spawn it elsewhere.