I've seem a zombie in AEOD that has in its llast frame of the death state the following:
XXXX Y -1 Thing_raise (0).
Sometimes the monster resurrects, and sometimes it doesn't. The monsters that resurrects once seems to do it always when they are killed after that. But, eventually, after 10-20 times, some of them does not raise again.
How does it works, and how can it be controlled?
(And, btw, is there any list on the wiki or so that contains all the ACS commands that also works in decorate?)
Thing_raise in decorate
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.
- DBThanatos
- Posts: 3101
- Joined: Fri Apr 14, 2006 3:17 pm
- Location: in "the darkness that lurks in our mind"
Re: Thing_raise in decorate
The only reason why it wouldnt raise under normal circumstances is whenever something is in the way and wouldnt allow this actor to raise, say, you're standing on the corpse at the moment is trying to raise. But also keep in mind that some monsters in aeod have special jump chances to simply not raise, or to to be gibbed.
There arent many specifics about this thing, as the wiki article shows: [wiki]Thing_Raise[/wiki].
Abd you can use pretty much all of the [wiki]Action_specials[/wiki] in decorate. You just need to use them where they make sense.
There arent many specifics about this thing, as the wiki article shows: [wiki]Thing_Raise[/wiki].
Abd you can use pretty much all of the [wiki]Action_specials[/wiki] in decorate. You just need to use them where they make sense.
Re: Thing_raise in decorate
Thanks a lot. I couldn't understand why the monster sometimes didn't resurrect. 

- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: Thing_raise in decorate
There's a few very important factors to be resurrectable or respawnable:
If you want to be midly hacky but very devious:
- Dead (<1 Health)
- Corpse (CORPSE flagg set)
- Stationary (On a -1 duration frame)
If you want to be midly hacky but very devious:
- Have the killed monster give itself a dummy inventory item that indicates it's dead.
- Have the monster fire a dummy projectile (it'll have +NOINTERACTION, so it won't actually impact anything).
- Have the projectile periodically check its Target (firer) for the "is dead" item, if found give it a special [wiki=Classes:CustomInventory]CustomInventory[/wiki].
- That CustomInventory item simply uses Thing_Raise on whatever recieving it.
- On successfully resurrecting, the monster removes its "is dead" item.
- If the dummy projectile doesn't find the "is dead" item, it terminates itself.
- You can also give the monster the DONTGIB flag to prevent it from being crushed by doors and such.

Re: Thing_raise in decorate
Hum...
I've used another similar trick, that I've seem in beta versions of Terror DooM: Some enemies spawns an invisible actor, also with NOINTERACTION, that moves very fast with A_VileChase for a few seconds, and then terminates itself. The disadvantage is that it can resurrect any dead monster (I want it to raise only zombies).
Gonna try your way.
I've used another similar trick, that I've seem in beta versions of Terror DooM: Some enemies spawns an invisible actor, also with NOINTERACTION, that moves very fast with A_VileChase for a few seconds, and then terminates itself. The disadvantage is that it can resurrect any dead monster (I want it to raise only zombies).
Gonna try your way.
