A little help with a summoning monster

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
NaturalTvventy
Posts: 92
Joined: Sat May 22, 2010 9:38 am

A little help with a summoning monster

Post by NaturalTvventy »

Greetings Zdoom,

I would like to create a monster that has the power to summon other monsters. basically it will be an archie-looking guy who, instead of frying you when he raises his hands, a flame spawns close to him and out of it pops a monster. I think I'll be able to figure out how to create the spawner, but I don't know how to make it appear near the monster. Can someone help get me started by pointing me in the right direction? And is zdoom smart enough not to spawn stuff in walls or in the void outside of 1-sided linedefs?

Thx,

NT
User avatar
Salad Viking
Posts: 752
Joined: Tue Apr 20, 2010 8:58 pm
Location: In high orbit

Re: A little help with a summoning monster

Post by Salad Viking »

[wiki]A_SummonItemEx[/wiki]

[wiki=Main_Page]This is your friend[/wiki]
NaturalTvventy
Posts: 92
Joined: Sat May 22, 2010 9:38 am

Re: A little help with a summoning monster

Post by NaturalTvventy »

I get an error when I try to use A_SummonItemEx. Namely that A_SummonItemEx is an invalid state.
User avatar
Virtue
Posts: 919
Joined: Sun Nov 19, 2006 8:15 am
Location: Manchester UK

Re: A little help with a summoning monster

Post by Virtue »

are you using the latest Zdoom?
NaturalTvventy
Posts: 92
Joined: Sat May 22, 2010 9:38 am

Re: A little help with a summoning monster

Post by NaturalTvventy »

Yep. A_SpawnItemEx works though :)
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: A little help with a summoning monster

Post by NeuralStunner »

Salad Viking wrote:[wiki]A_SummonItemEx[/wiki]
... Dude, at least make sure your Wiki links go to a valid page. :|
NaturalTvventy
Posts: 92
Joined: Sat May 22, 2010 9:38 am

Re: A little help with a summoning monster

Post by NaturalTvventy »

Behold the evil Diabloist, summoner of all manner of cruel hellspawn...
Spoiler:
(edit of realm667's Diabloist)

Man Zdoom and DECORATE is fun to create with! Alas, he does spawn monsters stuck into walls and beyond them in voidspace, but with good level design hopefully the effect will be minimal.

Thx for helping me get started y'alls.

NT
User avatar
DBThanatos
Posts: 3101
Joined: Fri Apr 14, 2006 3:17 pm
Location: in "the darkness that lurks in our mind"

Re: A little help with a summoning monster

Post by DBThanatos »

he does spawn monsters stuck into walls and beyond them in voidspace
I had this same issue recently, and the only way to deal with it was this:
Spoiler:
The key here is how big the projectile is. With a radius of 20, it makes sure that in whatever it crashes, between the center of the projectile and with what it crashed will be 20 units for the thing to spawn. Kind of hackish, yes, but I couldnt figure a better way.
NaturalTvventy
Posts: 92
Joined: Sat May 22, 2010 9:38 am

Re: A little help with a summoning monster

Post by NaturalTvventy »

Hackish? more like clever. Thanks for the the idea.
Locked

Return to “Editing (Archive)”