How to display a randomized item in gzdoom builder?

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
PixelWAD
Posts: 188
Joined: Sun Jun 10, 2018 7:01 pm

How to display a randomized item in gzdoom builder?

Post by PixelWAD »

So right now I'm using the 'bugfix' edition of gzdoom builder and now my models are showing up properly with the textures.
However I'm using some replacements / randomizers. For example, I'm replacing BigTree sprite from Doom 2 with a randomizer that will randomly place one of the two predefined models. In game it works great, however in gzdoom builder i only see a 'thing' outline box, but no actualy sprite/model. Is it possible to display it also in the builder?
User avatar
ramon.dexter
Posts: 1520
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: How to display a randomized item in gzdoom builder?

Post by ramon.dexter »

When using spawners, the spawn action is done when the map is loaded. So it is not possible to display the model, that is spawned by a spawner. The editor correctly shows you the spawner, that replaces the actor.
PixelWAD
Posts: 188
Joined: Sun Jun 10, 2018 7:01 pm

Re: How to display a randomized item in gzdoom builder?

Post by PixelWAD »

Ahh i understand. I was hoping that there would be a way to display randomized models on each refresh or so.
User avatar
Zen3001
Posts: 412
Joined: Fri Nov 25, 2016 7:17 am
Location: some northern german shithole

Re: How to display a randomized item in gzdoom builder?

Post by Zen3001 »

you could instead of using a spawner create an actor that randomly takes one of the sprites/models, this would I think display the first sprite in builder

Code: Select all

States{
	Spawn:
		SPRT A 0 A_Jump(128, "Alternative")
		SPRT A -1
		Stop
	Alternative:
		SPRT B -1
		Stop
}
PixelWAD
Posts: 188
Joined: Sun Jun 10, 2018 7:01 pm

Re: How to display a randomized item in gzdoom builder?

Post by PixelWAD »

Sounds like a good idea, I may try it today and report back! Thanks
Post Reply

Return to “Mapping”