Page 1 of 1
Hexen type Leaf Spawner in GZDoom?
Posted: Sat Aug 15, 2009 5:51
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.
Re: Hexen type Leaf Spawner in GZDoom?
Posted: Sat Aug 15, 2009 10:10
by Gez
Why not using the leaf spawner directly?
Re: Hexen type Leaf Spawner in GZDoom?
Posted: Sat Aug 15, 2009 18:20
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?
Re: Hexen type Leaf Spawner in GZDoom?
Posted: Sat Aug 15, 2009 19:30
by DoomerMrT
Making an actor which inherits all of it's properties from Leaf Spawner?
Re: Hexen type Leaf Spawner in GZDoom?
Posted: Sat Aug 15, 2009 19:56
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.
Re: Hexen type Leaf Spawner in GZDoom?
Posted: Sat Aug 15, 2009 22:50
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.
Re: Hexen type Leaf Spawner in GZDoom?
Posted: Sat Aug 15, 2009 23:31
by Komet302
my mistake, think I got it figured out now thanks for the help!