How much space does Thing_Spawn need?

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.
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

How much space does Thing_Spawn need?

Post by Nevander »

Is there some kind of buffer space requirement for Thing_Spawn/Thing_SpawnFacing?

I have this spot in my map where Barons are supposed to spawn in a pit that is made by the floor and ceiling being lowered down first. There is plenty of space from the floor to the ceiling (192 to be exact) and the sectors themselves are 64x64 large. That is plenty of room to spawn a Baron in but the spawn keeps failing.

The Barons themselves have a radius of 26 (which is total width of 52, leaving a buffer space of 12 units) and a height of 98. That actor can fit into a 64x64x192 space, but the spawn fails.

Can someone explain why the spawning fails with these dimensions because I expect it to succeed.
jdagenet
Posts: 77
Joined: Tue Aug 09, 2011 10:26 pm

Re: How much space does Thing_Spawn need?

Post by jdagenet »

I don't think there is any kind of limitation like that, and if there is that's just stupid.

Try spawning the Baron using SpawnForced. If it still doesn't spawn then make sure your map spot actually exists in the map, that is, isn't being filtered out by wrongly passed skill flags.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: How much space does Thing_Spawn need?

Post by Graf Zahl »

Hard to say without the map...
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: How much space does Thing_Spawn need?

Post by Nevander »

I found out the problem, I did a noob thing and used MapSpot instead of MapSpot (gravity). I still would like to know if that function requires any extra space or not, I suppose I can test it using the exact monster size and spawn them in a sector that exact size.
User avatar
Kappes Buur
 
 
Posts: 4208
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada

Re: How much space does Thing_Spawn need?

Post by Kappes Buur »

https://www.doomworld.com/idgames/docs/editing/metrics
I would imagine that this applies to sourceports as well.

Return to “Editing (Archive)”