Decorate created monsters with existing identifiers?
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.
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.
- enderkevin13
- Posts: 1383
- Joined: Tue Jul 07, 2015 7:30 am
- Location: :noiƚɒɔo⅃
Decorate created monsters with existing identifiers?
I was curious if I could give an enemy like the ST dark imp the T_IMP identifier? Or does it do that when I inherit from the DoomImp?
Re: Decorate created monsters with existing identifiers?
T_IMP and other "identifiers" as you call them are actually just defined [wiki=Spawn_number]Spawn numbers[/wiki]. Including zcommon.acs expressly defines T_IMP as 5, for example. You don't need spawn numbers anymore.
And no, they aren't inherited for sanity reasons.
And no, they aren't inherited for sanity reasons.
- The Zombie Killer
- Posts: 1528
- Joined: Thu Jul 14, 2011 12:06 am
- Location: Gold Coast, Queensland, Australia
Re: Decorate created monsters with existing identifiers?
To add to edward's answer, the only real use (that I know of) for spawn numbers anymore is for actors that you want to place in maps.
Re: Decorate created monsters with existing identifiers?
That's Editor Numbers, not Hexen Spawn IDs. The wiki page explained this. 

- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Decorate created monsters with existing identifiers?
No, not sanity but usability. It makes no sense to inherit identifiers that are supposed to be unique.edward850 wrote: And no, they aren't inherited for sanity reasons.
Oh, and I strongly propose to keep those identifier properties out of DoomScript and let it exclusively rely on MAPINFO for setting them. In DECORATE it's too late to do that, unfortunately.
- The Zombie Killer
- Posts: 1528
- Joined: Thu Jul 14, 2011 12:06 am
- Location: Gold Coast, Queensland, Australia
Re: Decorate created monsters with existing identifiers?
There was a difference? Heh, never knewedward850 wrote:That's Editor Numbers, not Hexen Spawn IDs. The wiki page explained this.
- enderkevin13
- Posts: 1383
- Joined: Tue Jul 07, 2015 7:30 am
- Location: :noiƚɒɔo⅃
Re: Decorate created monsters with existing identifiers?
Basically here's what I wanna do to be more specific.
I wanna make it where if a hectebus spawns in on MAP07, you'd have to kill those as well for the walls to lower and reveal the arachnotrons.
I wanna make it where if a hectebus spawns in on MAP07, you'd have to kill those as well for the walls to lower and reveal the arachnotrons.
-
- Posts: 5046
- Joined: Sun Nov 14, 2010 12:59 am
Re: Decorate created monsters with existing identifiers?
If you're using [wiki=Classes:RandomSpawner]RandomSpawner[/wiki] to spawn either the mancubus or hectebus, then that's all you need. Here is a working example:
Code: Select all
ACTOR FatsoL : Fatso {}
ACTOR FatsoRep : RandomSpawner replaces Fatso
{
DropItem "Demon"
DropItem "FatsoL"
}
- enderkevin13
- Posts: 1383
- Joined: Tue Jul 07, 2015 7:30 am
- Location: :noiƚɒɔo⅃
Re: Decorate created monsters with existing identifiers?
Won't I have to make a clone of each enemy then?Blue Shadow wrote:If you're using [wiki=Classes:RandomSpawner]RandomSpawner[/wiki] to spawn either the mancubus or hectebus, then that's all you need. Here is a working example:
Code: Select all
ACTOR FatsoL : Fatso {} ACTOR FatsoRep : RandomSpawner replaces Fatso { DropItem "Demon" DropItem "FatsoL" }
-
- Posts: 5046
- Joined: Sun Nov 14, 2010 12:59 am
Re: Decorate created monsters with existing identifiers?
If you're going about it like the above example, then yes, you need to make a copy of the replaced monster. The third example on the RandomSpawner page explains why.