Hexen type Leaf Spawner in GZDoom?

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
Komet302
Posts: 4
Joined: Sat Aug 15, 2009 5:37

Hexen type Leaf Spawner in GZDoom?

Post by Komet302 »

HI
Is there anyway I could create the Leaf spawner effect in GZDoom using Decorate? I tryed
compliling a bit of Zdoom code in Visual c++ but haven't had any luck,
I haven't worked with source code much, and am out of ideas.
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: Hexen type Leaf Spawner in GZDoom?

Post by Gez »

Why not using the leaf spawner directly?
Komet302
Posts: 4
Joined: Sat Aug 15, 2009 5:37

Re: Hexen type Leaf Spawner in GZDoom?

Post by Komet302 »

There is a way to put this spawnpoint in directly? You mean in DoomBuilder
or Wintex useing Decorate? I tryed the code in Decorate and GZDoom gives me
a error when it get to lines like A_LeafSpawn or any Hexen code, how do I get around
this?
DoomerMrT
Posts: 91
Joined: Thu Aug 09, 2007 19:07

Re: Hexen type Leaf Spawner in GZDoom?

Post by DoomerMrT »

Making an actor which inherits all of it's properties from Leaf Spawner?
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: Hexen type Leaf Spawner in GZDoom?

Post by Gez »

Komet302 wrote:There is a way to put this spawnpoint in directly? You mean in DoomBuilder
Yes. If your map is not for Hexen, you can simply use a randomspawner to give it a doomednum you can use in Doom.


A single line of DECORATE code is all that you need:

Code: Select all

Actor MyLeafSpawner: RandomSpawner 20000 { DropItem "LeafSpawner" }


You can use another number than 20000 if you want. Just find one that's not used by another Doom actor. This results in an actor that will place a LeafSpawner (since it'll choose randomly from only one dropitem, it'll always select the leafspawner) and disappear, in effect being strictly equivalent to putting a leafspawner directly.
Komet302
Posts: 4
Joined: Sat Aug 15, 2009 5:37

Re: Hexen type Leaf Spawner in GZDoom?

Post by Komet302 »

I entered Actor MyLeafSpawner: RandomSpawner 20000 { DropItem "LeafSpawner" }
into my Decorate file it shows up in doombuilder as MyLeafSpawner: but it doesn't seem to recognize the number 20000. I'm not useing this number for any other actor. I must be missing something.
Komet302
Posts: 4
Joined: Sat Aug 15, 2009 5:37

Re: Hexen type Leaf Spawner in GZDoom?

Post by Komet302 »

my mistake, think I got it figured out now thanks for the help!
Locked

Return to “GZDoom”